Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Browser on Who's Online Details »
Browser on Who's Online
Mod Version: 1.0.2, by derekivey (Member) derekivey is offline
Developer Last Online: Jan 2010 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.5 Rating: (1 vote - 5.00 average) Installs: 79
Released: 29 Dec 2005 Last Update: 02 Mar 2006 Downloads: 83
Not Supported DB Changes Uses Plugins Template Edits Code Changes Additional Files  

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:
  • Add support for more browsers.
  • Add browser to online.php
  • Show only 1 image for each browser when there is more than 1 person with that browser.
  • Whatever is suggested.
Features/Changes in Version 1.0.2:
  • Fixed SQL bug
Features/Changes in Version 1.0.1:
  • Moved browsers to session table.
  • Removed 'Unknown' from being stored in database, replaced it with Psionic Vision's suggestion.
This was a hack request by ReadOrDie.

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 If you installed this hack.

Thanks!

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	ScreenShot1.jpg
Views:	2281
Size:	14.9 KB
ID:	40113  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Forum Home Enhancements Browser on Who's Online derekivey vBulletin 3.6 Add-ons 90 12 Jan 2013 14:04
Add-On Releases Browser on Who's Online Mr saleki Modification Graveyard 7 06 Mar 2008 06:15

Comments
  #2  
Old 29 Dec 2005, 22:45
Impreza04's Avatar
Impreza04 Impreza04 is offline
 
Join Date: Jul 2005
Wow.. nice idea

I'll give this a go in a minute
Reply With Quote
  #3  
Old 29 Dec 2005, 22:51
derekivey derekivey is offline
 
Join Date: Apr 2005
Real name: Derek
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.
__________________
Please do not PM or IM me for support or my hacks, or vBulletin questions.
Use my hack threads for support instead, please. All PM, or IM requests will be ignored.
Reply With Quote
  #4  
Old 29 Dec 2005, 22:58
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Real name: Anton Kanevsky
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
__________________
I can no longer support any of my hacks. Please do not contact me for that. Feel free to create and post new versions of my hacks, as long as you give me credit for the original work.

Last edited by akanevsky; 29 Dec 2005 at 23:03.
Reply With Quote
  #5  
Old 29 Dec 2005, 23:02
derekivey derekivey is offline
 
Join Date: Apr 2005
Real name: Derek
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??
__________________
Please do not PM or IM me for support or my hacks, or vBulletin questions.
Use my hack threads for support instead, please. All PM, or IM requests will be ignored.
Reply With Quote
  #6  
Old 29 Dec 2005, 23:06
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Real name: Anton Kanevsky
What do you mean it treats them as constants?
A string must be wrapped in single or double quotes.
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').

Also, how would you suggest that I store the browsers then??
I would store browser information in the session table, because there it is temporary and deleted automatically when the user leaves the board.
__________________
I can no longer support any of my hacks. Please do not contact me for that. Feel free to create and post new versions of my hacks, as long as you give me credit for the original work.

Last edited by akanevsky; 29 Dec 2005 at 23:11.
Reply With Quote
  #7  
Old 29 Dec 2005, 23:12
derekivey derekivey is offline
 
Join Date: Apr 2005
Real name: Derek
Ok, I fixed the first thing. I'll take a look at the rest later. I uploaded a new zip file.
__________________
Please do not PM or IM me for support or my hacks, or vBulletin questions.
Use my hack threads for support instead, please. All PM, or IM requests will be ignored.
Reply With Quote
  #8  
Old 29 Dec 2005, 23:20
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Real name: Anton Kanevsky
Nice. Also, you can get a list of all vbulletin-detectable browser from the is_browser function itself


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
I can no longer support any of my hacks. Please do not contact me for that. Feel free to create and post new versions of my hacks, as long as you give me credit for the original work.
Reply With Quote
  #9  
Old 29 Dec 2005, 23:21
swa swa is offline
 
Join Date: Apr 2005
nice idea!
__________________
http://www.dellusers.com
Reply With Quote
  #10  
Old 29 Dec 2005, 23:46
derekivey derekivey is offline
 
Join Date: Apr 2005
Real name: Derek
Ok, zip file has been updated. I changed addslashes to $db->escape_string.
__________________
Please do not PM or IM me for support or my hacks, or vBulletin questions.
Use my hack threads for support instead, please. All PM, or IM requests will be ignored.
Reply With Quote
  #11  
Old 29 Dec 2005, 23:51
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Real name: Anton Kanevsky
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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
I can no longer support any of my hacks. Please do not contact me for that. Feel free to create and post new versions of my hacks, as long as you give me credit for the original work.

Last edited by akanevsky; 29 Dec 2005 at 23:56.
Reply With Quote
  #12  
Old 30 Dec 2005, 01:05
rb290's Avatar
rb290 rb290 is offline
 
Join Date: Oct 2005
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 ?
Reply With Quote
  #13  
Old 30 Dec 2005, 01:09
rb290's Avatar
rb290 rb290 is offline
 
Join Date: Oct 2005
this what looks like:

http://img506.imageshack.us/img506/20/jhj7yf.jpg
Reply With Quote
  #14  
Old 30 Dec 2005, 01:25
derekivey derekivey is offline
 
Join Date: Apr 2005
Real name: Derek
Add border="0" to each of the images in the conditionals. That should fix it.
__________________
Please do not PM or IM me for support or my hacks, or vBulletin questions.
Use my hack threads for support instead, please. All PM, or IM requests will be ignored.
Reply With Quote
  #15  
Old 30 Dec 2005, 01:30
rb290's Avatar
rb290 rb290 is offline
 
Join Date: Oct 2005
thanks
do you know how I can make it only appear on the Whos On Line?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 03:57.

Layout Options | Width: Wide Color: