vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Browser on Who's Online (https://vborg.vbsupport.ru/showthread.php?t=103996)

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:

Code:

$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

Quote:

Originally Posted by teedizz
my forumhome_loggedinuser looks like this:

Code:

$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
Code:

$stylevar[dirmark]
When I wrote this hack, I didn't notice that my template was customized.

derekivey 02-09-2006 06:49 PM

Quote:

Originally Posted by Luggruff
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

Quote:

Originally Posted by bashy
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:
Code:

    } 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

Quote:

Originally Posted by Loco.M
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

Quote:

Originally Posted by derekivey
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.


Quote:

Originally Posted by derekivey
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
[high]* Brandon Sheley clicks install[/high]

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...wser_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

Quote:

Originally Posted by Joe Gronlund
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...wser_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

Quote:

Originally Posted by eNforce
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

Quote:

CSS Stylesheet
I deleted the surround coding.

bashy 02-25-2006 08:44 PM

do you mean this?

Code:

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

Code:

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.
Code:

<!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">



All times are GMT. The time now is 12:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01441 seconds
  • Memory Usage 1,872KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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