Testing phpBB Countdown

Use the BBCode Testarea to test our BBCodes
All testing must be done here

Re: Testing phpBB Countdown

Post 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

Post by Stoker »

Nope, i would like to remove them.

Test

Post by Stoker »

test

Testing again

Post by Stoker »

testing

Re: Testing phpBB Countdown

Post by neuropass »

Thanks for the replies...

Re: Testing phpBB Countdown

Post by Stoker »

neuropass » 16 Jun 2010, 06:27 wrote:Thanks for the replies...
:?:

Re: Testing phpBB Countdown

Post 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

Post 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

Post 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

Post 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.