vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Home Enhancements - Browser on Who's Online (https://vborg.vbsupport.ru/showthread.php?t=133784)

derekivey 12-11-2006 10:00 PM

Browser on Who's Online
 
Browser on Who's Online
Developers: derekivey
Version: 1.0.3
vBulletin Version: 3.6.4 (3.5.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.3:
  • Fixed bug where some of you were just getting unknown for everyone's browser.
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 Install If you installed this hack.


Thanks!

derekivey 12-12-2006 02:11 AM

First post reserved for future use.

TheWhite 12-12-2006 02:13 AM

cool :)

tansu 12-12-2006 03:14 AM

well installed, then unistalled and this happened..
Code:

MySQL Error  : Unknown column 'browser' in 'field list'
Error Number : 1054

Forum gone? any ideas?

tansu 12-12-2006 03:26 AM

well actually it is not unistalled, I thought I uninstalled but when I try to uninstall it gives me that db error and cant be uninstalled.
When I disable it, forum comes back.

Bison 12-12-2006 04:15 AM

Thanks for updating your hack, but why didn't you add the "other browsers" in this version?

joopss 12-12-2006 05:04 AM

Thank you

MaestroX 12-12-2006 07:54 AM

Thanks

Hornstar 12-12-2006 08:46 AM

That is cool, well done. thanks.

Ronak 12-12-2006 09:56 AM

i was waiting for this hack to come :D

derekivey 12-12-2006 10:05 AM

Quote:

Originally Posted by tansu (Post 1136819)
well installed, then unistalled and this happened..
Code:

MySQL Error  : Unknown column 'browser' in 'field list'
Error Number : 1054

Forum gone? any ideas?

Try editing the current product you have installed, and remove the uninstall code, that should let you uninstall it now. I think you somehow got rid of the field in the sessions table. Once you remove the uninstall code, then try importing the new product file.

Quote:

Originally Posted by Bison (Post 1136839)
Thanks for updating your hack, but why didn't you add the "other browsers" in this version?

Those will be in a later version, this was just a quick port of my 3.5 version.

ubblite 12-12-2006 10:17 AM

I went to uninstall this hack because it wasn't showing a few common browsers and had problems as well.

Here is the error:

Database error in vBulletin 3.6.4:

Code:

Invalid SQL:
ALTER TABLE `session` DROP `browser`;;

MySQL Error  : Can't DROP 'browser'; check that column/key exists
Error Number : 1091
Date        : Tuesday, December 12th 2006 @ 07:14:15 AM
Script      : http://www.xxxxxxxxxxxxxxxx/forum/ad...do=productkill
Referrer    : http://www.xxxxxxxxxxxxxxxx/forum/ad...wser_on_wol&s=
IP Address  : -----------------
Username    : -----------------
Classname    : vB_Database

---------------------------------------

Please help.

Snake 12-12-2006 10:28 AM

Wow! I love this. :D

tansu 12-12-2006 01:33 PM

Quote:

Originally Posted by derekivey (Post 1136942)
Try editing the current product you have installed, and remove the uninstall code, that should let you uninstall it now. I think you somehow got rid of the field in the sessions table. Once you remove the uninstall code, then try importing the new product file.

That did it..
thanks.

projectego 12-12-2006 02:03 PM

Excellent! ;)

Distance 12-12-2006 02:25 PM

This is rubbish, everyone is getting errors, same as me

Database error in vBulletin 3.6.4:

Invalid SQL:
ALTER TABLE `session` DROP `browser`;;

MySQL Error : Can't DROP 'browser'; check that column/key exists
Error Number : 1091
Date : Tuesday, December 12th 2006 @ 04:24:38 PM
Script : http://SITE/admincp/plugin.php?do=productkill
Referrer : http://SITE/admincp/plugin.php?do=pr...wser_on_wol&s=
IP Address : 172.159.132.228
Username : Distance
Classname : vb_database

Distance 12-12-2006 02:30 PM

Also removing the uninstall code, wont that just be leaving the tables there?

asj 12-12-2006 03:58 PM

Database error in vBulletin 3.6.4:

Invalid SQL:
ALTER TABLE `session` DROP `browser`;;

MySQL Error : Can't DROP 'browser'; check that column/key exists
Error Number : 1091
Date : Tuesday, December 12th 2006 @ 08:52:59 PM
Script : http://www.asj.com/forum/admincp/plu...do=productkill
Referrer : http://www.asj.com/forum/admincp/plu...&productid=&s=
IP Address : 127.0.0.1
Username : asj
Classname : forum_database
?? :(

silks 12-12-2006 05:19 PM

nice hack and currently using it - thanks :D

can u tell me if its possible to remove the space between the gif and the users name?

im using it on the cmps - leftblock

ubblite 12-12-2006 11:20 PM

Quote:

Originally Posted by Distance (Post 1137108)
Also removing the uninstall code, wont that just be leaving the tables there?

That was the only way I was able to uninstall this hack, but I think you're right - the tables are still there so it's not really uninstalled. Reinstalling & then uninstalling the hack also didn't work. There is an obvious bug with this modification that needs to be fixed.

derekivey 12-13-2006 01:18 AM

I have uploaded a new zip file. This should work... those of you who were getting errors, please let me know if you have any problems with the new product xml file.

Thanks,
Derek

Ronak 12-13-2006 01:18 AM

Its not finding my browser ??

derekivey 12-13-2006 01:19 AM

Quote:

Originally Posted by Ronak (Post 1137464)
Its not finding my browser ??

What browser are you using?

Ronak 12-13-2006 01:29 AM

Quote:

Originally Posted by derekivey (Post 1137465)
What browser are you using?

Netscape 8.1.2

Ronak 12-13-2006 01:31 AM

Quote:

Originally Posted by derekivey (Post 1137465)
What browser are you using?

SORRY DOUBLE POST :(

ubblite 12-13-2006 02:48 AM

Quote:

Originally Posted by derekivey (Post 1137463)
I have uploaded a new zip file. This should work... those of you who were getting errors, please let me know if you have any problems with the new product xml file.

Thanks,
Derek

Thanks, that worked.

When I had your mod installed, it did detect one Firefox user but it wouldn't detect myself and a few others who were using Firefox. I also used IE v7.0 and was still getting a question mark.

smoknz28 12-13-2006 02:50 AM

This will be a great hack if I can get it to work like it's suppose to. ;)

Thanks for your hard work on this, but an issue I'm having though is that all the users online are showing an icon with a question mark "Unknown".

Should atleast be able to pick up one of the browsers. It's not even picking up mine and I'm using both IE and Firefox.

Attached is a screenshot.

ubblite 12-13-2006 03:54 AM

That was the same problem I had, smoknz28.

tekram 12-13-2006 06:19 AM

can someone make the grafics transparent? on dark styles it looks silly

JoeWho 12-13-2006 01:53 PM

That is nice, well done. Thanks. :)

1-problem... it shows the user a "?" icon for user, everyone is showing the correct browser-icon.

I logon with user 2 and I can see user 1 correct browser-icon, but user 1 only see "?" icon and user 1 can see correct browser-icon for user 2.

Thanks.

smoknz28 12-13-2006 02:11 PM

Quote:

Originally Posted by ubblite (Post 1137542)
That was the same problem I had, smoknz28.

Yea, looks like there's several others with the same problem. I'm sure he's pulling his hair out trying to fix this. Lets hang in there and see what comes about. ;)

Bison 12-15-2006 03:58 AM

You definitely have to drop the tables ... if you had any previous versions installed before installing this.

derekivey 12-15-2006 09:55 AM

Try refreshing the page? For some reason vB's is_browser function only works when you refresh the page. It doesn't seem to work right when the session is created, I am trying to fix it, but have no idea when it will be fixed.

smoknz28 12-15-2006 04:11 PM

Since the install of the hack....I've refreshed (multiple times), closed browser completely (IE, Firefox), reopened browsers, rebooted computer, cleared cache...

All of the above and the hack will still not show any other icon but the question mark "unknown" for the browser.

Sorry Derek....hope you can figure this one out as this looks like it would be a nice feature to have on our boards.

derekivey 12-15-2006 06:51 PM

This may sound like a dumb question, but you have done the file edits right?

smoknz28 12-15-2006 11:13 PM

Quote:

Originally Posted by derekivey (Post 1139297)
This may sound like a dumb question, but you have done the file edits right?

No, not dumb...you're just trying to get to the root of this and I appreciate that.

Okay, looking at my index.php file I see that the changes were already made when I initially installed this hack:

Code:

session.userid, session.browser, session.inforum, session.lastactivity,
Code:

'username'          =>& $vbulletin->userinfo['username'],
'browser'          =>& $vbulletin->userinfo['browser'],

Here's my entire forumhome_loggedinuser template, which you can see the addition was made:

Code:

<!-- Start: Browser on Who's Online by derekivey - Version 1.0.2 -->
<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] OR $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.2 -->

$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]" rel="nofollow">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]


jw00dy 12-16-2006 03:53 AM

Nice mod. I have the exact same problem as smoknz28 and my edits are the same as his.

derekivey 12-16-2006 05:43 PM

Can one of you guys please send me the link to your forum, so I can just take a look and see if it happens for me if I login?

Thanks,
Derek

derekivey 12-16-2006 05:48 PM

Actually, nevermind, I have confirmed this and am fixing it. I will release a new version shortly.

Derek

jw00dy 12-16-2006 05:50 PM

Thank Derekivey


All times are GMT. The time now is 06:26 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
  • Page Generation 0.01853 seconds
  • Memory Usage 1,830KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete