Page 2 of 3

Re: Testing phpBB Countdown

Posted: 07 Jun 2010, 14:23
by cisco007
i gave up on it, i couldn't install xampp, or i did, but i couldn't figure out the password and stuff for the phpmyadmin!

hey Stoker have you been able to change the Browser and OS icons of posts that were made prior to installing the mod?

Re: Testing phpBB Countdown

Posted: 09 Jun 2010, 18:01
by Stoker
Nope, i would like to remove them.

Test

Posted: 09 Jun 2010, 18:01
by Stoker
test

Testing again

Posted: 10 Jun 2010, 14:46
by Stoker
testing

Re: Testing phpBB Countdown

Posted: 16 Jun 2010, 06:27
by neuropass
Thanks for the replies...

Re: Testing phpBB Countdown

Posted: 16 Jun 2010, 07:19
by Stoker
neuropass » 16 Jun 2010, 06:27 wrote:Thanks for the replies...
:?:

Re: Testing phpBB Countdown

Posted: 24 Jun 2010, 22:49
by cisco007
hey Stoker, i found a solution for the OS browser thing! this will take out the Unknown images in the posts!

open:

includes/user_agent.php

find:

Code: Select all

if (substr($name, 0, 7) == 'Nieznan')
      return '/images/user_agent/nieznany.png';
replace with:

Code: Select all

if (substr($name, 0, 7) == 'Nieznan')
      return '/images/spacer.gif';
this will remove all previous unknown images from posts!

Re: Testing phpBB Countdown

Posted: 07 Jul 2010, 15:56
by neuropass
cisco007 » 24 Jun 2010, 22:49 wrote:hey Stoker, i found a solution for the OS browser thing! this will take out the Unknown images in the posts!

open:

includes/user_agent.php

find:

Code: Select all

if (substr($name, 0, 7) == 'Nieznan')
      return '/images/user_agent/nieznany.png';
replace with:

Code: Select all

if (substr($name, 0, 7) == 'Nieznan')
      return '/images/spacer.gif';
this will remove al previous unknown images from posts!


i used a different method.

Code: Select all

	Main function detecting browser and system
*/
function get_useragent_names($useragent)
{
	if (!$useragent)
	{
		$result = array(
			'system'			=> '',
			'browser'			=> '',
			'browser_version'	=> ''
		);
		return $result;
	}



Now i have a question. Where does this mod get the info about the browser or the OS..?

Re: Testing phpBB Countdown

Posted: 07 Jul 2010, 16:33
by cisco007
I think it's from the http referrer, but i could be wrong, have you looked at the viewonline.php page how it shows your browser and stuff? I think it's the same thing!

Re: Testing phpBB Countdown

Posted: 24 Jul 2010, 17:41
by Stitch
cisco007 » 24 Jun 2010, 22:49 wrote:hey Stoker, i found a solution for the OS browser thing! this will take out the Unknown images in the posts!

open:

includes/user_agent.php

find:

Code: Select all

if (substr($name, 0, 7) == 'Nieznan')
      return '/images/user_agent/nieznany.png';
replace with:

Code: Select all

if (substr($name, 0, 7) == 'Nieznan')
      return '/images/spacer.gif';
this will remove all previous unknown images from posts!
This doesn't work with safari or IE8 Browsers. Safari shows a question mark and IE shows a red X. It works in firefox so I know the path to "spacer.gif is correct.