PDA

View Full Version : Forum Home Enhancements - Show Spiders on ForumHome


amykhar
20 Jun 2006, 14:39
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
20 Jun 2006, 19:05
Thanks amykhar............i love this mod.

amykhar
20 Jun 2006, 19:23
Glad you like it :)

Amy

The Free Bird
20 Jun 2006, 19:29
very nice

think you

The Free Bird

os6orah
20 Jun 2006, 23:20
thanks

projectego
21 Jun 2006, 00:03
Cheers. :)

Brandon Sheley
23 Jun 2006, 02:58
thx for making this compatible with the new vb

cheers :)

Coast to Coast
23 Jun 2006, 03:56
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
24 Jun 2006, 16:33
thanks nice

Snake
24 Jun 2006, 16:53
Thanks for the 3.6 version of this hack! :)

Bubble #5
25 Jun 2006, 02:41
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
25 Jun 2006, 04:07
That's on the who's online page Bubble.

Bubble #5
25 Jun 2006, 18:48
OK thank you for the clearification.

Red Matrix
30 Jun 2006, 10:41
Installed, now lets see if it works. Just waiting for spiders...

Ig@r
05 Jul 2006, 20:35
Too bad it is not a plugin (product). Hate to do code changes on 3.6

Bubble #5
05 Jul 2006, 21:35
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
06 Jul 2006, 03:12
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
12 Jul 2006, 20:25
thanks great hack.

rob30UK
14 Jul 2006, 17:27
it's a damn shame this isnt a product as I would clicked install right away.

rob30UK
14 Jul 2006, 17:28
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
15 Jul 2006, 14:09
Parse error: parse error, unexpected T_DEC, expecting T_VARIABLE or '$' in xxxxxxxxxxxxxxxx\forum\httpdocs\index.php on line 381


????

rob30UK
19 Jul 2006, 15:25
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
19 Jul 2006, 17:33
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
25 Jul 2006, 03:55
Installed with some minor template modifcations to give partial functionality/compatibility to vBadvanced.

Nwras
25 Jul 2006, 12:37
Hi ...

But Thise Hacks Make The Forum Very slow

thank you ..

Best Regarde ..

Nwras

amykhar
25 Jul 2006, 13:19
It's never affected the speed of my board and I've used some variation of it for several versions of vbulletin.

Mudvayne
29 Jul 2006, 22:13
Workin fine on RC3.. Thnx amykhar :)..

Eric
30 Jul 2006, 12:12
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
02 Aug 2006, 18:21
-waiting for the plugin version

rogersnm
04 Aug 2006, 10:18
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
04 Aug 2006, 10:20
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
10 Aug 2006, 05:16
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
10 Aug 2006, 13:41
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
10 Aug 2006, 14:50
Does this show the bots to the users too?

amykhar
10 Aug 2006, 15:41
Yes, it does.

Phaedrus
10 Aug 2006, 16:30
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
10 Aug 2006, 17:41
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
10 Aug 2006, 19:15
Now I can click Install... Working great. I even caught one spider... :)

Ig@r
10 Aug 2006, 20:23
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
10 Aug 2006, 21:24
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
10 Aug 2006, 23:37
Didn't Kirby release a Plugin version of this for 3.5 in your 3.5 Spiders on Forumhome thread?

asj
12 Aug 2006, 13:45
thanks so much

Algren_San
15 Aug 2006, 00:30
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
15 Aug 2006, 01:17
I realize that, I'm saying that it could most likely be adapted...

amykhar
15 Aug 2006, 03:33
If I recall correctly, it was only a plugin for part of the mod and not the full functionality.

Kirk Y
15 Aug 2006, 03:39
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
15 Aug 2006, 20:42
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
15 Aug 2006, 23:29
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
16 Aug 2006, 08:21
you need to add a variable to the phrase. Like you did for the forumhome template.

rogersnm
16 Aug 2006, 08:26
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
16 Aug 2006, 16:28
pls u can post screen shots u r shot is not clear.

rogersnm
16 Aug 2006, 16:36
/me uninstalls
It doesn't work on 3.6 gold.

Mudvayne
16 Aug 2006, 17:50
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
17 Aug 2006, 14:37
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
17 Aug 2006, 18:01
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
17 Aug 2006, 19:07
* rogersnm uninstalls
It doesn't work on 3.6 gold.
yes it does.. it works just fine ;)

ArabSQuad
20 Aug 2006, 02:23
CheerS !

* ArabSQuad Installs :)

Muellmann
20 Aug 2006, 12:49
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
25 Aug 2006, 14:33
Thanks for the 3.6 port! :)

HellBoy
25 Aug 2006, 15:34
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
25 Aug 2006, 20:21
Do a search in the templates. Ain't that hard. ;)

HellBoy
25 Aug 2006, 22:15
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
26 Aug 2006, 06:52
Thanks amy, this is such an awesome mod...

globalmoney
30 Aug 2006, 15:36
On 3.6.0 Released, works orderly?

amykhar
30 Aug 2006, 15:44
Yes, it does.

globalmoney
30 Aug 2006, 15:44
Ok, thank you. :)

rogersnm
30 Aug 2006, 15:49
Yes, it does.
It doesn't for me. It messes up the count of guests and doesn't show any spiders.

amykhar
30 Aug 2006, 16:33
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
30 Aug 2006, 16:45
Ok, i'll try it again soon and get back to you. Have you updated the query to make it gold compatible?

amykhar
30 Aug 2006, 17:41
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
30 Aug 2006, 17:48
and the infractiongroupid

amykhar
30 Aug 2006, 17:50
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
31 Aug 2006, 06:16
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
31 Aug 2006, 13:36
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
01 Sep 2006, 18:01
Installed on mine! Thanks very much its great

vwdforum
01 Sep 2006, 19:02
Just checked and this appears, in current users

[ARG:3 UNDEFINED] spiders

Any idea what it means and how to fix it?

Mal

amykhar
01 Sep 2006, 19:03
Make the template edits.

vwdforum
01 Sep 2006, 19:05
It was working fine, showing google and msn bot

Do you think its when a spider it does not recognises searches?

vwdforum
01 Sep 2006, 19:20
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
07 Sep 2006, 16:02
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
07 Sep 2006, 16:10
Try this


Excellent!

Works just fine, shame not having the numbers on the home page but I can live with that!!

Mal

mac27
07 Sep 2006, 22:58
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
07 Sep 2006, 23:01
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.

Zia
11 Sep 2006, 06:48
by the way..spiders visited today..can it be listed in "Users visited Today" block and "show spider browsing thread" too?

mac27
11 Sep 2006, 06:50
Hey Amy I don't want to yell to loud. LOL Thanks and yes could you point me in that direction. :)

Ronak
14 Sep 2006, 18:15
gr8 mod...Installed ;)

amykhar
14 Sep 2006, 21:28
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
14 Sep 2006, 21:34
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
15 Sep 2006, 16:32
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
16 Sep 2006, 10:38
this does not work with vbulletin version 3.6.1.

Snake
16 Sep 2006, 13:28
Of course it does. I'm running it just fine on my 3.6.1 forums. :)

globalmoney
16 Sep 2006, 17:18
on 3.6.1, works orderly. :)

rezapci
17 Sep 2006, 20:42
error Parse error: syntax error, unexpected T_ELSE in /home/alshia/public_html/vb/index.php on line 524

what should I do?

Phaedrus
18 Sep 2006, 07:45
You only have to do about half of the modifications if you upgrade...

globalmoney
18 Sep 2006, 10:43
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
18 Sep 2006, 12:05
what version vBulletin?


3.6.1

haris_led
19 Sep 2006, 03:19
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 (http://www.vbulletin.org/forum/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
19 Sep 2006, 03:47
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
19 Sep 2006, 12:57
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
22 Sep 2006, 23:03
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
24 Sep 2006, 00:24
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
25 Sep 2006, 08:48
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
02 Oct 2006, 13:13
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
02 Oct 2006, 16:39
Make sure the template mod is on one line

Pottsy
02 Oct 2006, 16:52
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
04 Oct 2006, 11:10
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
04 Oct 2006, 11:18
Mine is set to "No" and the problem is there in FF and ie...

bairy
04 Oct 2006, 11:31
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
04 Oct 2006, 14:47
Genius. Thank you!

corsacant
04 Oct 2006, 18:15
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 (http://www.vbulletin.org/forum/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
08 Oct 2006, 01:44
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
08 Oct 2006, 13:24
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
08 Oct 2006, 13:48
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
08 Oct 2006, 14:40
Ah, thanks.
And maybe usefull for more users:
Anyone knows good sites to find the identification strings of spiders?

bairy
08 Oct 2006, 23:50
http://forum.vbulletinsetup.com/f7/spider-identification-footer-20.html

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
09 Oct 2006, 03:04
thanks :O)

AMD_Warrior
09 Oct 2006, 07:59
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
09 Oct 2006, 11:21
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 Oct 2006, 05:59
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
14 Oct 2006, 14:47
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
15 Oct 2006, 10:25
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
15 Oct 2006, 10:44
You can't have done the template edits.

Antiblank
15 Oct 2006, 10:48
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
15 Oct 2006, 11:05
I went through the text file again and re-checked everything. The phrases must be right as its being displayed correctly in forumhome...

Slyfox1
15 Oct 2006, 11:09
You can't have done the template edits.

I stand corrected.

Seem one of my skins wasn't using the default...

Thanks

G_Man
17 Oct 2006, 05:28
@ 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
22 Oct 2006, 19:09
I did allthings like you wrote but it happened in picture whats the problem

http://img327.imageshack.us/img327/9880/untitled2copygy6.jpg

lifesourcerec
05 Nov 2006, 12:16
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
06 Nov 2006, 12:17
Make sure you have done the files edits provided you in the readme file. ;)

Antv912
06 Nov 2006, 23:14
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
09 Nov 2006, 13:47
Make sure you have done the files edits provided you in the readme file. ;)

I did multiple times. Same result.

mac27
15 Nov 2006, 05:46
Anyone else having issues with this in 3.6.3? Spider count is not showing up where it shows currently active users.

Mudvayne
15 Nov 2006, 06:23
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
15 Nov 2006, 06:43
Hmmm. it doesn't show the spider count for me. I will have to have a look around adminCP.

lifesourcerec
15 Nov 2006, 11:23
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
15 Nov 2006, 13:30
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
15 Nov 2006, 15:27
It's worked for many versions of vbulletin and generally, people have problems when they miss portions of the code edits.

Mudvayne
15 Nov 2006, 15:46
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
21 Nov 2006, 04:18
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
22 Nov 2006, 17:25
Just upgraded to vB 3.6.4 and the hack works fine :)

Thanks!

BigJimTheLug
25 Nov 2006, 05:18
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
27 Nov 2006, 00:57
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
27 Nov 2006, 08:15
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
27 Nov 2006, 08:35
If the phrase edit was flawless then you might 've mistaken with code edit. Check it again.

lifesourcerec
09 Dec 2006, 16:17
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
09 Dec 2006, 16:19
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
09 Dec 2006, 17:24
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 Jan 2007, 23:45
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
04 Jan 2007, 11:34
installed.
Looking forward to getting the vbadvanced online module fix.
Thanks

TheFrienzNet
13 Jan 2007, 16:58
Thanks. :)

jackey666
17 Jan 2007, 03:21
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
18 Jan 2007, 11:56
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
20 Jan 2007, 23:06
Thanks amykhar, i like this mod, work fine in 3.6.4

Staxed
13 Mar 2007, 23:57
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
16 Mar 2007, 02:12
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
16 Mar 2007, 02:17
you either edited the forumhome template incorrectly or the phrase incorrectly



hey amykhar...any response to my request?

Xplorer4x4
16 Mar 2007, 05:28
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
16 Mar 2007, 23:15
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
25 Mar 2007, 16:37
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
26 Mar 2007, 03:22
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
30 Mar 2007, 15:00
version 3.6.5 ...no problem :up:..and *Installed* ;):)

Staxed
01 Apr 2007, 00:48
this is really strange...just isn't working for me for some weird reason

dbirosel
06 Apr 2007, 22:45
omg... how come all the names in the currently active users, all the names been doubled!! help!!!

dbirosel
06 Apr 2007, 22:50
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
09 Apr 2007, 07:20
Wow Very Good Thank You

Chris-777
15 May 2007, 02:01
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
15 May 2007, 21:18
Is this compatible with vB 3.6.7?

EvilHawk
15 May 2007, 21:25
Is this compatible with vB 3.6.7?

Yes it is.

Snake
22 May 2007, 18:57
Yeah it is but it hasn't been confirmed by Amy yet so just be careful.

chriscoleman
24 May 2007, 16:33
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
31 May 2007, 05:28
I know this is a stupid question but where do I go in VB to add new spiders?

imhere2009
17 Jun 2007, 15:09
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
02 Jul 2007, 15:09
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....

Crow
05 Jul 2007, 04:07
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"
----------------------

CP,
05 Jul 2007, 16:04
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
11 Jul 2007, 05:38
nevermind :)

mfyvie
15 Jul 2007, 15:28
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 (http://www.vbulletin.org/forum/showthread.php?t=152321).

theFAILURE
19 Jul 2007, 04:22
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://www.vbulletin.org/forum/external/2007/07/27.jpg

pow6713
21 Jul 2007, 15:44
works fine
thanks

Quantnet
17 Aug 2007, 01:44
still working on 3.6.8 ?

Smiry Kin's
18 Aug 2007, 19:16
donno, when changing some code, some bits can't be found, so i canclled it, think it may require updating to 3.6.8

cTak
21 Aug 2007, 18:59
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
21 Aug 2007, 20:08
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
17 Sep 2007, 03:35
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
16 Oct 2007, 21:32
Thanks ...............

thefullmaza
10 Dec 2007, 23:20
plz clicks install

Flep
16 Dec 2007, 07:58
My forum does not displays 0 if no spiders are online.

XX members and XX guests and spiders

Flep
16 Dec 2007, 08:08
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.

Flep
16 Dec 2007, 08:17
nevermind... i forgot to replace a string into index.php.

Works great !

Taragon
16 Feb 2008, 14:47
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

Icy
16 Feb 2008, 15:57
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
16 Feb 2008, 17:20
This can be done without editing any files now. I have been doing it without files edits since 3.5.4.

Icy
16 Feb 2008, 17:26
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
16 Feb 2008, 17:45
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
23 Feb 2008, 05:44
Is there a version for 3.6.8 pl 2 ???

Thank you

Icy
23 Feb 2008, 07:40
This one works even with 3.7 Beta 5 :)

mariocaz
23 Feb 2008, 20:41
Ok I will give it a shoot, hope works.

Big Boss
23 Feb 2008, 21:02
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
23 Feb 2008, 21:17
Yes also I join the petition.

Boofo
24 Feb 2008, 01:42
Ok, give me a day to verify it with the co-author and I will release it.

Boofo
24 Feb 2008, 12:32
The 3.7.0 beta 5 version of this hack has been released here (http://www.vbulletin.org/forum/showthread.php?t=171322).

droid101
10 Mar 2008, 21:33
--------------------------------------------------------------------------------

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?

eido
20 Mar 2008, 09:32
thanks alot man

Ronak
22 Mar 2008, 13:31
Parse error: syntax error, unexpected T_ELSE line 525

getting this error vBulletin 3.6.8 PL2

Boofo
22 Mar 2008, 13:33
Parse error: syntax error, unexpected T_ELSE line 525

getting this error vBulletin 3.6.8 PL2

http://www.vbulletin.org/forum/showthread.php?t=171322

Ronak
22 Jun 2009, 19:27
This must be working with 3.8x ?

SevgimBoard
17 Oct 2009, 10:44
thank you