![]() |
Browser on Who's Online
Browser on Who's Online
Developers: derekivey Version: 1.0.2 vBulletin Version: 3.5.5 (3.6.0 version available here) File Edits: 2 Template Edits: 1 New Phrases: 8 Uses Plugins: Yes Difficulty: Easy Description: This hack will show each user's browser in the Who's Online Box beside their name. It supports IE, Firefox, Opera, Camino, Safari, Konqueror, and Netscape. If the user is using a browser that is unsupported with this hack, it will show a Question mark icon, which means its an Unknown browser. *** I Strongly Recommend That You Backup Before Installing/Upgrading This Hack! *** Planned features for a later release:
Note: If you are using vBadvanced CMPS, please follow 350Chevy's post to get this hack working on it, if you want to show their browser on the CMPS' Who's Online. I have added screen shots of this hack in action below. Please click https://vborg.vbsupport.ru/ If you installed this hack. Thanks! |
Wow.. nice idea
I'll give this a go in a minute :) |
Thanks, let me know if you have any problems. I tested it on my public site and my test board and it works for me.
|
This hack has poor code for the following reasons:
- It does not treat strings as strings, rather as constants. PHP, however, will only show an error if there is an E_NOTICE error reporting turned on. - It is completely unnecessary to alter user table and save browser informations. - Addslashes() is deprected in vbulletin 3.5. Use $db->escape_string() instead. - There is no point in the "unknown" value. That value will just take up db space. Why not make a default empty string which will return false when accessed. E.g. you can change <if condition="$loggedin[browser] == unknown"> to <if condition="!$loggedin[browser]"> if you do that. That said, I like the idea. Only, I think I've seen the same thing released a couple of days ago. Maybe I have hallucations, Idk :( |
What do you mean it treats them as constants? Can I see an example of what you mean please?
Also, how would you suggest that I store the browsers then?? |
Quote:
When you call is_browser(ie), it looks for a constant IE. Because PHP is a very non-restrictive language, it then treats ie as a string, even though it is not; it will only display an error if E_NOTICE is enabled. But since vBulletin error reporting is E_ALL ^ E_NOTICE, you don't see the error. The right way would be using is_browser('ie'). Quote:
|
Ok, I fixed the first thing. I'll take a look at the rest later. I uploaded a new zip file.
|
Nice. Also, you can get a list of all vbulletin-detectable browser from the is_browser function itself :)
PHP Code:
|
nice idea!
|
Ok, zip file has been updated. I changed addslashes to $db->escape_string.
|
Ok, now if you expand the browsers list and move browser identification storage to session table, that'll be the best.
Hint: class_core.php, line 2514: PHP Code:
|
mines displays on the "Members who have visited in the last 24 hours", and shows those ones as the ? picture, also how come all the pics are bordered by a blue box ?
|
|
Add border="0" to each of the images in the conditionals. That should fix it.
|
thanks
do you know how I can make it only appear on the Whos On Line? |
ok. i have problems, and need to uninstall it. but the auto uninstaller isnt working. what do i need to delete off the database to remove this. ???
Code:
Invalid SQL: |
ok. i have disabled it. and my forum still works. but .... what changes were made to any temlates that i need to manually cahgne back ?
|
What kind of problem were you having? Because that uninstall error means that the browser field was never added to the user table. If you want to just uninstall my hack, all you have to do now is just revert the edited templates or if you have customized them before you can just take out the edits you made for my hack. Also you will need to take out the file edits.
|
Quote:
yeah i did all that. was just wanting to make sure that it didnt do anything else that i needed to change :) thx :) but anyhow what i tried to do was install it on vb 3.5.0 and there is NO Skype ;) so it gave errors, then sql erros .... but its back to norm. I would Like to try this on 3.5.0 though :) let me know if you have a fix for the database table edits ;) thx :) |
Hi
I started to install this but once the manual edits were complete i checked my site and it gave a database error, so i removed all edits and now my Online Users looks like this.. a href="member.php?u=1">Bashy, a href="member.php?u=13">bezo, a href="member.php?u=4">tango232, a href="member.php?u=119">mickriss, MSNBot Please advise ASAP as it looks a tad silly :( Regards Bashy www.bashys-place.com |
Hi, did you import the product?
|
Quote:
|
bashy, try reverting the templates that were changed.
|
Hi m8
No, i didnt get that far... Quote:
|
I have reverted all that i changed, i have also triple checked everything :(
Bashy |
Heres a screen shot of the issue..
I have just checked the template and index.php edits and there deffo back to there original state! Bashy |
Right...
I have just reinstalled it all and the images are working fine, but i still get a href="member.php?u=1"> in front of the usernames... It looks like its lost the link to the members profile from that point on the forum, so something as messed up somwhere.... and is only showing the raw code... This is where the problem lies, somewhere in here, well, from what i can tell lol this is my "forumhome_loggedinuser" When i removed the edits the 1st time, did i take something else out by accident? Code:
<if condition="$loggedin[userid]">a href="member.php?$session[sessionurl]u=$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]<else />$loggedin[musername]</if> What have i cocked up, what would cause this? Bashy |
You are missing a < in front of a href="member.php.
|
Sounds good to me :) cheers m8, that sorted it..
It helps when ya got all the info in front of you ;) Thanks again, great little hack.... *bashy runs to click install* Thanks again for ya patience Bashy Quote:
|
Working on 3.5.1, You don't have images for a dark type forum do you? thanks for this btw, pretty cool.
|
Nope sorry, don't have any images for a dark forum. I just found those images on Google's Image Search and edited them so they would have a transparent background.
|
Thanks just the same, I have to admit this looks alot better with firefox than with IE
|
Sweeeeeeeeeeeeeeet!
Thanks. |
Nice Addition
And thanks again for the code mod. Clicks Installs......... :banana: |
Installed and working!
|
Nice Hack this is widely used on IPB boards
|
|
Quote:
Another user had this problem and thats what caused it, a missing < at the beginning of the a href... If you still have problems, please paste your template code here and I will look at it. Derek |
i don't even see an <a href= anywhere around :rolleyes:
here is my code, and also where do i change the border to 0 at? In the template or in the index.php? $stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]" <!-- Start: Browser on Who's Online by derekivey - Version 1.0.0 --> <if condition="$loggedin[browser] == internet_explorer"> <img src="$stylevar[imgdir_misc]/ie.gif" alt="$vbphrase[browser_internet_explorer]" /> </if> <if condition="$loggedin[browser] == opera"> <img src="$stylevar[imgdir_misc]/opera.gif" alt="$vbphrase[browser_opera]" /> </if> <if condition="$loggedin[browser] == firefox"> <img src="$stylevar[imgdir_misc]/ff.gif" alt="$vbphrase[browser_firefox]" /> </if> <if condition="$loggedin[browser] == camino"> <img src="$stylevar[imgdir_misc]/camino.gif" alt="$vbphrase[browser_camino]" /> </if> <if condition="$loggedin[browser] == konqueror"> <img src="$stylevar[imgdir_misc]/konqueror.gif" alt="$vbphrase[browser_konqueror]" /> </if> <if condition="$loggedin[browser] == safari"> <img src="$stylevar[imgdir_misc]/safari.gif" alt="$vbphrase[browser_safari]" /> </if> <if condition="$loggedin[browser] == netscape"> <img src="$stylevar[imgdir_misc]/netscape.gif" alt="$vbphrase[browser_netscape]" /> </if> <if condition="$loggedin[browser] == unknown"> <img src="$stylevar[imgdir_misc]/question_icon.gif" alt="$vbphrase[browser_unknown]" /> </if> <!-- End: Browser on Who's Online by derekivey - Version 1.0.0 --> rel="nofollow">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark] |
What does this do for guests and spiders?
|
All times are GMT. The time now is 07:14 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|