View Full Version : Forum Home Enhancements - Show Spiders on ForumHome
amykhar
06-19-2006, 10:00 PM
Show the spiders browsing your board in the What's Going On box of your Forum Home Page.
This is, unfortunately, still a code mod. The code to find is different in 3.6 and I have updated accordingly.
I have not included directions to use this with any portals.
hotwheels
06-20-2006, 05:05 PM
Thanks amykhar............i love this mod.
amykhar
06-20-2006, 05:23 PM
Glad you like it :)
Amy
The Free Bird
06-20-2006, 05:29 PM
very nice
think you
The Free Bird
os6orah
06-20-2006, 09:20 PM
thanks
projectego
06-20-2006, 10:03 PM
Cheers. :)
Brandon Sheley
06-23-2006, 12:58 AM
thx for making this compatible with the new vb
cheers :)
Coast to Coast
06-23-2006, 01:56 AM
Installing this for the Coast community - I like to see how many or each bot are on at any given time.
A_N_K_A_R_A
06-24-2006, 02:33 PM
thanks nice
Snake
06-24-2006, 02:53 PM
Thanks for the 3.6 version of this hack! :)
Bubble #5
06-25-2006, 12:41 AM
Show the spiders browsing your board in the What's Going On box of your Forum Home Page
Isn't this part of 3.6.x?
amykhar
06-25-2006, 02:07 AM
That's on the who's online page Bubble.
Bubble #5
06-25-2006, 04:48 PM
OK thank you for the clearification.
Red Matrix
06-30-2006, 08:41 AM
Installed, now lets see if it works. Just waiting for spiders...
Too bad it is not a plugin (product). Hate to do code changes on 3.6
Bubble #5
07-05-2006, 07:35 PM
Too bad it is not a plugin (product). Hate to do code changes on 3.6
Actually it's not that bad, but you might want to wait until 3.6 goes gold because otherwise all your edits will get overwritten. I agree a plugin is always best, especially when switching from one version to another. Maybe one day someone will make a hack that remembers all your plugins and allows you to click one place to reimport them all at the same time ;)
amykhar
07-06-2006, 01:12 AM
At some point, I'll study how to use the plugins to dynamically write to templates. Then, I can turn this into a product that will add one extra query whenever your forumhome loads. This version is optimized and doesn't add any queries.
mcyates
07-12-2006, 06:25 PM
thanks great hack.
rob30UK
07-14-2006, 03:27 PM
it's a damn shame this isnt a product as I would clicked install right away.
rob30UK
07-14-2006, 03:28 PM
Maybe one day someone will make a hack that remembers all your plugins and allows you to click one place to reimport them all at the same time ;)
... now that is a good idea!
jacki
07-15-2006, 12:09 PM
Parse error: parse error, unexpected T_DEC, expecting T_VARIABLE or '$' in xxxxxxxxxxxxxxxx\forum\httpdocs\index.php on line 381
????
rob30UK
07-19-2006, 01:25 PM
Amy... I'm almost certain this is possible without code mods.... and I know also that if you cant do it, then very few can....
Whats going on? why the *lazy* code? (no offence.... just trying to kick yer butt coz I want this!!)
Mastar
07-19-2006, 03:33 PM
Too bad it is not a plugin (product). Hate to do code changes on 3.6
Me 2, I've installed this hack before but I can't do the files edits anymore... lol:)
Jim O
07-25-2006, 01:55 AM
Installed with some minor template modifcations to give partial functionality/compatibility to vBadvanced.
Nwras
07-25-2006, 10:37 AM
Hi ...
But Thise Hacks Make The Forum Very slow
thank you ..
Best Regarde ..
Nwras
amykhar
07-25-2006, 11:19 AM
It's never affected the speed of my board and I've used some variation of it for several versions of vbulletin.
Mudvayne
07-29-2006, 08:13 PM
Workin fine on RC3.. Thnx amykhar :)..
Thanks amy, installed. The only mod i've installed that makes code edits (I usually stay away from those..) ;)
@rob30UK - I've taken a look at the code myself, and honestly - I see no way to do it.
But if anyone can do it, feel free to prove me wrong :D
dn lodge
08-02-2006, 04:21 PM
-waiting for the plugin version
rogersnm
08-04-2006, 08:18 AM
1 thing for 3.6 gold instead of doing: Find:
----------------------
$forumusers = $db->query_read_slave("
SELECT
user.username, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid,
session.userid, 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 OR $vbulletin->options['displayloggedin'] == 3, "ORDER BY username ASC") . "
");
Replace With:
----------------------
$forumusers = $db->query_read_slave("
SELECT
user.username, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity, session.useragent,
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 OR $vbulletin->options['displayloggedin'] == 3, "ORDER BY username ASC") . "
");
you should do
Find:
----------------------
$forumusers = $db->query_read_slave("
SELECT
user.username, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
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 OR $vbulletin->options['displayloggedin'] == 3, "ORDER BY username ASC") . "
");
Replace With:
----------------------
$forumusers = $db->query_read_slave("
SELECT
user.username, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity, session.useragent,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
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 OR $vbulletin->options['displayloggedin'] == 3, "ORDER BY username ASC") . "
");
The difference is you need to add ", infractiongroupid" to the end of the select.
rogersnm
08-04-2006, 08:20 AM
when all of you say whats with the lazy code it's actually you being lazy because you can't be bothered to do something manually for once.
ssslippy
08-10-2006, 03:16 AM
How do I edit the phrase, vbulletin does not let u do in the control panel.
~Edit, went in and manually chaged the MySQL statement
RaceJunkie
08-10-2006, 11:41 AM
when all of you say whats with the lazy code it's actually you being lazy because you can't be bothered to do something manually for once.
Exactly right..I have always liked the code edits:cool:
Keep up the great work amykhar
Phaedrus
08-10-2006, 12:50 PM
Does this show the bots to the users too?
amykhar
08-10-2006, 01:41 PM
Yes, it does.
Phaedrus
08-10-2006, 02:30 PM
Mine is counting all wrong on the front page... It shows 1 Member too many Guests and no spiders when there is actually a totally different number when you look in Who's Online... Only the Who's online is accurate.
Phaedrus
08-10-2006, 03:41 PM
Somehow I overwrote something wrong in the index.php. I have uploaded the original version, and uninstalled the rest of the Mod until I have more time.
Phaedrus
08-10-2006, 05:15 PM
Now I can click Install... Working great. I even caught one spider... :)
Now I can click Install... Working great. I even caught one spider... :)
I just caught a fly.... (cause waiting for the plugin version) :D
PS I don't mind to edit templates, but refuse to edit files, because it makes upgrades painful.
amykhar
08-10-2006, 07:24 PM
Igor, you could wait forever. Just sayin. I don't personally need a plugin version and I work two jobs. I generally code only what I personally need and use.
Kirk Y
08-10-2006, 09:37 PM
Didn't Kirby release a Plugin version of this for 3.5 in your 3.5 Spiders on Forumhome thread?
Algren_San
08-14-2006, 10:30 PM
Didn't Kirby release a Plugin version of this for 3.5 in your 3.5 Spiders on Forumhome thread?
he did but it does not work on 3.6.x
Kirk Y
08-14-2006, 11:17 PM
I realize that, I'm saying that it could most likely be adapted...
amykhar
08-15-2006, 01:33 AM
If I recall correctly, it was only a plugin for part of the mod and not the full functionality.
Kirk Y
08-15-2006, 01:39 AM
It still required a file edit, if that's what you mean -- but it was just an addition to the list of special templates pulled from the datastore.
JokeAss
08-15-2006, 06:42 PM
Well, I am just a bit n00b... What's the diff between the vBulletin show spiders and this one? I believe both put into the users online thing?
Funboy
08-15-2006, 09:29 PM
Hi,
nice hack which I have working fine within VB I do however have an error within my portal vBadvanced CMPS any idea what I need to change to correct the error below.
14 members and 5 guests and [ARG:3 UNDEFINED] spiders
I know you posted I have not included directions to use this with any portals. Do I take it we can't patch it across or is it just your not wishing to support portals which I can understand
thanks
rogersnm
08-16-2006, 06:21 AM
you need to add a variable to the phrase. Like you did for the forumhome template.
rogersnm
08-16-2006, 06:26 AM
Mine is counting all wrong on the front page... It shows 1 Member too many Guests and no spiders when there is actually a totally different number when you look in Who's Online... Only the Who's online is accurate.
Not quit the same with me: Forum Home: 24 members and 0 guests and 0 spiders online.php: 24 members and 234 guests and 0 spiders
Gsmmind
08-16-2006, 02:28 PM
pls u can post screen shots u r shot is not clear.
rogersnm
08-16-2006, 02:36 PM
/me uninstalls
It doesn't work on 3.6 gold.
Mudvayne
08-16-2006, 03:50 PM
It does work fine for me.. & I'm using 3.6 Gold! U shud've update ur spider list from here! (http://www.vbulletin.com/forum/showpost.php?p=565415&postcount=12).. Newayz here is my screenshot!!
Forumhome:
http://img104.imageshack.us/img104/4599/forumhomeui7.gif
Whois Online:
http://img122.imageshack.us/img122/4203/onlinepl7.gif
@ Funboy:
U have to edit ur adv_portal_onlineusers template..
Search for:
<td class="thead"><span class="smallfont"><phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase></span></td>
Replace with:
<td class="thead"><span class="smallfont"><phrase 1="$numberregistered" 2="$numberguest" 3="$numberspiders">$vbphrase[x_members_and_y_guests]</phrase></span></td>
Note that, that 'll just show u X members, X guests and spiders..
@ JokeAss:
vB doesn't show spiders on forum home.. vB doesn't count spiders.. It just counts members & guests both in forumhome & whois online..
Funboy
08-17-2006, 12:37 PM
Icy and rogersnm,
Many thanks ;)
I do however still have a problem as shown below. It now shows the word spider correctly but not the number next the spider?
Portal
2 members and 1 guests and spiders
Forum
Currently Active Users: 3 (2 members and 0 guests and 1 spiders)
Most users ever online was 119, 18-03-2006 at 06:57 PM.
Funboy, bumpernick, Yahoo! Slurp
rogersnm
08-17-2006, 04:01 PM
There is one reason why that won't work. You did all the template edits in index.php to add the info needed to define the variable $numberspiders. You havn't changed the vBA file to define that that variable.
Brandon Sheley
08-17-2006, 05:07 PM
* rogersnm uninstalls
It doesn't work on 3.6 gold.
yes it does.. it works just fine ;)
ArabSQuad
08-20-2006, 12:23 AM
CheerS !
* ArabSQuad Installs :)
Muellmann
08-20-2006, 10:49 AM
That's great and I like this. So I can better imagine how Bots when visit my Board :) Installtime about 15 mins. and I learned something ;) Thank you!
Snake
08-25-2006, 12:33 PM
Thanks for the 3.6 port! :)
HellBoy
08-25-2006, 01:34 PM
Could anyone tell me where to find adv_portal_onlineusers? I've searched around in both the templates and phrases, yet I can't seem to find it.
Snake
08-25-2006, 06:21 PM
Do a search in the templates. Ain't that hard. ;)
HellBoy
08-25-2006, 08:15 PM
Do a search in the templates. Ain't that hard. ;)I've already tried this, but either my search function or my brain is busted. When I do a Template Search, I get returned to the Style Manager without showing any results.
[EDIT: Apparently I don't have any adv_portal_onlineusers, as I got results showing up when I searched for "postbit".]
hotwheels
08-26-2006, 04:52 AM
Thanks amy, this is such an awesome mod...
globalmoney
08-30-2006, 01:36 PM
On 3.6.0 Released, works orderly?
amykhar
08-30-2006, 01:44 PM
Yes, it does.
globalmoney
08-30-2006, 01:44 PM
Ok, thank you. :)
rogersnm
08-30-2006, 01:49 PM
Yes, it does.
It doesn't for me. It messes up the count of guests and doesn't show any spiders.
amykhar
08-30-2006, 02:33 PM
When the count is messed up, check the placement of your initialization code and your counting codes. If you put things in the wrong spot of a loop, the numbers can get out of whack.
Also make sure you haven't installed any other mods that may use the same variables.
I just reinstalled it on my forum with 3.6 released, and it's still working as written.
rogersnm
08-30-2006, 02:45 PM
Ok, i'll try it again soon and get back to you. Have you updated the query to make it gold compatible?
amykhar
08-30-2006, 03:41 PM
No, I didn't update the directions. All that really needs to be done in the query change is to add the session.useragent in there.
rogersnm
08-30-2006, 03:48 PM
and the infractiongroupid
amykhar
08-30-2006, 03:50 PM
No, what I mean is to change the existing query on whatever version you are using the mod on, simply get the session.useragent in there. ;)
revolver
08-31-2006, 04:16 AM
Amy.
Just to let you know it's working great on my board too (I just installed it). I concur with the other member on the board who said it takes about 15 minutes.
Also for those wanting to know where the x_members_and_y_guests phrase is in your phrase manager. It's page 32/33 (unless you have more than that of course) of the GLOBAL phrasetype. It's the only part of the instructions that wasn't intuitive.
Well done Amy great hack.
amykhar
08-31-2006, 11:36 AM
searching for the phrase title will bring it right up. :) You can search the phrase by title or the words in the phrase. It makes it easy to adjust any phrase
vwdforum
09-01-2006, 04:01 PM
Installed on mine! Thanks very much its great
vwdforum
09-01-2006, 05:02 PM
Just checked and this appears, in current users
[ARG:3 UNDEFINED] spiders
Any idea what it means and how to fix it?
Mal
amykhar
09-01-2006, 05:03 PM
Make the template edits.
vwdforum
09-01-2006, 05:05 PM
It was working fine, showing google and msn bot
Do you think its when a spider it does not recognises searches?
vwdforum
09-01-2006, 05:20 PM
Having check again its only a problem on my homepage, not the forum page
I've done a search and found this on my home page vBadvanced CMPS in adv_portal_onlineusers
I've added 3="$numberspiders" below where I think it should go however it still shows the same. Any advice please
<tr>
<td class="thead"><span class="smallfont"><phrase 1="$numberregistered" 2="$numberguest" 3="$numberspiders">$vbphrase[x_members_and_y_guests]</phrase></span></td>
</tr>
<tr>
<td class="$altbgclass"><span class="smallfont">$activeusers</span></td>
</tr>
<tr>
<td class="$bgclass"><span class="smallfont"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></span></td>
</tr>
TLove
09-07-2006, 02:02 PM
Try this
U have to edit ur adv_portal_onlineusers template..
Search for:
<td class="thead"><span class="smallfont"><phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase></span></td>
Replace with:
<td class="thead"><span class="smallfont"><phrase 1="$numberregistered" 2="$numberguest" 3="$numberspiders">$vbphrase[x_members_and_y_guests]</phrase></span></td>
Note that, that 'll just show u X members, X guests and spiders..
vwdforum
09-07-2006, 02:10 PM
Try this
Excellent!
Works just fine, shame not having the numbers on the home page but I can live with that!!
Mal
mac27
09-07-2006, 08:58 PM
So can you color the spiders or make them a group. I was thinking of adding them to my legend that shows who is online.
amykhar
09-07-2006, 09:01 PM
You can, but you have to modify the code. If you know how to code, yell and I'll point you to the section you would need to work in.
by the way..spiders visited today..can it be listed in "Users visited Today" block and "show spider browsing thread" too?
mac27
09-11-2006, 04:50 AM
Hey Amy I don't want to yell to loud. LOL Thanks and yes could you point me in that direction. :)
Ronak
09-14-2006, 04:15 PM
gr8 mod...Installed ;)
amykhar
09-14-2006, 07:28 PM
by the way..spiders visited today..can it be listed in "Users visited Today" block and "show spider browsing thread" too?
Yes, it can be done, and I had it done on my site at one point. I'll look into putting it back on my site and then will add it into the install directions here.
amykhar
09-14-2006, 07:34 PM
If you want colored spider names (and I'm NOT supporting this part) here's what you do:
Find:
while ($spidername = current($spiderlist))
{
if ($spidername > 1) {
$loggedin['musername'] = trim(key($spiderlist)) . "(" . $spidername.")";
}
else
{
$loggedin['musername'] = trim(key($spiderlist));
}
$loggedin['userid'] = 0;
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
next($spiderlist);
}
Replace it with (for example):
while ($spidername = current($spiderlist))
{
switch($spidername)
{
case "Google": $spidername = "<span style='color:blue;'>$spidername</span>";
break;
case "Yahoo": $spidername = "<span style='color:red;'>$spidername</span>";
break;
}
if ($spidername > 1) {
$loggedin['musername'] = trim(key($spiderlist)) . "(" . $spidername.")";
}
else
{
$loggedin['musername'] = trim(key($spiderlist));
}
$loggedin['userid'] = 0;
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
next($spiderlist);
}
Of course, you will have to look at the exact spider names and decide what colors you want the spider to be. The code I posted is just a general idea of how to go about it.
rob30UK
09-15-2006, 02:32 PM
I would be most grateful for this hack, but feel there must be a way without edits.
Has anyone any idea how this can be ported to require no code changes.
mcyates
09-16-2006, 08:38 AM
this does not work with vbulletin version 3.6.1.
Snake
09-16-2006, 11:28 AM
Of course it does. I'm running it just fine on my 3.6.1 forums. :)
globalmoney
09-16-2006, 03:18 PM
on 3.6.1, works orderly. :)
rezapci
09-17-2006, 06:42 PM
error Parse error: syntax error, unexpected T_ELSE in /home/alshia/public_html/vb/index.php on line 524
what should I do?
Phaedrus
09-18-2006, 05:45 AM
You only have to do about half of the modifications if you upgrade...
globalmoney
09-18-2006, 08:43 AM
error Parse error: syntax error, unexpected T_ELSE in /home/alshia/public_html/vb/index.php on line 524
what should I do?
what version vBulletin?
rezapci
09-18-2006, 10:05 AM
what version vBulletin?
3.6.1
haris_led
09-19-2006, 01:19 AM
Is there a way to make vba cmps online module to show the number of the spiders?
I have read the 7 pages of this hack, but I did not find a solution. Only to show X users, X guests and spiders.
Only rogersnm's post (https://vborg.vbsupport.ru/showthread.php?p=1054374#post1054374) helps, but, i dont know how to define the variable in the vba's file:confused: :confused:
Can anyone help?
This is a great hack :D thanks amykhar :)
Neal-UK
09-19-2006, 01:47 AM
For some reason, this doesn't like the skin on www.itnovice.com
I'm logged in and can do everything when logged in, but on the skins other than the default skin, the log in box still shows.....
Spiceworld
09-19-2006, 10:57 AM
Hi
I've installed this and my index who's on line is different than my online.php page.
I have rechecked all the files and templates and all have been changed. What else could be wrong or checked?
My index page is showing 1 member 0 guests and 0 spiders
My online.php page is showing 1 member and 5 guests.
I'm running v3.6.1
Any help
Cheers
Richard
iran.gs
09-22-2006, 09:03 PM
Actually it's not that bad, but you might want to wait until 3.6 goes gold because otherwise all your edits will get overwritten. I agree a plugin is always best, especially when switching from one version to another. Maybe one day someone will make a hack that remembers all your plugins and allows you to click one place to reimport them all at the same time ;)
l agree and not only that l installed few hacks recently and now my site is %20 slow loading now how would l know which hack is doing it :alien:
how are u bubble long time no see its me w5a :rolleyes:
Algren_San
09-23-2006, 10:24 PM
l agree and not only that l installed few hacks recently and now my site is %20 slow loading now how would l know which hack is doing it :alien:
how are u bubble long time no see its me w5a :rolleyes:
name it maybe we could help you.
and this hack wont slow down your forum since it just display the spiders that allready does online.php.
BTW installed :) thanks working great on 3.6.1 :D
AyeCapn
09-25-2006, 06:48 AM
working on 3.6.1 here :)
same problem with the vBa CMPS issue. I changed he adv_portal_onlineusers template, but would love a more thorough fix.
:wub:
Pottsy
10-02-2006, 11:13 AM
I have a small problem - there's a space before each comma in the list (forum index). Have checked my install and seems ok - any clues? (v 3.6.1)
54191
amykhar
10-02-2006, 02:39 PM
Make sure the template mod is on one line
Pottsy
10-02-2006, 02:52 PM
It looks like it is....
<!-- logged-in users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a><a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest" 3="$numberspiders">$vbphrase[x_members_and_y_guests]</phrase>)
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
<tr>
<td class="alt2"><a href="online.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
<div>$activeusers</div>
</div>
</td>
</tr>
</tbody>
<!-- end logged-in users -->
bairy
10-04-2006, 09:10 AM
I have a small problem - there's a space before each comma in the list (forum index). Have checked my install and seems ok - any clues? (v 3.6.1)
A cause of this (in Firefox at least) is if
AdminCP > vb options > General Settings > Add Template Name in HTML Comments
Is set to yes. It inserts html comments between each name and Firefox spaces it.
Pottsy
10-04-2006, 09:18 AM
Mine is set to "No" and the problem is there in FF and ie...
bairy
10-04-2006, 09:31 AM
I was just returning to update. It's down to a line break.
Edit the forumhome_loggedinuser template, remove the line break after the </if>
Pottsy
10-04-2006, 12:47 PM
Genius. Thank you!
corsacant
10-04-2006, 04:15 PM
Is there a way to make vba cmps online module to show the number of the spiders?
I have read the 7 pages of this hack, but I did not find a solution. Only to show X users, X guests and spiders.
Only rogersnm's post (https://vborg.vbsupport.ru/showthread.php?p=1054374#post1054374) helps, but, i dont know how to define the variable in the vba's file:confused: :confused:
Can anyone help?
This is a great hack :D thanks amykhar :)
I would like to know the same. Thanks.
AMD_Warrior
10-07-2006, 11:44 PM
Im getting this when i click whos online on my board
Reload this Page 2 members and [ARG:2 UNDEFINED] guests and [ARG:3 UNDEFINED] spiders
is that normal?
Arjan
10-08-2006, 11:24 AM
No, that is not normal. You edited the phrases allright, but it doesn't get the variables passed on. Are you sure you made all the changes to the PHP code?
A question from myself:
I remember that vB 3.0 had a place where you could enter SE identification strings. I can't seem to find that in 3.6 has it gone or can someone tell me where that was?
bairy
10-08-2006, 11:48 AM
I remember that vB 3.0 had a place where you could enter SE identification strings. I can't seem to find that in 3.6 has it gone or can someone tell me where that was?
\includes\xml\spiders_vbulletin.xml
I'm not certain if this info is cached and how often, so any changes you make may not show up instantly.
Arjan
10-08-2006, 12:40 PM
Ah, thanks.
And maybe usefull for more users:
Anyone knows good sites to find the identification strings of spiders?
bairy
10-08-2006, 09:50 PM
<a href="http://forum.vbulletinsetup.com/f7/spider-identification-footer-20.html" target="_blank">http://forum.vbulletinsetup.com/f7/s...footer-20.html</a>
The xml file linked in the first post is dated May 2006. There are 398 spider tags in there. I don't know if that will slow down the who's online page.
Emanet-Kaos
10-09-2006, 01:04 AM
thanks :O)
AMD_Warrior
10-09-2006, 05:59 AM
Hey i fixed that other problem and now im having a slight problem again can you guys tell me what im doing wrong :(
I made all the edits and the spiders are finally showing up on the online.php (currently active users)
but not on the forum home
can you tell me the exact place where i can fix this?
Arjan
10-09-2006, 09:21 AM
Thanks for this xml file :)
I think you still are missing some PHP code in the index.php file. Or you did something wrong there...
Hard to point out exactly what is the problem. read the code carefully.
wjkids
10-10-2006, 03:59 AM
Everything is installed and doesnt seem to give any errors. Using 3.6.2 new forums so just waiting for spider to hit ;) Thanks for the MOD!
Antiblank
10-14-2006, 12:47 PM
Not sure if it's something I'm doing wrong but my bots are showing up as the same color group as my admins... Other then that the hack works great, running it on 3.6.2 with no other issues.
Slyfox1
10-15-2006, 08:25 AM
I'm also getting the "ARG:3UNDEFINED" from the online.php. The forum index is working fine.
I've just re-checked the edits for online.php and there all there.
Any other ideas??
Sly
rogersnm
10-15-2006, 08:44 AM
You can't have done the template edits.
Antiblank
10-15-2006, 08:48 AM
I'm also getting the "ARG:3UNDEFINED" from the online.php. The forum index is working fine.
I've just re-checked the edits for online.php and there all there.
Any other ideas??
Sly
All this means is that you didn't add in the arguement for the phrase. Go into your phrases, find x_members_and_y_guests (i belive it is) click to edit it. Then in the text box type something along the lines of:
{1} members // {2} guests // {3} spiders
This will give you an output like:
Currently Active Users: 21 (2 members // 9 guests // 10 spiders)
Hope that helps.
Slyfox1
10-15-2006, 09:05 AM
I went through the text file again and re-checked everything. The phrases must be right as its being displayed correctly in forumhome...
Slyfox1
10-15-2006, 09:09 AM
You can't have done the template edits.
I stand corrected.
Seem one of my skins wasn't using the default...
Thanks
G_Man
10-17-2006, 03:28 AM
@ Funboy:
U have to edit ur adv_portal_onlineusers template..
Search for:
<td class="thead"><span class="smallfont"><phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase></span></td>
Replace with:
<td class="thead"><span class="smallfont"><phrase 1="$numberregistered" 2="$numberguest" 3="$numberspiders">$vbphrase[x_members_and_y_guests]</phrase></span></td>
Note that, that 'll just show u X members, X guests and spiders..
[/QUOTE]
Worked a treat for me. Cheers.
And GREAT hack Amy!! :D
jacki
10-22-2006, 05:09 PM
I did allthings like you wrote but it happened in picture whats the problem
http://img327.imageshack.us/img327/9880/untitled2copygy6.jpg
lifesourcerec
11-05-2006, 10:16 AM
This halfway works for me. It shows this:
"(6 members and 1 guests and 1 spiders)"
But they never show up on the user list.
Snake
11-06-2006, 10:17 AM
Make sure you have done the files edits provided you in the readme file. ;)
Antv912
11-06-2006, 09:14 PM
How could i make it so that google or the spiders arent shown as members cause ive installed successfully but it shows as user_id:0 when i mouse over Google Adsense
lifesourcerec
11-09-2006, 11:47 AM
Make sure you have done the files edits provided you in the readme file. ;)
I did multiple times. Same result.
mac27
11-15-2006, 03:46 AM
Anyone else having issues with this in 3.6.3? Spider count is not showing up where it shows currently active users.
Mudvayne
11-15-2006, 04:23 AM
I did multiple times. Same result.
Redo the template edits..
Anyone else having issues with this in 3.6.3? Spider count is not showing up where it shows currently active users.
Does work fine for me.. I've to close my forum due to maintenance.. So see the screenshots..
mac27
11-15-2006, 04:43 AM
Hmmm. it doesn't show the spider count for me. I will have to have a look around adminCP.
lifesourcerec
11-15-2006, 09:23 AM
Redo the template edits..
Does work fine for me.. I've to close my forum due to maintenance.. So see the screenshots..
Just rechecked the templates and everything was already set. Still doesn't work.
Mudvayne
11-15-2006, 11:30 AM
This is weired.. I found many people having prob with this hack.. But since beginning I don't have any prob with this hack.. Everything works fine for me.. Anywayz I don't mean anything negative but want me to give it a try? Then PM me.. This shud work flawlessly.. Atleast mine does..
amykhar
11-15-2006, 01:27 PM
It's worked for many versions of vbulletin and generally, people have problems when they miss portions of the code edits.
Mudvayne
11-15-2006, 01:46 PM
Hmmm. it doesn't show the spider count for me. I will have to have a look around adminCP.
You should redo the code change again. Youhavn't any problem with template changes but there is something wrong with your code changes.
el fuego
11-21-2006, 02:18 AM
I just installed this (first code edit ever attempted) and it is working flawlessly.
Thanks so much for this awesome hack!!!
On a side note: Has anyone figured out how to get this working with vBadvanced?
itdevil
11-22-2006, 03:25 PM
Just upgraded to vB 3.6.4 and the hack works fine :)
Thanks!
BigJimTheLug
11-25-2006, 03:18 AM
Wow, I can't seem to find none of the files in my index.php file....lol and my forum is working fine.
Would other vb hacks interfere with this?
Thanks.
el fuego
11-26-2006, 10:57 PM
Wow, I can't seem to find none of the files in my index.php file....lol and my forum is working fine.
Would other vb hacks interfere with this?
Thanks.
Of course other hacks could interfere. If they required code changes that removed the same code this hack needs to change.
SnapOff Racing
11-27-2006, 06:15 AM
i think i got mine working ok but when there's 0 guests and/or spiders on my site...it says:
"Currently Active Users: 1 (1 members and 0 guests and spiders)"
does this mean it's not working properly? can someone view my site and tell me? i followed step by step.
www.snapoffracing.com/forums
thanks
Mudvayne
11-27-2006, 06:35 AM
If the phrase edit was flawless then you might 've mistaken with code edit. Check it again.
lifesourcerec
12-09-2006, 02:17 PM
If the phrase edit was flawless then you might 've mistaken with code edit. Check it again.
I don't think they made mistakes. I think it is conflicting with other mods. I had 3 mods that wouldn't work. I unstalled 2 non-related mods and those 2 mods finally worked. I have installed this mod 8 times with the same result. It never worked, then when I uninstalled 2 particular modifications, it now half way works.
lifesourcerec
12-09-2006, 02:19 PM
i think i got mine working ok but when there's 0 guests and/or spiders on my site...it says:
"Currently Active Users: 1 (1 members and 0 guests and spiders)"
does this mean it's not working properly? can someone view my site and tell me? i followed step by step.
www.snapoffracing.com/forums
thanks
If you see that, it means your index.php wasn't editted correctly. Double check it.
Mudvayne
12-09-2006, 03:24 PM
Hmm.. I've near abt 50 hacks install on my forum.. None of these hacks conflict with this.. So I don't know which hack you r talking about..
JimmyN
01-01-2007, 09:45 PM
I have a probelm, i installed it all and on index it show me as not logged in
This is the code that seems to be the probelm.
Im running 3.6.4, if i add the code below in the index file and re-upload it when on the index i get shown as loged out, but the mod works. Can someone check the code and see whats wrong?
Thanks heaps
Find:
---------
if (fetch_online_status($loggedin))
{
$numbervisible++;
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
}
}
-------
Add After:
-------
while ($spidername = current($spiderlist))
{
if ($spidername > 1) {
$loggedin['musername'] = trim(key($spiderlist)) . "(" . $spidername.")";
}
else
{
$loggedin['musername'] = trim(key($spiderlist));
}
$loggedin['userid'] = 0;
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
next($spiderlist);
}
Quantnet
01-04-2007, 09:34 AM
installed.
Looking forward to getting the vbadvanced online module fix.
Thanks
TheFrienzNet
01-13-2007, 02:58 PM
Thanks. :)
jackey666
01-17-2007, 01:21 AM
I'm looking forward for a "product" for VB3.6!
Also, it is possible to have the list of spider to be shown at the end of the user list?
jackey666
01-18-2007, 09:56 AM
I had to uninstall the add-on... After a few hours after installing it, I were not able to see new messages in a forum shown on the home anymore. The picture indicating that there was a new message was not shown, and the "mark forum as read" either.
The only way I founded to fix it was to put back the file "index.php".
Addon marked as uninstalled...
Switch02
01-20-2007, 09:06 PM
Thanks amykhar, i like this mod, work fine in 3.6.4
Staxed
03-13-2007, 09:57 PM
I'm having an issue...it's not working correctly...
I have checked and rechecked everything about 5 times now...so i know that this mod is installed correctly...
I disabled the plugin system and it still wasn't working...so that tells me that it's not any of the product mods that i have installed...right?
now...i have a few other mods that required file edits...but none of them required an edit of index.php or online.php...could they still be the problem if they didn't change anything that this mod changes?...i don't want to uninstall them if they can't be the issue...
what else could it be???...it's worked on another board i have (which i believe i had the same other files editing mods installed as well)...i'm just stuck...i can't figure out what else to check...
Xplorer4x4
03-16-2007, 12:12 AM
Hmm did I mis an edit or something as my forum home shows:
Currently Active Users: 6 (6 members and guests and 0 spiders)
Staxed
03-16-2007, 12:17 AM
you either edited the forumhome template incorrectly or the phrase incorrectly
hey amykhar...any response to my request?
Xplorer4x4
03-16-2007, 03:28 AM
you either edited the forumhome template incorrectly or the phrase incorrectly
hey amykhar...any response to my request?
I have checked over and over. Everything is exited right
The forum home is edited properly and so is the phrase as best I can see. I changed the phrase to "{1} members and {2} guests and {3} spiders" so the guest variable is still listed.
Iris as far as I can see you have not stated what the problem is, just that you have a problem. Sorry if I missed it but it helps to say what the problem is to get it fixed ;).
Staxed
03-16-2007, 09:15 PM
I have checked over and over. Everything is exited right
The forum home is edited properly and so is the phrase as best I can see. I changed the phrase to "{1} members and {2} guests and {3} spiders" so the guest variable is still listed.
Iris as far as I can see you have not stated what the problem is, just that you have a problem. Sorry if I missed it but it helps to say what the problem is to get it fixed ;).
if everything is done right and you're 100% possitive i have no clue either :(...
lol...thanks for pointing that out to me...i can't believe i forgot to mention the actual problem...now i feel like an idiot...
REPOST:
I'm having an issue...it's not working correctly...the number of spiders are not showing up, and they are not listed in the whosonline area....they still show as guests, and that 0 spiders are online
I have checked and rechecked everything about 5 times now...so i know that this mod is installed correctly...
I disabled the plugin system and it still wasn't working...so that tells me that it's not any of the product mods that i have installed...right?
now...i have a few other mods that required file edits...but none of them required an edit of index.php or online.php...could they still be the problem if they didn't change anything that this mod changes?...i don't want to uninstall them if they can't be the issue...
what else could it be???...it's worked on another board i have (which i believe i had the same other files editing mods installed as well)...i'm just stuck...i can't figure out what else to check...
Staxed
03-25-2007, 02:37 PM
amykhar...
any ideas?...i've checked it 100 times...i've done everything correctly...it just isn't working...
possibly changes made in 3.6.5 that broke it?
delmarva
03-26-2007, 01:22 AM
Too bad it is not a plugin (product). Hate to do code changes on 3.6
Same here... Afraid I'm gonna screw things up, but i guess this separates the pros from the armatures. :rolleyes:
HeRmAn'S
03-30-2007, 01:00 PM
version 3.6.5 ...no problem :up:..and *Installed* ;):)
Staxed
03-31-2007, 10:48 PM
this is really strange...just isn't working for me for some weird reason
dbirosel
04-06-2007, 08:45 PM
omg... how come all the names in the currently active users, all the names been doubled!! help!!!
dbirosel
04-06-2007, 08:50 PM
i reverted the forumhome_loggedinuser template, and it seems to be working fine...
i guess there is something wrong with this code?
<if condition="$loggedin[userid]"><a href="member.php?$session[sessionurl]u=$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]<else
/>$loggedin[musername]</if>
Zerovb
04-09-2007, 05:20 AM
Wow Very Good Thank You
Guest210212002
05-15-2007, 12:01 AM
Amy, would it be possible to only show the bot count to Admins, and simply add the bot count to the guests count for everyone else?
Jibreil
05-15-2007, 07:18 PM
Is this compatible with vB 3.6.7?
EvilHawk
05-15-2007, 07:25 PM
Is this compatible with vB 3.6.7?
Yes it is.
Snake
05-22-2007, 04:57 PM
Yeah it is but it hasn't been confirmed by Amy yet so just be careful.
chriscoleman
05-24-2007, 02:33 PM
Thanks for this! Heres a copy/paste from mine!!!!:
Currently Active Users: 289 (2 members and 280 guests and 7 spiders)
View Who's Online
Most users ever online was 326, Yesterday at 11:39 AM.
admin, Paul, Google AdSense, Yahoo! Slurp(5), Google
venomx
05-31-2007, 03:28 AM
I know this is a stupid question but where do I go in VB to add new spiders?
imhere2009
06-17-2007, 01:09 PM
Hi all
I have installed this mod on the latest version of vb, but when i look on my forum it shows this:
1 members and 1 guests [ARG:3 UNDEFINED] spiders
Could someone kindly tell me were i went wrong?
Thanks
Steve
CommunityZ
07-02-2007, 01:09 PM
It is not compatible with vbshout. I have vbshout installed. Once i installed (edit) the index.php It disappear the chatbox of vbshout. I can't shout....
Hi all
I have installed this mod on the latest version of vb, but when i look on my forum it shows this:
1 members and 1 guests [ARG:3 UNDEFINED] spiders
Could someone kindly tell me were i went wrong?
Thanks
Steve
Look over the install again, you missed something, it looks like you missed the part
In the template WHOSONLINE find:
----------------------
2="$numberguests"
----------------------
Add after:
----------------------
3="$numberspiders"
----------------------
Hi is there a way i can take this to my frontpage. I have a non vb page in php.. i have a login box, once the user logs in it shows their username.. this is from another hack.
I was wondering what i need to do to add the who's online "numbers" just numbers like total online now: 100 members: 50 spiders: 25 guests: 25
Cheers!
ayoko555
07-11-2007, 03:38 AM
nevermind :)
mfyvie
07-15-2007, 01:28 PM
I've done a slightly different hack along these lines, but using the plugin system instead. It's very simple and doesn't provide any options - it just kills spiders from the various totals. You should check out all the various mods to see which one suits you best. You can find it here (https://vborg.vbsupport.ru/showthread.php?t=152321).
theFAILURE
07-19-2007, 02:22 AM
It is not compatible with vbshout. I have vbshout installed. Once i installed (edit) the index.php It disappear the chatbox of vbshout. I can't shout....
It does work with VBshout, I am using it currently with it, here is a screen shot of vbshout, and the spider count:
https://vborg.vbsupport.ru/external/2007/07/27.jpg
pow6713
07-21-2007, 01:44 PM
works fine
thanks
Quantnet
08-16-2007, 11:44 PM
still working on 3.6.8 ?
Smiry Kin's
08-18-2007, 05:16 PM
donno, when changing some code, some bits can't be found, so i canclled it, think it may require updating to 3.6.8
Great mod, I have everything working, but it has the spiders linked to member.php?u=0 for some reason. Can I change that link? O remove it?
Here is what the code looks like.
<a href="member.php?u=0" rel="nofollow">Yahoo! Slurp</a>, <a href="member.php?u=0" rel="nofollow">Google</a></div>
ravyn
08-21-2007, 06:08 PM
my board doesn't do that! Maybe it is something with an update because I have an older version of this hack and it never had links for the spiders.
seangworld
09-17-2007, 01:35 AM
i run 3.6.8 and it's not working for me. i had the same errors everyone else has been stating they're getting. i checked and rechecked everything.
i am uninstalling this.
get a plugin.
gider
10-16-2007, 07:32 PM
Thanks ...............
thefullmaza
12-10-2007, 09:20 PM
plz clicks install
My forum does not displays 0 if no spiders are online.
XX members and XX guests and spiders
Also if spiders are online it does not display the number in What's Going On? panel.
It displays spiders number if i click Currently Active Users only.
nevermind... i forgot to replace a string into index.php.
Works great !
Taragon
02-16-2008, 12:47 PM
I have been trying to modify this myself, but would it be possible to update this script for vb3.7 perhaps?
It would be much appreciated.
Currently it is showing like this: see attachment
Works fine for me in vB 3.7 Beta 5. You will have to change two things though.
In index.php (if you already edit it) search for:
$forumusers = $db->query_read_slave("
SELECT
user.username, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity, session.useragent,
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 OR $vbulletin->options['displayloggedin'] == 3, "ORDER BY username ASC") . "
");
Replace it with:
$forumusers = $db->query_read_slave("
SELECT
user.username, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity, session.useragent,
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 OR $vbulletin->options['displayloggedin'] == 3, "ORDER BY username ASC") . "
");
Replace the contents of the template forumhome_loggedinuser with:
<if condition="$loggedin[userid]"><if condition="$show['comma_leader']">, </if>$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]<else />$loggedin[musername]</if>
Boofo
02-16-2008, 03:20 PM
This can be done without editing any files now. I have been doing it without files edits since 3.5.4.
This can be done without editing any files now. I have been doing it without files edits since 3.5.4.
How? Can you release it here? :D
Taragon
02-16-2008, 03:45 PM
Works fine for me in vB 3.7 Beta 5. You will have to change two things though.
In index.php (if you already edit it) search for:
$forumusers = $db->query_read_slave("
SELECT
user.username, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity, session.useragent,
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 OR $vbulletin->options['displayloggedin'] == 3, "ORDER BY username ASC") . "
");
Replace it with:
$forumusers = $db->query_read_slave("
SELECT
user.username, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity, session.useragent,
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 OR $vbulletin->options['displayloggedin'] == 3, "ORDER BY username ASC") . "
");
Replace the contents of the template forumhome_loggedinuser with:
<if condition="$loggedin[userid]"><if condition="$show['comma_leader']">, </if>$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]<else />$loggedin[musername]</if>
Thanks! Works like a charm!
mariocaz
02-23-2008, 03:44 AM
Is there a version for 3.6.8 pl 2 ???
Thank you
This one works even with 3.7 Beta 5 :)
mariocaz
02-23-2008, 06:41 PM
Ok I will give it a shoot, hope works.
Big Boss
02-23-2008, 07:02 PM
This can be done without editing any files now. I have been doing it without files edits since 3.5.4.
Then by all means, could you release it to the public since many of us have been waiting for it, pretty please? :D
mariocaz
02-23-2008, 07:17 PM
Yes also I join the petition.
Boofo
02-23-2008, 11:42 PM
Ok, give me a day to verify it with the co-author and I will release it.
Boofo
02-24-2008, 10:32 AM
The 3.7.0 beta 5 version of this hack has been released here (https://vborg.vbsupport.ru/showthread.php?t=171322).
droid101
03-10-2008, 07:33 PM
--------------------------------------------------------------------------------
Getting this: 11 members and 3 guests and [ARG:3 UNDEFINED] spiders
I did all the edits as noted in the attached document. It works fine in my forum home, and shows all the spiders. It doesn't show the spiders and gives that Arg Undefined error on the CMPS homepage.
What do I need to do to get it to work with the who's online module?
Ronak
03-22-2008, 11:31 AM
Parse error: syntax error, unexpected T_ELSE line 525
getting this error vBulletin 3.6.8 PL2
Boofo
03-22-2008, 11:33 AM
Parse error: syntax error, unexpected T_ELSE line 525
getting this error vBulletin 3.6.8 PL2
https://vborg.vbsupport.ru/showthread.php?t=171322
Ronak
06-22-2009, 05:27 PM
This must be working with 3.8x ?
SevgimBoard
10-17-2009, 08:44 AM
thank you
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.