PDA

View Full Version : Browser on Who's Online


derekivey
12-28-2005, 10:00 PM
Browser on Who's Online
Developers: derekivey (https://vborg.vbsupport.ru/member.php?u=81169)
Version: 1.0.2
vBulletin Version: 3.5.5 (3.6.0 version available here (https://vborg.vbsupport.ru/showthread.php?t=133784))
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 bugFeatures/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 (https://vborg.vbsupport.ru/member.php?u=110843).

Note: If you are using vBadvanced CMPS, please follow 350Chevy's post (https://vborg.vbsupport.ru/showpost.php?p=871310&postcount=64) 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/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=103996) If you installed this hack.

Thanks!

Impreza04
12-29-2005, 08:45 PM
Wow.. nice idea

I'll give this a go in a minute :)

derekivey
12-29-2005, 08:51 PM
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.

akanevsky
12-29-2005, 08:58 PM
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 :(

derekivey
12-29-2005, 09:02 PM
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??

akanevsky
12-29-2005, 09:06 PM
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.

derekivey
12-29-2005, 09:12 PM
Ok, I fixed the first thing. I'll take a look at the rest later. I uploaded a new zip file.

akanevsky
12-29-2005, 09:20 PM
Nice. Also, you can get a list of all vbulletin-detectable browser from the is_browser function itself :)

$is = array(
'opera' => 0,
'ie' => 0,
'mozilla' => 0,
'firebird' => 0,
'firefox' => 0,
'camino' => 0,
'konqueror' => 0,
'safari' => 0,
'webkit' => 0,
'webtv' => 0,
'netscape' => 0,
'mac' => 0
);

swa
12-29-2005, 09:21 PM
nice idea!

derekivey
12-29-2005, 09:46 PM
Ok, zip file has been updated. I changed addslashes to $db->escape_string.

akanevsky
12-29-2005, 09:51 PM
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:
$this->set('useragent', USER_AGENT);

rb290
12-29-2005, 11:05 PM
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 ?

rb290
12-29-2005, 11:09 PM
this what looks like:

http://img506.imageshack.us/img506/20/jhj7yf.jpg

derekivey
12-29-2005, 11:25 PM
Add border="0" to each of the images in the conditionals. That should fix it.

rb290
12-29-2005, 11:30 PM
thanks
do you know how I can make it only appear on the Whos On Line?

YOimYO
12-30-2005, 11:36 AM
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. ???




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

MySQL Error : Can't DROP 'browser'. Check that column/key exists
Error Number : 1091
Date : Friday, December 30th 2005 @ 08:50:11 AM

YOimYO
12-30-2005, 12:26 PM
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 ?

derekivey
12-30-2005, 01:54 PM
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.

YOimYO
12-30-2005, 02:18 PM
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.


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 :)

bashy
12-30-2005, 05:52 PM
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

derekivey
12-30-2005, 06:10 PM
Hi, did you import the product?

derekivey
12-30-2005, 06:16 PM
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 :)

Zip file updated. Please try now, it should work now.

derekivey
12-30-2005, 06:17 PM
bashy, try reverting the templates that were changed.

bashy
12-30-2005, 06:17 PM
Hi m8

No, i didnt get that far...

Hi, did you import the product?

bashy
12-30-2005, 06:26 PM
I have reverted all that i changed, i have also triple checked everything :(

Bashy

bashy
12-30-2005, 06:42 PM
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

bashy
12-30-2005, 06:56 PM
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?
<if condition="$loggedin[userid]">a href="member.php?$session[sessionurl]u=$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]<else />$loggedin[musername]</if>

Any ideas yet please?

What have i cocked up, what would cause this?

Bashy

derekivey
12-30-2005, 07:04 PM
You are missing a < in front of a href="member.php.

bashy
12-30-2005, 07:07 PM
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

You are missing a < in front of a href="member.php.

4number8
12-30-2005, 07:25 PM
Working on 3.5.1, You don't have images for a dark type forum do you? thanks for this btw, pretty cool.

derekivey
12-30-2005, 08:29 PM
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.

4number8
12-30-2005, 09:21 PM
Thanks just the same, I have to admit this looks alot better with firefox than with IE

Snake
12-31-2005, 12:57 PM
Sweeeeeeeeeeeeeeet!

Thanks.

Feckie (Roger)
12-31-2005, 04:47 PM
Nice Addition

And thanks again for the code mod.

Clicks Installs......... :banana:

Mastar
12-31-2005, 06:38 PM
Installed and working!

Xtrato
01-02-2006, 03:12 AM
Nice Hack this is widely used on IPB boards

Landlord
01-02-2006, 03:52 AM
i had this happen...

https://vborg.vbsupport.ru/external/2006/01/13.jpg

derekivey
01-02-2006, 04:01 AM
i had this happen...

https://vborg.vbsupport.ru/external/2006/01/13.jpg

Make sure you have a < before your <a href="

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

Landlord
01-02-2006, 04:07 AM
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]

GamerJunk.net
01-02-2006, 04:20 AM
What does this do for guests and spiders?

Landlord
01-02-2006, 05:29 AM
i think one part of the problemw ould be that my ENTIRE original code in the forumdisplay_loggedinuser is

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

so i don't know where to find a <if condition="$loggedin[userid]"> like the install asks...

derekivey
01-02-2006, 03:31 PM
Move the code you added for this hack up before

$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]"


That will fix it.

derekivey
01-02-2006, 03:32 PM
What does this do for guests and spiders?

It doesn't do anything for them. They appear normal on the online page.

Xtrato
01-03-2006, 08:59 PM
what if i dont add this
FIND:

user.username, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid,

IN LINE FIND:

user.username,

AFTER ADD:

user.browser,

cuz i get errors if i do

derekivey
01-03-2006, 10:38 PM
What error do you get? You need that or the hack will not work.

derekivey
01-04-2006, 11:49 PM
Version 1.0.1 has been released. I have moved the users' browser information to the session table instead of the user table. Also, I have removed 'Unknown' from being stored in the database, and have replaced it with Psionic Vision's suggestion.

Simply follow the upgrade instructions in the install.txt file to upgrade.

Let me know if you have any problems.

Derek

Felan
01-05-2006, 09:09 AM
Version 1.0.1 has been released. I have moved the users' browser information to the session table instead of the user table. Also, I have removed 'Unknown' from being stored in the database, and have replaced it with Psionic Vision's suggestion.

Simply follow the upgrade instructions in the install.txt file to upgrade.

Let me know if you have any problems.

Derek

in my who have visited hack not appear the browser,why?

P.S.great hack ;)

derekivey
01-05-2006, 09:43 AM
Sorry, this hack doesn't support that hack, so therefore the browser information isn't shown on that hack.

Hellraider
01-05-2006, 02:57 PM
Got the same error as mentioned in post #16 on uninstalling version 1.0.1.

Manually reverting the template and file edits seems to be OK.

But product is still shown in installed product list and could not be removed.

How do I remove the entry in the product list?

lanc3lot
01-06-2006, 07:37 AM
Hello nice idea, some questions.

- Can i have this only appear on the Who's Online page?
- Why is not working with the guests? I mean can it see what the guest browser is, and show approximately?
- What will happen if we have special html markaps for our users in our forums? We use special mini icons for each of our usergroups. Will they be replaced from the browser icons or will display both of them (for this i only want to have it on my Who's Online page, prefferably with both the icons displayed)

Thnx in advance for any reply :)

derekivey
01-06-2006, 06:42 PM
Got the same error as mentioned in post #16 on uninstalling version 1.0.1.

Manually reverting the template and file edits seems to be OK.

But product is still shown in installed product list and could not be removed.

How do I remove the entry in the product list?

Sorry about that, I'll take a look and get back to you.

- Can i have this only appear on the Who's Online page?No, that is currently not in this hack. I am looking into adding it, and it should be in a new version...

Why is not working with the guests? I mean can it see what the guest browser is, and show approximately?Currently, since your first question isn't in this hack, it can't show it for guests. When I add it to the Whos online page, I will make it show for guests too, but since guests don't show on the who's online box, it's not possible to show their browser with this hack.

What will happen if we have special html markaps for our users in our forums? We use special mini icons for each of our usergroups. Will they be replaced from the browser icons or will display both of them (for this i only want to have it on my Who's Online page, prefferably with both the icons displayed)If you keep your code in there and have the code for this hack, it should show both.

Derek

Bubble #5
01-06-2006, 07:45 PM
Very nice hack Derek! We'll be adding it soon and look forward to the new features :nervous:

lanc3lot
01-06-2006, 09:22 PM
Thnx for your replies, waiting for the new version :)

Xtrato
01-07-2006, 05:55 PM
Edit: i fixed it it seems i needed to to the tempalte edits then the porduct before i do the index.php edit.

There seems to have been a problem with the
Please try again by clicking the Refresh button in your web browser.

An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin 3.5.2:

Invalid SQL:

SELECT
user.username, (user.options & 512) AS invisible, user.usergroupid,
session.userid, session.browser, session.inforum, session.lastactivity,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM vb3_session AS session
LEFT JOIN vb3_user AS user ON(user.userid = session.userid)
WHERE session.lastactivity > 1136662721
ORDER BY username ASC;

MySQL Error : Unknown column 'session.browser' in 'field list'
Error Number : 1054
Date : Saturday, January 7th 2006 @ 01:53:41 PM
Script :
Referrer :
IP Address :
Username :
Classname : vb_database

bashy
01-07-2006, 05:57 PM
Edit ya IP address m8..tis best if ya do :)

Xtrato
01-07-2006, 06:05 PM
Wow of all the things a deleted i left the ip wow thanks hehe

bashy
01-07-2006, 06:07 PM
NP m8, just trying to help :)

Have fun

Bashy

derekivey
01-07-2006, 10:56 PM
Hmm, for some reason the SQL query didn't get executed when you imported the product. Please run the following query in your AdminCP or PHPMyAdmin:

ALTER TABLE `vb3_session` ADD `browser` VARCHAR( 50 ) DEFAULT '' NOT NULL;


Let me know if you still have any problems.

Derek

murrtex
01-09-2006, 02:09 AM
Invalid SQL:
ALTER TABLE `session` DROP `browser`;;

MySQL Error : Can't DROP 'browser'; check that column/key exists
Error Number : 1091

uninstall problem I have...how can I fix it for uninstall???

derekivey
01-09-2006, 09:33 AM
Just edit the product and remove the stuff in the uninstall code selected, then try uninstalling, that should fix it.

soulface
01-11-2006, 04:49 PM
Installed... working fine so far without any prob. I think it'll be very nice if it'll show nick as 'Group by Browser', bcuz when thr'll be 50/100 users online it'll look funny or messy :/

EasyTarget
01-11-2006, 05:04 PM
heh, I just came here to request what soulface said... organize the wol by browser so that only 1 icon is displayed for each browser in use.

derekivey
01-11-2006, 06:53 PM
Ok, I can probably add an option to do that. I'll take a look and see. Nice Suggestion!

350Chevy
01-12-2006, 01:53 AM
Looks good.. One problem though, vBAdvanced CMPS v2.0.0 needed to be modified as well if you use it and would like it to show properly on your home page. ;)

For those who use vbAdvanced and would like it to work for your home page do the following.

in /modules/onlineusers.php find:

SELECT session.userid, username, usergroupid, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid

and replace it with:

SELECT session.userid, session.browser, username, usergroupid, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid

again in /modules/onlineusers.php find:

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


add after:

'browser' => $vbulletin->session->vars['browser'],

That should do it. :)

* Clicks install.

derekivey
01-12-2006, 08:03 PM
Thanks for that tutorial. I'll add it to the first post so that people who use vBa know what to do. :)

Thanks again,
Derek

350Chevy
01-13-2006, 01:01 AM
Working on 3.5.1, You don't have images for a dark type forum do you? thanks for this btw, pretty cool.

I have cleaned the images up a bit so they look ok on any background. Feel free to use. :) derekivey, feel free to place these in place of yours if you'd like. ;)

Thanks for that tutorial. I'll add it to the first post so that people who use vBa know what to do.

Thanks again,
Derek
No problem. And it's just your code with a bit of common sense so there's no need to thank me. You would've easily figured it out if you were using vBAdvanced. ;)

350Chevy
01-13-2006, 01:10 AM
Anyway we can add WebTV as a browser?

Edit: Attached WebTV icon in case you decide to add it or use it. ;)

derekivey
01-13-2006, 01:57 AM
Thanks, I'll add it to the next release with your images too.

Thanks so much!

Derek

bashy
02-04-2006, 05:32 PM
Hi peeps

I get this error (below) from only 1 member atm, he cannot login when this
hack is turned on, turn it off an he can login although the ? icon shows when turned off so looks a tad untidy...anyway back to the issue at hand lol...

Whats ya thoughs, his browser is IE6 but the WOL is showing him as mozilla?
Your hack is showing him as a question mark and stops him from loggin in

Database error in vBulletin 3.5.3:

Invalid SQL:
;

MySQL Error : Query was empty
Error Number : 1065
Date : Saturday, February 4th 2006 @ 07:08:08 PM
Script : http://IP.ADDY/bashys-place.com/forums/index.php
Referrer :
IP Address : This was an IP addy :p
Username : This used to be a username
Classname : some database

derekivey
02-04-2006, 06:25 PM
Hmm, thats a weird error. Want to PM me admin access details so I can take a look? Also have you installed any hacks that modify user sessions?

Thanks,
Derek

bashy
02-04-2006, 06:37 PM
PM on way...

As for installing out to do with the sessions, not sure, i cant emember sorry, but i am sure you can see for ya self m8, I have 1 or 2 installed pmsl....

Hmm, thats a weird error. Want to PM me admin access details so I can take a look? Also have you installed any hacks that modify user sessions?

Thanks,
Derek

bashy
02-04-2006, 07:36 PM
Hi m8

I have got to the bottom of this..

Its his firewall blocking ya script....
He is using sygate

derekivey
02-04-2006, 08:40 PM
Thats really weird lol. It just uses vB's is_browser function to determine the browser, so I guess your right. His firewall must be blocking access to your forum somehow.

bashy
02-04-2006, 09:01 PM
Very m8 lol...Like i say, turn ya hack off and he gets in no problem lol

Thats really weird lol. It just uses vB's is_browser function to determine the browser, so I guess your right. His firewall must be blocking access to your forum somehow.

rza733
02-05-2006, 05:31 PM
I have a huge problem... When i try to uninstall this it gives me a DB error

Database error in vBulletin 3.5.0:

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

MySQL Error : Can't DROP 'browser'; check that column/key exists
Error Number : 1091
Date : Sunday, February 5th 2006 @ 12:30:31 PM
Script : http://www.rzasspot.com/admincp/plugin.php
Referrer : http://www.rzasspot.com/admincp/plugin.php?do=productdelete&productid=browser_on_wol&s=
IP Address : 70.228.161.236
Username : RzA
Classname : vb_database

any suggestion on what to do?? Im using 3.5.0

derekivey
02-05-2006, 06:30 PM
You can ignore that error. That just means that field doesn't exist in your database.

If it won't let you uninstall completely, just edit the product and remove the uninstall code.

Derek

rza733
02-05-2006, 07:55 PM
You can ignore that error. That just means that field doesn't exist in your database.

If it won't let you uninstall completely, just edit the product and remove the uninstall code.

Derek


Ok that seemed to work thank you...

for some reason when i had it installed i kept gettin DB errors :(

rza733
02-05-2006, 09:44 PM
I am now getting this error

Database error in vBulletin 3.5.0:

Invalid SQL:
UPDATE session SET browser='internet_explorer' WHERE userid='80';

MySQL Error : Unknown column 'browser' in 'field list'
Error Number : 1054
Date : Sunday, February 5th 2006 @ 02:46:38 PM
Script : http://www.rzasspot.com/vbshout.php
Referrer : http://www.rzasspot.com/index2.php?
IP Address : 66.245.131.35
Username : Wild1LORI
Classname : vb_database

any idea why?

derekivey
02-05-2006, 11:27 PM
That means it didn't insert the browser field to the session table. To fix it run this query in PHPMyAdmin or vB's Query page in the AdminCP:

ALTER TABLE `session` ADD `browser` VARCHAR( 50 ) DEFAULT '' NOT NULL;

rza733
02-06-2006, 01:13 AM
That means it didn't insert the browser field to the session table. To fix it run this query in PHPMyAdmin or vB's Query page in the AdminCP:

ALTER TABLE `session` ADD `browser` VARCHAR( 50 ) DEFAULT '' NOT NULL;


thanks again man!!!

derekivey
02-06-2006, 08:45 PM
I will be updating this hack sometime this week to make it show only 1 image per browser when there is more than one person with that browser. I will also be adding webtv as a supported browser to show.

Eagle Creek
02-08-2006, 06:55 PM
Hi!

How 'safe' is it to install this hack? Because I like the idea (I run a security board so it's nice to see what browsers people are using) but because you say very urgent
I Strongly Recommend That You Backup Before Installing/Upgrading This Hack!

I'm a little affraid to install.......

derekivey
02-08-2006, 09:08 PM
It's very safe. I just say that on all of my hacks so that people actually backup. It's just incase your database gets messed up at all (which is shouldn't because it is only adding fields to the session table). You shouldn't have any problems with this hack.

Luggruff
02-09-2006, 10:18 AM
Nice ! ;D INSTALLS!
Could you add msn's browser? Think alot of users use that one..

teedizz
02-09-2006, 04:53 PM
my forumhome_loggedinuser looks like this:

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

so where would I add the template change for that?

derekivey
02-09-2006, 06:48 PM
my forumhome_loggedinuser looks like this:

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

so where would I add the template change for that?

Sorry about that, just add the code right before

$stylevar[dirmark]


When I wrote this hack, I didn't notice that my template was customized.

derekivey
02-09-2006, 06:49 PM
Nice ! ;D INSTALLS!
Could you add msn's browser? Think alot of users use that one..

Sorry, I don't think vBulletin's is_browser function supports MSN's browser. That is what this hack uses to determine the browser.

Derek

Smiry Kin's
02-09-2006, 07:28 PM
what about AOL browser?

derekivey
02-09-2006, 07:46 PM
Nope, doesn't look like vB's function has that either. Maybe they will add that later on.

Derek

teedizz
02-09-2006, 08:08 PM
it seems as if anything other than a I.E. browser shows up as unknown...why is that?

teedizz
02-09-2006, 08:56 PM
nevermind...its working fine. Thanks

S@NL - BlackBik
02-10-2006, 01:53 PM
MySQL Error : Query was empty
Error Number : 1065
Date : Saturday, February 4th 2006 @ 07:08:08 PM
Script : http://IP.ADDY/bashys-place.com/forums/index.php
Referrer :
IP Address : This was an IP addy
Username : This used to be a username
Classname : some database
I've got the same error from some people.
One only has it when using Netscape, he can login using Internet Explorer or telling Netscape to act as IE.
One other had this error ones, but not all the time.

Could it still be something that's been blocked by a firewall?

S@NL - BlackBik
02-10-2006, 09:32 PM
Well, I fixed the problem, i think.
I've added one line of code to the plugin, at the bottom of the elseif statements:
} else {
$sql = "UPDATE " . TABLE_PREFIX . "session SET browser='unknown' WHERE userid='".$db->escape_string($vbulletin->userinfo['userid'])."'";
}
Now the people who use a browser that is not detected by vBulletin don't get a sql-error no more.

derekivey
02-11-2006, 01:40 AM
Ok, that should work, I will take a look at my code and see if I can release a better fix that doesn't require 'unknown' to be added to the database.

Derek

S@NL - BlackBik
02-11-2006, 12:20 PM
Well, since it's stored in the session table, wich is temporary, I don't have a big problem with it :)

Brandon Sheley
02-11-2006, 03:04 PM
this doesn't really work for me ?

it shows a ? icon on a FF or IE browser.. I'll check it out for a little while.. may un-install later

Luggruff
02-11-2006, 03:13 PM
this doesn't really work for me ?

it shows a ? icon on a FF or IE browser.. I'll check it out for a little while.. may un-install later

It may take some time for the system to register what browser a user uses.

derekivey
02-11-2006, 04:27 PM
Yeah, you usually have to load another page or refresh after the session is created. I'm currently not sure why this does this, sorry.

Derek

Brandon Sheley
02-11-2006, 07:54 PM
it's been installed a few hours now and there is still an issue

before i seen the ? mark icon next to my name.. but now I see an error on IE and just the text " Internet Explorer" on FF

with the error the page loads slower it seems on IE

http://locoforum.com u can see

derekivey
02-11-2006, 09:34 PM
Did you do the file edits?

derekivey
02-11-2006, 09:36 PM
Wait it also looks like your missing the images, you have to upload them to the misc folder of every skin's image folder.

Brandon Sheley
02-11-2006, 10:21 PM
Did you do the file edits?

yup, in the index.php and the template file..

this is the ?icon i was saying i seen earlier.


Wait it also looks like your missing the images, you have to upload them to the misc folder of every skin's image folder.

ah, didn't think of that..lol

this was my problem.. thanks for the help
* Brandon Sheley clicks install

derekivey
02-12-2006, 12:40 AM
Great, glad to see it's working. Is it detecting the correct browser after you hit refresh?

Brandon Sheley
02-12-2006, 05:15 AM
yup,, it's working perfect for me now

just had to put the images in the correct style :p

C_P
02-21-2006, 01:31 AM
For a person that knows nothing about coding (ME), this is a very nice little mod. I would also commend you on the easy to install step by step instructions you include. Not many go through that kind of trouble to add these types of guides for a modification. Hands off nice install instructions and mod works great.

derekivey
02-21-2006, 01:55 AM
Thanks C_P glad you like it! :). See you at NBS.

Derek

Joe Gronlund
02-24-2006, 03:22 AM
I get a SQL error when i try and remove this product. Is there a way to manually remove products so i can get rid of this product from my installed products list? Right now i just have it disabled, if i try and uninstall the product i get this error.

Database error in vBulletin 3.5.4:

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

MySQL Error : Can't DROP 'browser'. Check that column/key exists
Error Number : 1091
Date : Friday, February 24th 2006 @ 12:21:43 AM
Script : http://forums.jadedsouls.net/admincp/plugin.php
Referrer : http://forums.jadedsouls.net/admincp/plugin.php?do=productdelete&productid=browser_on_wol&s=
IP Address : xx.xxx.xxx.xxx
Username : Timewalk
Classname : vb_database

Any help is greatly appreciated.

eNforce
02-24-2006, 08:24 AM
Attached here are some browser images that will look better on a Dark style

btw, does this put much of a load on the server? Say about 300+ members were online at a time, just curious. I never have more then 20 members online once

derekivey
02-24-2006, 10:01 AM
I get a SQL error when i try and remove this product. Is there a way to manually remove products so i can get rid of this product from my installed products list? Right now i just have it disabled, if i try and uninstall the product i get this error.

Database error in vBulletin 3.5.4:

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

MySQL Error : Can't DROP 'browser'. Check that column/key exists
Error Number : 1091
Date : Friday, February 24th 2006 @ 12:21:43 AM
Script : http://forums.jadedsouls.net/admincp/plugin.php
Referrer : http://forums.jadedsouls.net/admincp/plugin.php?do=productdelete&productid=browser_on_wol&s=
IP Address : xx.xxx.xxx.xxx
Username : Timewalk
Classname : vb_database

Any help is greatly appreciated.

Just edit the product and remove the uninstall code from it, it should uninstall then.

derekivey
02-24-2006, 10:03 AM
Attached here are some browser images that will look better on a Dark style

btw, does this put much of a load on the server? Say about 300+ members were online at a time, just curious. I never have more then 20 members online once

Thanks,
I'll include them in the zip file when I get back from school.

Also I'm not sure how well it works with big sites, I don't have a big enough site to test it on.

Derek

CoreIssue
02-25-2006, 07:44 PM
OK. Stupid question here. Where are the template edits? I do not see them anywhere in the zip file.

bashy
02-25-2006, 07:45 PM
There in the readme.html i just checked!!

derekivey
02-25-2006, 08:14 PM
Yup, they should be in the readme file.

CoreIssue
02-25-2006, 08:32 PM
Yep. There is a readme with some file edits in it.

But what do I do with the css scripting above the finds? No instructions.

I am new to VB. Came from phpBB where I did tons of modding.

So, if this in unclear to me it is going to be unclear to others.

Thanks.

bashy
02-25-2006, 08:35 PM
what css scripting?

CoreIssue
02-25-2006, 08:38 PM
Look at the top of the readme file. At least half the data is css styling. Right off the bat is formatted

CSS Stylesheet

I deleted the surround coding.

bashy
02-25-2006, 08:44 PM
do you mean this?

Installation Instructions
1. Do the following File Edits:

OPEN: index.php

FIND: (Select All)
session.userid, session.inforum, session.lastactivity,

IN LINE FIND: (Select All)
session.userid,

AFTER ADD: (Select All)
session.browser,

FIND: (Select All)
'username' => $vbulletin->userinfo['username'],

AFTER ADD: (Select All)
'browser' => $vbulletin->session->vars['browser'],

CLOSE AND SAVE: index.php

CoreIssue
02-25-2006, 08:46 PM
No. The css material above it. You are starting at least half way down the file.

If the css stuff has no meaning why is it there?

bashy
02-25-2006, 08:47 PM
This is all i can see

vBulletin.org Thread Changelog Install Upgrade Uninstall


Browser on Who's Online Version 1.0.1
Developers: derekivey
Version: 1.0.1
vBulletin Version: 3.5.3
File Edits: 2
Template Edits: 1
New Phrases: 8
Uses Plugins: Yes
Difficulty: Easy

Description: 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!
I am not responsible for any damage this hack causes to your forum so make sure to backup!!! ***



Changelog
December 29, 2005 - Version 1.0.0 Released

January 4, 2006 - Version 1.0.1 Released - Moved browsers to session table instead of user table. Also removed 'Unknown' from being in the table, and replaced it with Psionic Vision's suggestion.



Installation Instructions
1. Do the following File Edits:

OPEN: index.php

CoreIssue
02-25-2006, 08:50 PM
I just downloaded it and it has this in it above what you posted.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<!-- CSS Stylesheet -->
<style type="text/css" id="vbulletin_css">
<!--
/* vBulletin 3 CSS For Style 'Default Style' (styleid: 1) */
body
{
background: #E1E1E2;
color: #000000;
font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
margin: 5px 10px 10px 10px;
padding: 0px;
}
a:link
{
color: #22229C;
}
a:visited
{
color: #22229C;
}
a:hover, a:active
{
color: #FF4400;
}
.page
{
background: #FFFFFF;
color: #000000;
}
td, th, p, li
{
font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.tborder
{
background: #D1D1E1;
color: #000000;
border: 1px solid #0B198C;
}
.tcat
{
background: #869BBF url(do_not_upload/readme/images/gradient_tcat.gif) repeat-x top left;
color: #FFFFFF;
font: bold 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.tcat a:link
{
color: #ffffff;
text-decoration: none;
}
.tcat a:visited
{
color: #ffffff;
text-decoration: none;
}
.tcat a:hover, .tcat a:active
{
color: #FFFF66;
text-decoration: underline;
}
.thead
{
background: #5C7099 url(do_not_upload/readme/images/gradient_thead.gif) repeat-x top left;
color: #FFFFFF;
font: bold 11px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.thead a:link
{
color: #FFFFFF;
}
.thead a:visited
{
color: #FFFFFF;
}
.thead a:hover, .thead a:active
{
color: #FFFF00;
}
.tfoot
{
background: #3E5C92;
color: #E0E0F6;
}
.tfoot a:link
{
color: #E0E0F6;
}
.tfoot a:visited
{
color: #E0E0F6;
}
.tfoot a:hover, .tfoot a:active
{
color: #FFFF66;
}
.alt1, .alt1Active
{
background: #F5F5FF;
color: #000000;
}
.alt2, .alt2Active
{
background: #E1E4F2;
color: #000000;
}
textarea, .bginput
{
font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.button
{
font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
select
{
font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
option, optgroup
{
font-size: 11px;
font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.smallfont
{
font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.time
{
color: #666686;
}
.navbar
{
font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.highlight
{
color: #FF0000;
font-weight: bold;
}
.fjsel
{
background: #3E5C92;
color: #E0E0F6;
}
.fjdpth0
{
background: #F7F7F7;
color: #000000;
}
.vbmenu_control
{
background: #738FBF;
color: #FFFFFF;
font: bold 11px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
padding: 3px 6px 3px 6px;
white-space: nowrap;
}
.vbmenu_control a:link
{
color: #FFFFFF;
text-decoration: none;
}
.vbmenu_control a:visited
{
color: #FFFFFF;
text-decoration: none;
}
.vbmenu_control a:hover, .vbmenu_control a:active
{
color: #FFFFFF;
text-decoration: underline;
}
.vbmenu_popup
{
background: #FFFFFF;
color: #000000;
border: 1px solid #0B198C;
}
.vbmenu_option
{
background: #BBC7CE;
color: #000000;
font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
white-space: nowrap;
cursor: pointer;
}
.vbmenu_option a:link
{
color: #22229C;
text-decoration: none;
}
.vbmenu_option a:visited
{
color: #22229C;
text-decoration: none;
}
.vbmenu_option a:hover, .vbmenu_option a:active
{
color: #FFFFFF;
text-decoration: none;
}
.vbmenu_hilite
{
background: #8A949E;
color: #FFFFFF;
font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
white-space: nowrap;
cursor: pointer;
}
.vbmenu_hilite a:link
{
color: #FFFFFF;
text-decoration: none;
}
.vbmenu_hilite a:visited
{
color: #FFFFFF;
text-decoration: none;
}
.vbmenu_hilite a:hover, .vbmenu_hilite a:active
{
color: #FFFFFF;
text-decoration: none;
}
/* ***** small padding on 'thead' elements ***** */
td.thead, div.thead { padding: 4px; }
/* ***** basic styles for multi-page nav elements */
.pagenav a { text-decoration: none; }
.pagenav td { padding: 2px 4px 2px 4px; }
/* ***** define margin and font-size for elements inside panels ***** */
.fieldset { margin-bottom: 6px; }
.fieldset, .fieldset td, .fieldset p, .fieldset li { font-size: 11px; }
/* ***** don't change the following ***** */
form { display: inline; }
label { cursor: default; }
.normal { font-weight: normal; }
.inlineimg { vertical-align: middle; }
-->
</style>
<!-- / CSS Stylesheet -->
<title>Browser on Who's Online Version 1.0.1 Readme</title>
</head>
<body>
<!-- logo -->
<a name="top"></a>
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="left"><a href="readme.html"><img src="do_not_upload/readme/images/vbulletin3_logo_white.gif" border="0" alt="Toplist Random Site Module" /></a></td>
<td align="right">
<strong><span style="font-size: 20px;">Readme File</span>
</td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
<!-- open content container -->
<div align="center">
<div class="page" style="width:100%; text-align:left">
<div style="padding:0px 25px 0px 25px">
<br />
<!-- nav buttons bar -->
<div align="center">
<table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center">
<tr align="center">
<td class="vbmenu_control"><a href="<A href="https://vborg.vbsupport.ru/showthread.php?t=103996">vBulletin.org">https://vborg.vbsupport.ru/showthread.php?t=103996">vBulletin.org Thread</a></td>
<td class="vbmenu_control"><a href="readme.html#changelog">Changelog</a></td>
<td class="vbmenu_control"><a href="readme.html#install">Install</a></td>
<td class="vbmenu_control"><a href="readme.html#upgrade">Upgrade</a></td>
<td class="vbmenu_control"><a href="readme.html#uninstall">Uninstall</a></td>
</tr>
</table>
</div>
<!-- / nav buttons bar -->
<br />
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tr align="center">
<td class="tcat" colspan="6">Browser on Who's Online Version 1.0.1</td>
</tr>
<tr align="left">
<td class="alt1" colspan="6">
<strong>Developers:</strong> <a href="https://vborg.vbsupport.ru/member.php?u=81169" target="_BLANK">derekivey</a><br />
<strong>Version:</strong> 1.0.1<br />
<strong>vBulletin Version:</strong> 3.5.3<br />
<strong>File Edits:</strong> 2<br />
<strong>Template Edits:</strong> 1<br />
<strong>New Phrases:</strong> 8<br />
<strong>Uses Plugins:</strong> Yes<br />
<strong>Difficulty:</strong> Easy<br /><br />
<strong>Description:</strong> 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.<br /><br />
<center><span style="color: red; font-size: 20px;">*** I Strongly Recommend That You Backup Before Installing/Upgrading This Hack!<br />
I am not responsible for any damage this hack causes to your forum so make sure to backup!!! ***</span></center><br />
</td>
</tr>
<tr align="center">
<td class="thead" colspan="6"><div class="smallfont">
&nbsp;
</div>
</td>
</tr>
</table>
<br />
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tr align="center">
<td id="changelog" class="tcat">Changelog</td>
</tr>
<tr align="left">
<td class="alt1">
<strong>December 29, 2005 - Version 1.0.0 Released</strong><br /><br />
<strong>January 4, 2006 - Version 1.0.1 Released -</strong> Moved browsers to session table instead of user table. Also removed 'Unknown' from being in the table, and replaced it with Psionic Vision's suggestion.<br />
</td>
</tr>
<tr align="center">
<td class="thead"><div class="smallfont">
&nbsp;
</div>
</td>
</tr>
</table>
<br />
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tr align="center">
<td id="install" class="tcat">Installation Instructions</td>
</tr>
<tr align="left">
<td class="alt1">

bashy
02-25-2006, 08:54 PM
Your seeing the reame.html in code for some reason!!

You need to open that readme in a browser not notepad or wordpad

CoreIssue
02-25-2006, 08:57 PM
Yep. That cleanse it up!

Never had this before. And may explain another problem I am having with the Search and Quick Links not always dropping for me.

Now, where is the issue coming from? Sigh!

Thanks!!!:nervous:

bashy
02-25-2006, 09:01 PM
This maybe the browser your using, If i was you i would try another browser and if thats no good then ask over at vbulletin.com as this sounds like an issue for them..
Unless its a hack that you have installed that could be conflicting....

You could also try turning off recently installed hacks to se if that works!
Best not to take over derekivey's thread anymore with other issues though :)


Sorry derekivey for taking over your hack thread :o

CoreIssue
02-25-2006, 09:16 PM
This maybe the browser your using, If i was you i would try another browser and if thats no good then ask over at vbulletin.com as this sounds like an issue for them..
Unless its a hack that you have installed that could be conflicting....

You could also try turning off recently installed hacks to se if that works!
Best not to take over derekivey's thread anymore with other issues though :)


Sorry derekivey for taking over your hack thread :o
Already did that stuff.

And not taking over his thread. Just thanking you for your help here.

Installed and working fine. Clicking Install now.

bashy
02-25-2006, 09:18 PM
Your welcome, glad ya got it sorted, tisa great addon for any forum :)
Have a good night :)

derekivey
02-25-2006, 09:52 PM
Thats just the CSS for the readme file, you should open the readme file in a browser to view it correctly.

C_P
02-25-2006, 09:55 PM
I love this addition, however, it looks like I have to remove it until a fix is done. I have a few users that get this issue when I have this modification enabled when they visit the site:


Database error in vBulletin 3.5.3:

Invalid SQL:

;

MySQL Error : Query was empty

Error Number : 1065

Date : Friday, February 24th 2006 @ 02:47:26 AM

Script : http://www.cpfools.com/forum/index.php

Referrer : http://www.cpfools.com/forum/login.php

IP Address : 69.244.104.28

Username : plodr

Classname : vb_database



Here is some history on this. I have also seen other users here posting same issue to no particualr resolution at this point. I have sucessfully deduced that the cause is the plug in as after trying multiple things, the only sucess I had with user signing in was AFTER disabling this plug in.
Here are some things tried.

This user reports the following:

Having a problem getting in on my 98SE computer. I got two more of those, which I'll compare and post - if they are different.

I cleaned out all my cp cookies. I checked to see if the pass was the wrong one and the password was blank. I tried again; I got the main page to load but when I try to login, up comes that screen.

First I checked plodr errors and the only thing different is that the time changes.

Here is what I've done thus far: I deleted my cpfools bookmark, I removed the password because it was blank, I unprotected all cp cookies and removed them. I closed out the browser. I can get to the main page, I go to login I put in plodr then tab to password, I type that in, see the ***********, whether I select autologin or not the minute I click the sign in the password box changes to a blank box (in other words, it seems as if my password disappears and the db thinks I put in no password). I shut down the browser, made sure there weren't any cookies nor saved passwords. I tried to login as normal user account and observed the exact behavior - the password box goes blank. At least, I got a different appearing error. I'm going to reboot my 98 box and see if it changes the behavior - be prepared for a slew of error messages. Sorry.
FF also now includes some tool, clear privacy data. I have it configured to NOT clear cookies and passwords because I use other tools. I also have it set to alert me before it clears anything.

I shut down CounterSpy. I also decided to use the keyboard only insted of the mouse. No difference. As soon as I press/click login, my password disappears so you get the end result that I'm trying to login without a password.

I know it isn't the db because it happens on both accounts. I confirmed that this disappearing password is unique to this site. I went to another site. No cookies nor password appeared anywhere. I went to login and my password did not disappear.

So something on my 98SE computer is interfering with something specific to this site.

This is an admin at my site and this issue does not happen to me. So, again, the only thing that stopped this issue was disabling the plug in here.

bashy
02-25-2006, 10:00 PM
Try disableing the firewall ;)
I have 1 member that had this problem and we found out it was his firewall
and it stopped him from logging in, yes its sommat to do with this hack but its the firewall that dont like it!!

I love this addition, however, it looks like I have to remove it until a fix is done. I have a few users that get this issue when I have this modification enabled when they visit the site:


Database error in vBulletin 3.5.3:

Invalid SQL:

;

MySQL Error : Query was empty

Error Number : 1065

Date : Friday, February 24th 2006 @ 02:47:26 AM

Script : http://www.cpfools.com/forum/index.php

Referrer : http://www.cpfools.com/forum/login.php

IP Address : 69.244.104.28

Username : plodr

Classname : vb_database



Here is some history on this. I have also seen other users here posting same issue to no particualr resolution at this point. I have sucessfully deduced that the cause is the plug in as after trying multiple things, the only sucess I had with user signing in was AFTER disabling this plug in.
Here are some things tried.

This user reports the following:



This is an admin at my site and this issue does not happen to me. So, again, the only thing that stopped this issue was disabling the plug in here.

Rickie3
02-28-2006, 12:40 AM
wow only just found this *installed thankyou*

Rickie3
02-28-2006, 03:19 AM
hi i have a user using Netscape/7.2 but its not showing on WOL just a ? mark saying unknown,is there a fix for this please

soulface
02-28-2006, 04:10 AM
am getting this error when uninstalling this product (removed the index.php edit, removed templates edit, then trying to uninstall the product)

Database error in vBulletin 3.5.4:

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

MySQL Error : Can't DROP 'browser'; check that column/key exists
Error Number : 1091
Date : Tuesday, February 28th 2006 @ 01:07:48 AM
Referrer :
IP Address : *********
Username : ********
Classname : vb_database

derekivey
02-28-2006, 10:06 AM
hi i have a user using Netscape/7.2 but its not showing on WOL just a ? mark saying unknown,is there a fix for this please
vB's is_browser function might now support that version. I'll take a look when I get back from school.


am getting this error when uninstalling this product (removed the index.php edit, removed templates edit, then trying to uninstall the product)



Database error in vBulletin 3.5.4:



Invalid SQL:

ALTER TABLE `session` DROP `browser`;;



MySQL Error : Can't DROP 'browser'; check that column/key exists

Error Number : 1091

Date : Tuesday, February 28th 2006 @ 01:07:48 AM

Referrer :

IP Address : *********

Username : ********

Classname : vb_database

That means the browser field is missing from the session table. Just edit the product and remove the uninstall code and it should uninstall fine.

Derek

Rickie3
02-28-2006, 10:17 AM
vB's is_browser function might now support that version. I'll take a look when I get back from school.





Derek
thankyou for your support look foward to a reply

soulface
02-28-2006, 10:49 AM
thx derekivey. i really loved this hack but had to remove it for that login prob & empty sql query error. am looking forward for this bug fix & that 'one browser icon for same browser users'... :)

Rickie3
03-02-2006, 10:32 AM
ive had to uninstall this as a couple of members use netscape and kept getting an error if you sort it out will install back on my board,in the meantime watching this thread thankyou

derekivey
03-02-2006, 11:42 AM
Hey guys,

I'm not sure whats wrong with it. I'll have to try writing my own function that detects the browser instead of using vB's.

Derek

Rickie3
03-02-2006, 12:03 PM
thankyou derekivey i hope you sort it out as i really want this hack to work,its a nice addition,and looked great on my board

S@NL - BlackBik
03-02-2006, 08:07 PM
I had the same error on Netscape browsers.
I posted a fix here (https://vborg.vbsupport.ru/showpost.php?p=896770&postcount=93).
This ain't pretty, but it does the trick.
It inserts "unknown" in the sessions table when the browers is not recognised. But since the sessions entry is temporary I don't mind having some stupid overhead in there ;)

derekivey
03-02-2006, 08:26 PM
Good idea, I will update the hack with the fix.

Thanks,
Derek

derekivey
03-02-2006, 09:02 PM
Ok, Version 1.0.2 has been released. Thanks to everyone who reported the bug. Also thanks to S@NL - BlackBik for posting a fix.

I have also included eNforce's browser icons in the do_not_upload folder, in the Extras folder.

Derek

S@NL - BlackBik
03-02-2006, 09:06 PM
Allright! my first official bugfix!! :D
Glad to have been of service :)

derekivey
03-02-2006, 09:08 PM
Lol, Thanks again :).

Joe Gronlund
03-22-2006, 12:40 PM
I get the following database error when i try and uninstall this hack.
Can anyone help me??

Database error in vBulletin 3.5.4:

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

MySQL Error : Can't DROP 'browser'; check that column/key exists
Error Number : 1091
Date : Wednesday, March 22nd 2006 @ 09:41:32 AM
Script : http://www.microsoftforums.org/forums/admincp/plugin.php
Referrer : http://www.microsoftforums.org/forums/admincp/plugin.php?do=productdelete&productid=browser_on_wol&s=
IP Address : 72.xxx.xxx.xxx
Username : Joe Gronlund
Classname : vb_database

derekivey
03-22-2006, 06:41 PM
Looks like it is executing old uninstall code, just edit the product in vBulletin, and remove the uninstall code, it should then uninstall fine.

Derek

Joe Gronlund
03-22-2006, 10:27 PM
Looks like it is executing old uninstall code, just edit the product in vBulletin, and remove the uninstall code, it should then uninstall fine.

Derek

Yep, it worked.. Thanks Derek :D

derekivey
03-23-2006, 02:01 AM
No Problem :).

350Chevy
03-30-2006, 06:45 PM
Attached here are some browser images that will look better on a Dark style

You could've saved yourself alot of trouble if you would've read the messages. :)

Back on page 5 I posted some icons I edited that work well on ANY background. ;)

https://vborg.vbsupport.ru/showpost.php?p=872054&postcount=66

wssm
03-31-2006, 04:55 PM
<font size="5">How can I show the who's online on an HTML page? </font>

Anyone knows?

:bunny: Wendy

derekivey
03-31-2006, 06:35 PM
Please start a new thread rather than invading mine.

Thank You.

wssm
03-31-2006, 06:57 PM
ops.. sorry mr:tired:

derekivey
03-31-2006, 11:16 PM
No Problem :).

Snort_2005
04-29-2006, 03:22 AM
Hmm.. I've had this installed for a few weeks and my members like it.. However, there seems to be a problem when the user first enters a vBulletin powered page such as vBadvanced CMPS or the vBulletin Admin/Mod Control Panels.. It doesn't seem to detect the browser right away like it did with an Invision Board hack that did this very thing.

What I am wondering, is how to get the browser icon to show on the first page view. (Sometimes I have to refresh a few times to get it to recognise my browser.)

Tyegurl
04-29-2006, 03:37 AM
Hmm.. I've had this installed for a few weeks and my members like it.. However, there seems to be a problem when the user first enters a vBulletin powered page such as vBadvanced CMPS or the vBulletin Admin/Mod Control Panels.. It doesn't seem to detect the browser right away like it did with an Invision Board hack that did this very thing.

What I am wondering, is how to get the browser icon to show on the first page view. (Sometimes I have to refresh a few times to get it to recognise my browser.)

you can get it to show on vbadvance index page?i can't lol i would like to see the fix for that myself ;)

derekivey
04-29-2006, 12:55 PM
Hmm.. I've had this installed for a few weeks and my members like it.. However, there seems to be a problem when the user first enters a vBulletin powered page such as vBadvanced CMPS or the vBulletin Admin/Mod Control Panels.. It doesn't seem to detect the browser right away like it did with an Invision Board hack that did this very thing.

What I am wondering, is how to get the browser icon to show on the first page view. (Sometimes I have to refresh a few times to get it to recognise my browser.)

Thats happens because I guess vB's sessions start before the hack itself so it doesn't get added the first time when they view the page, but after the session is created it gets added. I might have to take away the plugin and make it a file mod to get it in the right place. I'll try and have it fixed for the next version.

Derek

saba
04-29-2006, 01:54 PM
i cant find the codes in the index.php file

derekivey
04-29-2006, 03:13 PM
Try finding session.userid. You might have installed a few hacks that changed the line.

saba
04-29-2006, 06:58 PM
Try finding session.userid. You might have installed a few hacks that changed the line.
trye that aswell i dont see session.userid anywhere and i havant installed anything that use editin index.pho

<?php
/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBulletin 3.5.3 - Licence Number *********
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2000-2006 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| ################################################## ################## ||
\*================================================ ======================*/

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'index');

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array('holiday');

// get special data templates from the datastore
$specialtemplates = array(
'userstats',
'birthdaycache',
'maxloggedin',
'iconcache',
'eventcache',
'mailqueue'
);

// pre-cache templates used by all actions
$globaltemplates = array(
'FORUMHOME',
'forumhome_event',
'forumhome_forumbit_level1_nopost',
'forumhome_forumbit_level1_post',
'forumhome_forumbit_level2_nopost',
'forumhome_forumbit_level2_post',
'forumhome_lastpostby',
'forumhome_loggedinuser',
'forumhome_moderator',
'forumhome_pmloggedin',
'forumhome_subforumbit_nopost',
'forumhome_subforumbit_post',
'forumhome_subforumseparator_nopost',
'forumhome_subforumseparator_post'
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
require_once(DIR . '/includes/functions_bigthree.php');
require_once(DIR . '/includes/functions_forumlist.php');

// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################

($hook = vBulletinHook::fetch_hook('forumhome_start')) ? eval($hook) : false;

// get permissions to view forumhome
if (!($permissions['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']))
{
print_no_permission();
}

if (empty($foruminfo['forumid']))
{
// show all forums
$forumid = -1;
}
else

derekivey
04-29-2006, 07:20 PM
You didn't paste the whole file, the code is near the end I think.

Derek

saba
04-29-2006, 07:40 PM
here it is :confused:

derekivey
04-30-2006, 11:43 AM
I found it in there. Find $forumusers = $db->query_read(", its like 3-4 lines down from that: session.userid, session.inforum, session.lastactivity

Derek

saba
04-30-2006, 05:10 PM
i edit all that stuff but i just get that database error

here my index.php code it seems right to me

<?php
/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBulletin 3.5.4 - Licence Number ***********
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2000-2006 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| ################################################## ################## ||
\*================================================ ======================*/

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'index');

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array('holiday','adv_gallery');

// get special data templates from the datastore
$specialtemplates = array(
'userstats',
'birthdaycache',
'maxloggedin',
'iconcache',
'eventcache',
'mailqueue',
'gallery_c_cache',
' adv_gallery_opt',
'gallery_ugroups
');

// pre-cache templates used by all actions
$globaltemplates = array(
'FORUMHOME',
'forumhome_event',
'forumhome_forumbit_level1_nopost',
'forumhome_forumbit_level1_post',
'forumhome_forumbit_level2_nopost',
'forumhome_forumbit_level2_post',
'forumhome_lastpostby',
'forumhome_loggedinuser',
'forumhome_moderator',
'forumhome_pmloggedin',
'forumhome_subforumbit_nopost',
'forumhome_subforumbit_post',
'forumhome_subforumseparator_nopost',
'forumhome_subforumseparator_post'
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
require_once(DIR . '/includes/functions_bigthree.php');
require_once(DIR . '/includes/functions_forumlist.php');

// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################

($hook = vBulletinHook::fetch_hook('forumhome_start')) ? eval($hook) : false;

// get permissions to view forumhome
if (!($permissions['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']))
{
print_no_permission();
}

if (empty($foruminfo['forumid']))
{
// show all forums
$forumid = -1;
}
else
{
// check forum permissions
$_permsgetter_ = 'index';
$forumperms = fetch_permissions($foruminfo['forumid']);

if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']))
{
print_no_permission();
}

// check if there is a forum password and if so, ensure the user has it set
verify_forum_password($foruminfo['forumid'], $foruminfo['password']);

// draw nav bar
$navbits = array();
$parentlist = array_reverse(explode(',', substr($foruminfo['parentlist'], 0, -3)));
foreach ($parentlist AS $forumID)
{
$forumTitle =& $vbulletin->forumcache["$forumID"]['title'];
$navbits['forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$forumID"] = $forumTitle;
}

// pop the last element off the end of the $nav array so that we can show it without a link
array_pop($navbits);

$navbits[''] = $foruminfo['title'];
$navbits = construct_navbits($navbits);
}

$today = vbdate('Y-m-d', TIMENOW, false, false);

// ### TODAY'S BIRTHDAYS #################################################
if ($vbulletin->options['showbirthdays'])
{
if (!is_array($vbulletin->birthdaycache) OR ($today != $vbulletin->birthdaycache['day1'] AND $today != $vbulletin->birthdaycache['day2']))
{
// Need to update!
require_once(DIR . '/includes/functions_databuild.php');
$birthdaystore = build_birthdays();
DEVDEBUG('Updated Birthdays');
}
else
{
$birthdaystore = $vbulletin->birthdaycache;
}

switch ($today)
{
case $birthdaystore['day1']:
$birthdays = $birthdaystore['users1'];
break;

case $birthdaystore['day2']:
$birthdays = $birthdaystore['users2'];
break;
}
// memory saving
unset($birthdaystore);

if ($stylevar['dirmark'])
{
$birthdays = str_replace('<!--rlm-->', $stylevar['dirmark'], $birthdays);
}

$show['birthdays'] = iif ($birthdays, true, false);
}
else
{
$show['birthdays'] = false;
}

// ### TODAY'S EVENTS #################################################
if ($vbulletin->options['showevents'])
{
require_once(DIR . '/includes/functions_calendar.php');

$future = gmdate('n-j-Y' , TIMENOW + 86400 * $vbulletin->options['showevents']);

if (!is_array($vbulletin->eventcache) OR $future != $vbulletin->eventcache['date'])
{
// Need to update!
require_once(DIR . '/includes/functions_databuild.php');
$eventstore = build_events();
DEVDEBUG('Updated Events');
}
else
{
$eventstore = $vbulletin->eventcache;
}

unset($eventstore['date']);
$events = array();
$eventcount = 0;
foreach ($eventstore AS $eventid => $eventinfo)
{
$offset = $eventinfo['utc'] ? $vbulletin->userinfo['timezoneoffset'] : ($vbulletin->userinfo['timezoneoffset'] ? $vbulletin->userinfo['tzoffset'] : $vbulletin->userinfo['timezoneoffset']);
$eventstore["$eventid"]['dateline_from_user'] = $eventinfo['dateline_from_user'] = $eventinfo['dateline_from'] + $offset * 3600;
$eventstore["$eventid"]['dateline_to_user'] = $eventinfo['dateline_to_user'] = $eventinfo['dateline_to'] + $offset * 3600;
$gettime = TIMENOW - $vbulletin->options['hourdiff'];
$iterations = 0;
$todaydate = getdate($gettime);

if ($vbulletin->userinfo['calendarpermissions']["$eventinfo[calendarid]"] & $vbulletin->bf_ugp_calendarpermissions['canviewcalendar'] OR ($eventinfo['holidayid'] AND $vbulletin->options['showholidays']))
{
if ($eventinfo['userid'] == $vbulletin->userinfo['userid'] OR $vbulletin->userinfo['calendarpermissions']["$eventinfo[calendarid]"] & $vbulletin->bf_ugp_calendarpermissions['canviewothersevent'] OR ($eventinfo['holidayid'] AND $vbulletin->options['showholidays']))
{
if (!$eventinfo['recurring'] AND !$vbulletin->options['showeventtype'] AND !$eventinfo['singleday'] AND cache_event_info($eventinfo, $todaydate['mon'], $todaydate['mday'], $todaydate['year']))
{
$events["$eventid"][] = $gettime;
}
else
{
while ($iterations < $vbulletin->options['showevents'])
{
$addcache = false;

$todaydate = getdate($gettime);
if ($eventinfo['holidayid'] AND $eventinfo['recurring'] == 6)
{
if ($eventinfo['recuroption'] == "$todaydate[mon]|$todaydate[mday]")
{
$addcache = true;
}
}
else if (cache_event_info($eventinfo, $todaydate['mon'], $todaydate['mday'], $todaydate['year']))
{
$addcache = true;
}



if ($addcache)
{
if (!$vbulletin->options['showeventtype'])
{
$events["$eventid"][] = $gettime;
}
else
{
$events["$gettime"][] = $eventid;
}
$eventcount++;
}

$iterations++;
$gettime += 86400;
}
}
}
}
}

if (!empty($events))
{
if ($vbulletin->options['showeventtype'])
{
ksort($events, SORT_NUMERIC);
}
else
{
function groupbyevent($a, $b)
{
if ($a[0] == $b[0]) { return 0; }
else { return ($a[0] < $b[0]) ? -1 : 1; }
}
uasort($events, 'groupbyevent');
}

foreach($events AS $index => $value)
{
$pastevent = 0;
$pastcount = 0;

$comma = $eventdates = $daysevents = '';
if (!$vbulletin->options['showeventtype'])
{ // Group by Event // $index = $eventid
$eventinfo = $eventstore["$index"];
if (empty($eventinfo['recurring']) AND empty($eventinfo['singleday']))
{ // ranged event -- show it from its real start and real end date (vbgmdate)
$eventdates = construct_phrase($vbphrase['event_x_to_y'], vbdate($vbulletin->options['dateformat'], $eventinfo['dateline_from_user'], false, true, false, true), vbdate($vbulletin->options['dateformat'], $eventinfo['dateline_to_user'], false, true, false, true));
$day = vbdate('Y-n-j', $eventinfo['dateline_from_user'], false, false);
}
else
{
unset($day);
foreach($value AS $key => $dateline)
{
if (($dateline - 86400) == $pastevent AND !$eventinfo['holidayid'])
{
$pastevent = $dateline;
$pastcount++;
continue;
}
else
{
if ($pastcount)
{
$eventdates = construct_phrase($vbphrase['event_x_to_y'], $eventdates, vbdate($vbulletin->options['dateformat'], $pastevent, false, true, false));
}
$pastcount = 0;
$pastevent = $dateline;
}
if (!$day)
{
$day = vbdate('Y-n-j', $dateline, false, false, false);
}
$eventdates .= $comma . vbdate($vbulletin->options['dateformat'], $dateline, false, true, false);
$comma = ', ';
}
if ($pastcount)
{
$eventdates = construct_phrase($vbphrase['event_x_to_y'], $eventdates, vbdate($vbulletin->options['dateformat'], $pastevent, false, true, false));
}
}

if ($eventinfo['holidayid'])
{
$callink = '<a href="calendar.php?' . $vbulletin->session->vars['sessionurl'] . "do=getinfo&amp;day=$day\">" . $vbphrase['holiday_title_' . $eventinfo['varname']] . "</a>";
}
else
{
$callink = '<a href="calendar.php?' . $vbulletin->session->vars['sessionurl'] . "do=getinfo&amp;day=$day&amp;e=$eventinfo[eventid]&amp;c=$eventinfo[calendarid]\">$eventinfo[title]</a>";
}
}
else
{ // Group by Date
$eventdate = vbdate($vbulletin->options['dateformat'], $index, false, true, false);

$day = vbdate('Y-n-j', $index, false, true, false);
foreach($value AS $key => $eventid)
{
$eventinfo = $eventstore["$eventid"];
if ($eventinfo['holidayid'])
{
$daysevents .= $comma . '<a href="calendar.php?' . $vbulletin->session->vars['sessionurl'] . "do=getinfo&amp;day=$day\">" . $vbphrase['holiday_title_' . $eventinfo['varname']] . "</a>";
}
else
{
$daysevents .= $comma . '<a href="calendar.php?' . $vbulletin->session->vars['sessionurl'] . "do=getinfo&amp;day=$day&amp;e=$eventinfo[eventid]&amp;c=$eventinfo[calendarid]\">$eventinfo[title]</a>";
}
$comma = ', ';
}
}

($hook = vBulletinHook::fetch_hook('forumhome_event')) ? eval($hook) : false;
eval('$upcomingevents .= "' . fetch_template('forumhome_event') . '";');
}
// memory saving
unset($events, $eventstore);
}
$show['upcomingevents'] = iif ($upcomingevents, true, false);
$show['todaysevents'] = iif ($vbulletin->options['showevents'] == 1, true, false);
}
else
{
$show['upcomingevents'] = false;
}

// ### LOGGED IN USERS #################################################
$activeusers = '';
if ($vbulletin->options['displayloggedin'] AND !$show['search_engine'])
{
$datecut = TIMENOW - $vbulletin->options['cookietimeout'];
$numbervisible = 0;
$numberregistered = 0;
$numberguest = 0;

$forumusers = $db->query_read("
SELECT
user.username, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid,
session.userid,session.browser, session.inforum, session.lastactivity,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM " . TABLE_PREFIX . "session AS session
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = session.userid)
WHERE session.lastactivity > $datecut
" . iif($vbulletin->options['displayloggedin'] == 1, "ORDER BY username ASC") . "
");

if ($vbulletin->userinfo['userid'])
{
// fakes the user being online for an initial page view of index.php
$vbulletin->userinfo['joingroupid'] = iif($vbulletin->userinfo['displaygroupid'], $vbulletin->userinfo['displaygroupid'], $vbulletin->userinfo['usergroupid']);
$userinfos = array
(
$vbulletin->userinfo['userid'] => array
(
'userid' => $vbulletin->userinfo['userid'],
'username' => $vbulletin->userinfo['username'],'browser' => $vbulletin->session->vars['browser'],
'invisible' => $vbulletin->userinfo['invisible'],
'inforum' => 0,
'lastactivity' => TIMENOW,
'usergroupid' => $vbulletin->userinfo['usergroupid'],
'displaygroupid' => $vbulletin->userinfo['displaygroupid'],
)
);
}
else
{
$userinfos = array();
}
$inforum = array();

while ($loggedin = $db->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
}

if (!$vbulletin->userinfo['userid'] AND $numberguest == 0)
{
$numberguest++;
}

foreach ($userinfos AS $userid => $loggedin)
{
$numberregistered++;
if ($userid != $vbulletin->userinfo['userid'])
{
$inforum["$loggedin[inforum]"]++;
}
$loggedin['musername'] = fetch_musername($loggedin);

($hook = vBulletinHook::fetch_hook('forumhome_loggedinuser' )) ? eval($hook) : false;

if (fetch_online_status($loggedin))
{
$numbervisible++;
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
}
}

// memory saving
unset($userinfos, $loggedin);

$activeusers = substr($activeusers, 2); // get rid of initial comma

$db->free_result($forumusers);

$totalonline = $numberregistered + $numberguest;
$numberinvisible = $numberregistered - $numbervisible;

// ### MAX LOGGEDIN USERS ################################
if (intval($vbulletin->maxloggedin['maxonline']) <= $totalonline)
{
$vbulletin->maxloggedin['maxonline'] = $totalonline;
$vbulletin->maxloggedin['maxonlinedate'] = TIMENOW;
build_datastore('maxloggedin', serialize($vbulletin->maxloggedin));
}

$recordusers = vb_number_format($vbulletin->maxloggedin['maxonline']);;
$recorddate = vbdate($vbulletin->options['dateformat'], $vbulletin->maxloggedin['maxonlinedate'], true);
$recordtime = vbdate($vbulletin->options['timeformat'], $vbulletin->maxloggedin['maxonlinedate']);

$show['loggedinusers'] = true;
}
else
{
$show['loggedinusers'] = false;
}

// ### GET FORUMS & MODERATOR iCACHES ########################
cache_ordered_forums(1);
if ($vbulletin->options['showmoderatorcolumn'])
{
cache_moderators();
}
else
{
cache_moderators($vbulletin->userinfo['userid']);
}

// define max depth for forums display based on $vbulletin->options[forumhomedepth]
define('MAXFORUMDEPTH', $vbulletin->options['forumhomedepth']);

$forumbits = construct_forum_bit($forumid);

// ### BOARD STATISTICS #################################################

// get total threads & posts from the forumcache
$totalthreads = 0;
$totalposts = 0;
if (is_array($vbulletin->forumcache))
{
foreach ($vbulletin->forumcache AS $forum)
{
$totalthreads += $forum['threadcount'];
$totalposts += $forum['replycount'];
}
}
$totalthreads = vb_number_format($totalthreads);
$totalposts = vb_number_format($totalposts);

// get total members and newest member from template
$numbermembers = vb_number_format($vbulletin->userstats['numbermembers']);
$newusername = $vbulletin->userstats['newusername'];
$newuserid = $vbulletin->userstats['newuserid'];
$activemembers = vb_number_format($vbulletin->userstats['activemembers']);
$show['activemembers'] = ($vbulletin->options['activememberdays'] > 0 AND ($vbulletin->options['activememberoptions'] & 2)) ? true : false;

// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTTA HERE... ###
($hook = vBulletinHook::fetch_hook('forumhome_complete')) ? eval($hook) : false;

eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('FORUMHOME') . '");');

/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 04:57, Sun Feb 26th 2006
|| # CVS: $RCSfile: index.php,v $ - $Revision: 1.172.2.3 $
|| ################################################## ##################
\*================================================ ======================*/
?>

bashy
05-01-2006, 12:18 PM
Hi

I am trying to uninstall this but i get
Database error in vBulletin 3.5.4:

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

MySQL Error : Can't DROP 'browser'; check that column/key exists
Error Number : 1091
Date : Monday, May 1st 2006 @ 07:17:07 AM
Script : http://www.bashys-place.com/forums/admincp/plugin.php
Referrer : http://www.bashys-place.com/forums/admincp/plugin.php?do=pr

Please advise?

Tyegurl
05-01-2006, 12:47 PM
Looks good.. One problem though, vBAdvanced CMPS v2.0.0 needed to be modified as well if you use it and would like it to show properly on your home page. ;)

For those who use vbAdvanced and would like it to work for your home page do the following.

in /modules/onlineusers.php find:

SELECT session.userid, username, usergroupid, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid

and replace it with:

SELECT session.userid, session.browser, username, usergroupid, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid

again in /modules/onlineusers.php find:

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


add after:

'browser' => $vbulletin->session->vars['browser'],

That should do it. :)

* Clicks install.


thanks so much! didn't see this post had been added...hoped to get an update email when this had been fixed! but thanks it worked perfect

derekivey
05-01-2006, 06:54 PM
i edit all that stuff but i just get that database error

here my index.php code it seems right to me

<?php
/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBulletin 3.5.4 - Licence Number ***********
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2000-2006 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| ################################################## ################## ||
\*================================================ ======================*/

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'index');

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array('holiday','adv_gallery');

// get special data templates from the datastore
$specialtemplates = array(
'userstats',
'birthdaycache',
'maxloggedin',
'iconcache',
'eventcache',
'mailqueue',
'gallery_c_cache',
' adv_gallery_opt',
'gallery_ugroups
');

// pre-cache templates used by all actions
$globaltemplates = array(
'FORUMHOME',
'forumhome_event',
'forumhome_forumbit_level1_nopost',
'forumhome_forumbit_level1_post',
'forumhome_forumbit_level2_nopost',
'forumhome_forumbit_level2_post',
'forumhome_lastpostby',
'forumhome_loggedinuser',
'forumhome_moderator',
'forumhome_pmloggedin',
'forumhome_subforumbit_nopost',
'forumhome_subforumbit_post',
'forumhome_subforumseparator_nopost',
'forumhome_subforumseparator_post'
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
require_once(DIR . '/includes/functions_bigthree.php');
require_once(DIR . '/includes/functions_forumlist.php');

// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################

($hook = vBulletinHook::fetch_hook('forumhome_start')) ? eval($hook) : false;

// get permissions to view forumhome
if (!($permissions['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']))
{
print_no_permission();
}

if (empty($foruminfo['forumid']))
{
// show all forums
$forumid = -1;
}
else
{
// check forum permissions
$_permsgetter_ = 'index';
$forumperms = fetch_permissions($foruminfo['forumid']);

if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']))
{
print_no_permission();
}

// check if there is a forum password and if so, ensure the user has it set
verify_forum_password($foruminfo['forumid'], $foruminfo['password']);

// draw nav bar
$navbits = array();
$parentlist = array_reverse(explode(',', substr($foruminfo['parentlist'], 0, -3)));
foreach ($parentlist AS $forumID)
{
$forumTitle =& $vbulletin->forumcache["$forumID"]['title'];
$navbits['forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$forumID"] = $forumTitle;
}

// pop the last element off the end of the $nav array so that we can show it without a link
array_pop($navbits);

$navbits[''] = $foruminfo['title'];
$navbits = construct_navbits($navbits);
}

$today = vbdate('Y-m-d', TIMENOW, false, false);

// ### TODAY'S BIRTHDAYS #################################################
if ($vbulletin->options['showbirthdays'])
{
if (!is_array($vbulletin->birthdaycache) OR ($today != $vbulletin->birthdaycache['day1'] AND $today != $vbulletin->birthdaycache['day2']))
{
// Need to update!
require_once(DIR . '/includes/functions_databuild.php');
$birthdaystore = build_birthdays();
DEVDEBUG('Updated Birthdays');
}
else
{
$birthdaystore = $vbulletin->birthdaycache;
}

switch ($today)
{
case $birthdaystore['day1']:
$birthdays = $birthdaystore['users1'];
break;

case $birthdaystore['day2']:
$birthdays = $birthdaystore['users2'];
break;
}
// memory saving
unset($birthdaystore);

if ($stylevar['dirmark'])
{
$birthdays = str_replace('<!--rlm-->', $stylevar['dirmark'], $birthdays);
}

$show['birthdays'] = iif ($birthdays, true, false);
}
else
{
$show['birthdays'] = false;
}

// ### TODAY'S EVENTS #################################################
if ($vbulletin->options['showevents'])
{
require_once(DIR . '/includes/functions_calendar.php');

$future = gmdate('n-j-Y' , TIMENOW + 86400 * $vbulletin->options['showevents']);

if (!is_array($vbulletin->eventcache) OR $future != $vbulletin->eventcache['date'])
{
// Need to update!
require_once(DIR . '/includes/functions_databuild.php');
$eventstore = build_events();
DEVDEBUG('Updated Events');
}
else
{
$eventstore = $vbulletin->eventcache;
}

unset($eventstore['date']);
$events = array();
$eventcount = 0;
foreach ($eventstore AS $eventid => $eventinfo)
{
$offset = $eventinfo['utc'] ? $vbulletin->userinfo['timezoneoffset'] : ($vbulletin->userinfo['timezoneoffset'] ? $vbulletin->userinfo['tzoffset'] : $vbulletin->userinfo['timezoneoffset']);
$eventstore["$eventid"]['dateline_from_user'] = $eventinfo['dateline_from_user'] = $eventinfo['dateline_from'] + $offset * 3600;
$eventstore["$eventid"]['dateline_to_user'] = $eventinfo['dateline_to_user'] = $eventinfo['dateline_to'] + $offset * 3600;
$gettime = TIMENOW - $vbulletin->options['hourdiff'];
$iterations = 0;
$todaydate = getdate($gettime);

if ($vbulletin->userinfo['calendarpermissions']["$eventinfo[calendarid]"] & $vbulletin->bf_ugp_calendarpermissions['canviewcalendar'] OR ($eventinfo['holidayid'] AND $vbulletin->options['showholidays']))
{
if ($eventinfo['userid'] == $vbulletin->userinfo['userid'] OR $vbulletin->userinfo['calendarpermissions']["$eventinfo[calendarid]"] & $vbulletin->bf_ugp_calendarpermissions['canviewothersevent'] OR ($eventinfo['holidayid'] AND $vbulletin->options['showholidays']))
{
if (!$eventinfo['recurring'] AND !$vbulletin->options['showeventtype'] AND !$eventinfo['singleday'] AND cache_event_info($eventinfo, $todaydate['mon'], $todaydate['mday'], $todaydate['year']))
{
$events["$eventid"][] = $gettime;
}
else
{
while ($iterations < $vbulletin->options['showevents'])
{
$addcache = false;

$todaydate = getdate($gettime);
if ($eventinfo['holidayid'] AND $eventinfo['recurring'] == 6)
{
if ($eventinfo['recuroption'] == "$todaydate[mon]|$todaydate[mday]")
{
$addcache = true;
}
}
else if (cache_event_info($eventinfo, $todaydate['mon'], $todaydate['mday'], $todaydate['year']))
{
$addcache = true;
}



if ($addcache)
{
if (!$vbulletin->options['showeventtype'])
{
$events["$eventid"][] = $gettime;
}
else
{
$events["$gettime"][] = $eventid;
}
$eventcount++;
}

$iterations++;
$gettime += 86400;
}
}
}
}
}

if (!empty($events))
{
if ($vbulletin->options['showeventtype'])
{
ksort($events, SORT_NUMERIC);
}
else
{
function groupbyevent($a, $b)
{
if ($a[0] == $b[0]) { return 0; }
else { return ($a[0] < $b[0]) ? -1 : 1; }
}
uasort($events, 'groupbyevent');
}

foreach($events AS $index => $value)
{
$pastevent = 0;
$pastcount = 0;

$comma = $eventdates = $daysevents = '';
if (!$vbulletin->options['showeventtype'])
{ // Group by Event // $index = $eventid
$eventinfo = $eventstore["$index"];
if (empty($eventinfo['recurring']) AND empty($eventinfo['singleday']))
{ // ranged event -- show it from its real start and real end date (vbgmdate)
$eventdates = construct_phrase($vbphrase['event_x_to_y'], vbdate($vbulletin->options['dateformat'], $eventinfo['dateline_from_user'], false, true, false, true), vbdate($vbulletin->options['dateformat'], $eventinfo['dateline_to_user'], false, true, false, true));
$day = vbdate('Y-n-j', $eventinfo['dateline_from_user'], false, false);
}
else
{
unset($day);
foreach($value AS $key => $dateline)
{
if (($dateline - 86400) == $pastevent AND !$eventinfo['holidayid'])
{
$pastevent = $dateline;
$pastcount++;
continue;
}
else
{
if ($pastcount)
{
$eventdates = construct_phrase($vbphrase['event_x_to_y'], $eventdates, vbdate($vbulletin->options['dateformat'], $pastevent, false, true, false));
}
$pastcount = 0;
$pastevent = $dateline;
}
if (!$day)
{
$day = vbdate('Y-n-j', $dateline, false, false, false);
}
$eventdates .= $comma . vbdate($vbulletin->options['dateformat'], $dateline, false, true, false);
$comma = ', ';
}
if ($pastcount)
{
$eventdates = construct_phrase($vbphrase['event_x_to_y'], $eventdates, vbdate($vbulletin->options['dateformat'], $pastevent, false, true, false));
}
}

if ($eventinfo['holidayid'])
{
$callink = '<a href="calendar.php?' . $vbulletin->session->vars['sessionurl'] . "do=getinfo&amp;day=$day\">" . $vbphrase['holiday_title_' . $eventinfo['varname']] . "</a>";
}
else
{
$callink = '<a href="calendar.php?' . $vbulletin->session->vars['sessionurl'] . "do=getinfo&amp;day=$day&amp;e=$eventinfo[eventid]&amp;c=$eventinfo[calendarid]\">$eventinfo[title]</a>";
}
}
else
{ // Group by Date
$eventdate = vbdate($vbulletin->options['dateformat'], $index, false, true, false);

$day = vbdate('Y-n-j', $index, false, true, false);
foreach($value AS $key => $eventid)
{
$eventinfo = $eventstore["$eventid"];
if ($eventinfo['holidayid'])
{
$daysevents .= $comma . '<a href="calendar.php?' . $vbulletin->session->vars['sessionurl'] . "do=getinfo&amp;day=$day\">" . $vbphrase['holiday_title_' . $eventinfo['varname']] . "</a>";
}
else
{
$daysevents .= $comma . '<a href="calendar.php?' . $vbulletin->session->vars['sessionurl'] . "do=getinfo&amp;day=$day&amp;e=$eventinfo[eventid]&amp;c=$eventinfo[calendarid]\">$eventinfo[title]</a>";
}
$comma = ', ';
}
}

($hook = vBulletinHook::fetch_hook('forumhome_event')) ? eval($hook) : false;
eval('$upcomingevents .= "' . fetch_template('forumhome_event') . '";');
}
// memory saving
unset($events, $eventstore);
}
$show['upcomingevents'] = iif ($upcomingevents, true, false);
$show['todaysevents'] = iif ($vbulletin->options['showevents'] == 1, true, false);
}
else
{
$show['upcomingevents'] = false;
}

// ### LOGGED IN USERS #################################################
$activeusers = '';
if ($vbulletin->options['displayloggedin'] AND !$show['search_engine'])
{
$datecut = TIMENOW - $vbulletin->options['cookietimeout'];
$numbervisible = 0;
$numberregistered = 0;
$numberguest = 0;

$forumusers = $db->query_read("
SELECT
user.username, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid,
session.userid,session.browser, session.inforum, session.lastactivity,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM " . TABLE_PREFIX . "session AS session
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = session.userid)
WHERE session.lastactivity > $datecut
" . iif($vbulletin->options['displayloggedin'] == 1, "ORDER BY username ASC") . "
");

if ($vbulletin->userinfo['userid'])
{
// fakes the user being online for an initial page view of index.php
$vbulletin->userinfo['joingroupid'] = iif($vbulletin->userinfo['displaygroupid'], $vbulletin->userinfo['displaygroupid'], $vbulletin->userinfo['usergroupid']);
$userinfos = array
(
$vbulletin->userinfo['userid'] => array
(
'userid' => $vbulletin->userinfo['userid'],
'username' => $vbulletin->userinfo['username'],'browser' => $vbulletin->session->vars['browser'],
'invisible' => $vbulletin->userinfo['invisible'],
'inforum' => 0,
'lastactivity' => TIMENOW,
'usergroupid' => $vbulletin->userinfo['usergroupid'],
'displaygroupid' => $vbulletin->userinfo['displaygroupid'],
)
);
}
else
{
$userinfos = array();
}
$inforum = array();

while ($loggedin = $db->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
}

if (!$vbulletin->userinfo['userid'] AND $numberguest == 0)
{
$numberguest++;
}

foreach ($userinfos AS $userid => $loggedin)
{
$numberregistered++;
if ($userid != $vbulletin->userinfo['userid'])
{
$inforum["$loggedin[inforum]"]++;
}
$loggedin['musername'] = fetch_musername($loggedin);

($hook = vBulletinHook::fetch_hook('forumhome_loggedinuser' )) ? eval($hook) : false;

if (fetch_online_status($loggedin))
{
$numbervisible++;
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
}
}

// memory saving
unset($userinfos, $loggedin);

$activeusers = substr($activeusers, 2); // get rid of initial comma

$db->free_result($forumusers);

$totalonline = $numberregistered + $numberguest;
$numberinvisible = $numberregistered - $numbervisible;

// ### MAX LOGGEDIN USERS ################################
if (intval($vbulletin->maxloggedin['maxonline']) <= $totalonline)
{
$vbulletin->maxloggedin['maxonline'] = $totalonline;
$vbulletin->maxloggedin['maxonlinedate'] = TIMENOW;
build_datastore('maxloggedin', serialize($vbulletin->maxloggedin));
}

$recordusers = vb_number_format($vbulletin->maxloggedin['maxonline']);;
$recorddate = vbdate($vbulletin->options['dateformat'], $vbulletin->maxloggedin['maxonlinedate'], true);
$recordtime = vbdate($vbulletin->options['timeformat'], $vbulletin->maxloggedin['maxonlinedate']);

$show['loggedinusers'] = true;
}
else
{
$show['loggedinusers'] = false;
}

// ### GET FORUMS & MODERATOR iCACHES ########################
cache_ordered_forums(1);
if ($vbulletin->options['showmoderatorcolumn'])
{
cache_moderators();
}
else
{
cache_moderators($vbulletin->userinfo['userid']);
}

// define max depth for forums display based on $vbulletin->options[forumhomedepth]
define('MAXFORUMDEPTH', $vbulletin->options['forumhomedepth']);

$forumbits = construct_forum_bit($forumid);

// ### BOARD STATISTICS #################################################

// get total threads & posts from the forumcache
$totalthreads = 0;
$totalposts = 0;
if (is_array($vbulletin->forumcache))
{
foreach ($vbulletin->forumcache AS $forum)
{
$totalthreads += $forum['threadcount'];
$totalposts += $forum['replycount'];
}
}
$totalthreads = vb_number_format($totalthreads);
$totalposts = vb_number_format($totalposts);

// get total members and newest member from template
$numbermembers = vb_number_format($vbulletin->userstats['numbermembers']);
$newusername = $vbulletin->userstats['newusername'];
$newuserid = $vbulletin->userstats['newuserid'];
$activemembers = vb_number_format($vbulletin->userstats['activemembers']);
$show['activemembers'] = ($vbulletin->options['activememberdays'] > 0 AND ($vbulletin->options['activememberoptions'] & 2)) ? true : false;

// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTTA HERE... ###
($hook = vBulletinHook::fetch_hook('forumhome_complete')) ? eval($hook) : false;

eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('FORUMHOME') . '");');

/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 04:57, Sun Feb 26th 2006
|| # CVS: $RCSfile: index.php,v $ - $Revision: 1.172.2.3 $
|| ################################################## ##################
\*================================================ ======================*/
?>

You didn't do the last file edit for that file.

derekivey
05-01-2006, 06:56 PM
Hi

I am trying to uninstall this but i get
Database error in vBulletin 3.5.4:

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

MySQL Error : Can't DROP 'browser'; check that column/key exists
Error Number : 1091
Date : Monday, May 1st 2006 @ 07:17:07 AM
Script : http://www.bashys-place.com/forums/admincp/plugin.php
Referrer : http://www.bashys-place.com/forums/admincp/plugin.php?do=pr

Please advise?

Just remove that code from the uninstall code in the product manager. It doesn't look like you have that field for some reason.

Derek

bashy
05-01-2006, 07:21 PM
Cheers Derek, that sorted it :)

derekivey
05-02-2006, 02:03 AM
No Problem :)

Danecookie
05-28-2006, 08:57 AM
I am having very dreadfull problems with this MOD.

The mod has some problem with tables something, when installed, it gives session table, when i removed this mod, some of it tables were not gettin removed from database, i installed again, and removed again, but still the mod is not gettin outa database completely..

my members are hving problems with it.. please inform me with the compelte code of this mod, so that i can install and then remove it compeltely form my database..

derekivey
05-28-2006, 10:47 AM
Hello,

Sorry to hear that you are having problems with this mod. To remove it simply remove all of the files that this mod added, undo the file edits and template edits, and then uninstall the product from vB's Product Manager. It should remove the stuff it added to the database. The only thing that was added was a field in the session table called browser.

Hope this helps.

Derek

Tyegurl
06-23-2006, 12:49 AM
small request....can you either update this for 3.6.0 or can you tell me how to uninstall it lmfao....i can't seem to...i did everything you said above...but blah it didn't work....

derekivey
06-23-2006, 04:07 AM
Sure, I will update it for 3.6.0. The update should be out tomorrow.

Thanks,
Derek

Tyegurl
06-23-2006, 04:20 AM
wow thanks sooooooooooooo much!!!

derekivey
06-23-2006, 02:43 PM
Actually, I just tried it, and there is no need for me to release a 3.6 version, because it works fine on 3.6. Make sure that you redid the file edits when you upgraded to vB 3.6. If it still isn't working, tell me whats happening so I can try and figure out whats wrong.

Thanks,

Derek

Tyegurl
06-23-2006, 05:01 PM
Actually, I just tried it, and there is no need for me to release a 3.6 version, because it works fine on 3.6. Make sure that you redid the file edits when you upgraded to vB 3.6. If it still isn't working, tell me whats happening so I can try and figure out whats wrong.

Thanks,

Derek


will do....i think i reverted my templates but i think i redid them....probably not though :confused:

OndaReal
06-25-2006, 05:30 PM
I attempted to install this but i kept getting a database error so i uninstalled everything and now my Avatars have dissapeared. Instead of the avatars being there, theres a link instead for example "Username avatar" If i click on the avatar it takes me to the members profile and again where the avatar should be in the members profile it says "username avatar" :(

derekivey
06-25-2006, 06:08 PM
What database error were you getting? Also this shouldn't mess with the avatars at all, because it doesn't modify anything related to the avatars.

Derek

Tyegurl
06-25-2006, 06:18 PM
Invalid SQL:

SELECT
user.username, (user.options & 512) AS invisible, user.usergroupid,
session.userid, session.browser, session.inforum, session.lastactivity,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM session AS session
LEFT JOIN user AS user ON(user.userid = session.userid)
WHERE session.lastactivity > 1151261698
ORDER BY username ASC;

MySQL Error : Unknown column 'session.browser' in 'field list'
Error Number : 1054
Date : Sunday, June 25th 2006 @ 12:09:59 PM
Script : http://www.teamrespawn.com/vBulletin/forum.php
Referrer : http://www.teamrespawn.com/vBulletin/showthread.php?p=323#post323


and no i did the edits still a no go :(

derekivey
06-25-2006, 07:42 PM
Ok, Open PHPMyAdmin, and execute the following SQL query...
ALTER TABLE `session` ADD `browser` VARCHAR( 50 ) DEFAULT '' NOT NULL

That should fix it.

Derek

Shazz
06-25-2006, 07:45 PM
Isen't this the same as pauls?
________
Mercedes-Benz W463 specifications (http://www.mercedes-wiki.com/wiki/Mercedes-Benz_W463)

derekivey
06-25-2006, 08:51 PM
Which one? Link please...

Tyegurl
06-26-2006, 12:55 AM
okay now i ran the query if that was for me and if it wasn't i ran it anyway lol. it did something lol

now i can install it without a problem? (hopefully)

derekivey
06-26-2006, 03:46 AM
Should work now. That error means the column was missing.

Keyser S?ze
07-03-2006, 09:09 PM
think maybe an added feature of making the browser icons a link to the download page of that browser?

derekivey
07-04-2006, 12:38 AM
Sounds like a good idea. I will think about it and add it if I it doesn't involve a lot of work.

Keyser S?ze
07-27-2006, 05:00 AM
ok my server got hacked, so i had to have the OS reinstalled and all that, i backed up the site files and the database and alll, but since then this hack has not worked

i tried updating it, but that doesnt fix it, i tried uninstalling it, and i get this error

Database error in vBulletin 3.5.4:

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

MySQL Error : Can't DROP 'browser'; check that column/key exists
Error Number : 1091
Date : Thursday, July 27th 2006 @ 12:42:53 AM
Script : http:///forums/admincp/plugin.php
Referrer : http:///forums/admincp/plugin.php?do=productdelete&productid=browser_on_wol&s=
IP Address :
Username : Ice
Classname : vb_database

i went in the mysql and its right its just not there, however vb shows that it is, as u can see in the attachments, now i dont know what to do can anyone offer me some assistance? maybe some manual mysql commands

derekivey
07-27-2006, 02:37 PM
This query should fix it...

ALTER TABLE `session` ADD `browser` VARCHAR( 50 ) DEFAULT '' NOT NULL

Be sure to add your table prefix to it if you have one.

Derek

Keyser S?ze
07-27-2006, 07:19 PM
sadly it still does not work, ill tell u another problem i am having, maybe they are related i dont know, anyone that is not currently logged in, gets a mysql error when they go to the forums, but if ur already logged in, then ur fine everything works

well except this hack

bashy
07-27-2006, 08:04 PM
Hi

I too had this error, but only with 1 member, it was down to his browser, but i ended up uninstalling in case other potential members had the issue!!

Keyser S?ze
07-27-2006, 08:28 PM
not the same thing man, thats just cuz sometimes it dont read it and gets an unknown error,

bashy
07-27-2006, 08:34 PM
not quite...this member in paticular could not login at all unless 1: i disabled or 2: he used a different browser, It also gave me sql errors same as you...

I didnt have that many members at the time hence it was only him and no one else!!

derekivey
07-28-2006, 01:38 PM
sadly it still does not work, ill tell u another problem i am having, maybe they are related i dont know, anyone that is not currently logged in, gets a mysql error when they go to the forums, but if ur already logged in, then ur fine everything works

well except this hack
Mind PMing me admin details so I can take a look?

Thanks,
Derek

Keyser S?ze
07-30-2006, 11:44 PM
i feel like a total dumbass, just been doing too much getting my server/sites back up and running, i forgot to make the .php edits!!! gah

ok well thats it for me everything is fixed and working well, thanks

derekivey
07-31-2006, 06:21 PM
Lol. Glad to see you got it working now :).

XtremeCrash
08-04-2006, 01:23 AM
Hi,

Great product but I have 1 small problem.I did everything the way it was explained and I get this:

There seems to have been a problem with the Forumz X database.
Please try again by clicking the Refresh button in your web browser.

An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.

We apologise for any inconvenience.

FROM session AS session
LEFT JOIN user AS user ON(user.userid = session.userid')
WHERE session.lastactivity > 1154656639
ORDER BY username ASC;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '')
WHERE session.lastactivity > 1154656639
ORDER BY username ASC' at line 6
Error Number : 1064
Date : Thursday, August 3rd 2006 @ 09:12:20 PM
Script : http://www.**********/forums/index.php
Referrer : http://www.********/index.php
IP Address : ********
Username : ********
Classname : vb_database



And when I upload the product its not there.Can someone Help:hurt:

derekivey
08-04-2006, 04:21 AM
Looks like something to do with the sessions. Please make sure you did the file edits correctly, and try doing them again if you still have problems.

Derek

XtremeCrash
08-04-2006, 08:21 PM
Edit: Nevermind works now:)

derekivey
08-05-2006, 03:24 AM
Edit: Nevermind works now:)
Ok, great! :).

principino1984
08-25-2006, 12:43 AM
works fine on 3.6.0 GOLD ;)

Marco

Keyser S?ze
09-17-2006, 12:02 AM
does not seem to work in 3.6.1, for me it shows im using firefox but everyone else it shows "?" been like that for 30 hours now, i thought maybe it might need time to refresh but it has had that

derekivey
09-17-2006, 03:01 AM
does not seem to work in 3.6.1, for me it shows im using firefox but everyone else it shows "?" been like that for 30 hours now, i thought maybe it might need time to refresh but it has had that
They probably just went to your forum and didn't go to anymore pages. It does not get the browser when the session is first initiated due to the way vB codes the isbrowser() function. Also make sure you redid the file edits after you upgraded to 3.6.1.

Derek

Keyser S?ze
09-17-2006, 09:57 AM
i redid all the file edits, and no ones browser is showing up

derekivey
09-23-2006, 01:20 AM
Hmm, I'll install this on my 3.6 board later and see if it works on 3.6, maybe something was changed in 3.6 which stopped it from working.

Bison
10-09-2006, 04:07 PM
Users are getting a database error when they log into the site using the SeaMonkey web browser.

Invalid SQL:
;

MySQL Error : Query was empty
Error Number : 1065
Date : Sunday, October 8th 2006 @ 07:41:08 PM

http://www.mozilla.org/projects/seamonkey/

There's no login problems using any other browser...

derekivey
10-09-2006, 05:18 PM
I think someone had this problem before and it was caused by a firewall. Have you tried disabling any firewalls and seeing if the error goes away?

Bison
10-09-2006, 06:03 PM
I've figured it out ... I modified your XML and text code in the instructions adding the seamonkey browser. If you like, I generated a seamonkey gif file from an icon if you decide to add other browsers to your hack.

derekivey
10-11-2006, 09:37 AM
Ok, I will add it to the next version.

Thanks,
Derek

Bison
12-05-2006, 10:31 PM
Ok, I will add it to the next version.

Thanks,
Derek

So when are you going to update this to accomodate more browsers?

deeoo
12-11-2006, 10:29 AM
Works great on 3.6.4.
I just can't seem to get it to work on the search.php page. Any ideas?

derekivey
12-11-2006, 06:37 PM
Works great on 3.6.4.
I just can't seem to get it to work on the search.php page. Any ideas?
What do you mean?

Bison
12-11-2006, 11:20 PM
Can't seem to find a few lines in the index.php in 3.64:

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

and in

forumhome_loggedinuser

FIND:

<if condition="$loggedin[userid]">

derekivey
12-12-2006, 01:52 AM
I'll look into it. I might have to release a 3.6 version.

Derek

derekivey
12-12-2006, 02:13 AM
3.6.4 version released here (https://vborg.vbsupport.ru/showthread.php?t=133784).

deeoo
12-12-2006, 05:21 AM
What do you mean?

I have it working now. I had to add an include in the search.php and add the loggedin-part of the index.php in the search.php. Works like a charm now.

MiahBeSmokin420
01-02-2008, 01:20 AM
ya i would realy like to get this working on the whos online page (online.php)

any help on that would be awsome

thanks

TCE Killa
01-15-2008, 10:57 AM
Will this work for 3.6.X?

TCE Killa
01-18-2008, 04:10 PM
.....?

S@NL - BlackBik
09-10-2008, 05:35 PM
I've installed the code to detect Google Chrome (https://vborg.vbsupport.ru/showthread.php?t=189991) and i've modified the plugin code from this mod. I also uploaded a gif to the misc dir and modified the loggedinusers template.
But I can't get to work.
Google Chrome will not be detected and does not show on WOL.

Has anyone got this mod working for Google Chrome?