Testing phpBB Countdown
Re: Testing phpBB Countdown
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?
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
Thanks for the replies...
- Stoker
- Site Admin
- Posts: 3558
- Joined: 12 May 2008, 23:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
- Contact:
Re: Testing phpBB Countdown
neuropass » 16 Jun 2010, 06:27 wrote:Thanks for the replies...
Board rules! No PM support
Re: Testing phpBB Countdown
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:
replace with:
this will remove all previous unknown images from posts!
open:
includes/user_agent.php
find:
Code: Select all
if (substr($name, 0, 7) == 'Nieznan')
return '/images/user_agent/nieznany.png';
Code: Select all
if (substr($name, 0, 7) == 'Nieznan')
return '/images/spacer.gif';
Re: Testing phpBB Countdown
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:replace with:Code: Select all
if (substr($name, 0, 7) == 'Nieznan') return '/images/user_agent/nieznany.png';
this will remove al previous unknown images from posts!Code: Select all
if (substr($name, 0, 7) == 'Nieznan') return '/images/spacer.gif';
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
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
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.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:replace with:Code: Select all
if (substr($name, 0, 7) == 'Nieznan') return '/images/user_agent/nieznany.png';
this will remove all previous unknown images from posts!Code: Select all
if (substr($name, 0, 7) == 'Nieznan') return '/images/spacer.gif';