vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Home Enhancements - Show Spiders on ForumHome (https://vborg.vbsupport.ru/showthread.php?t=119134)

amykhar 06-19-2006 10:00 PM

Show Spiders on ForumHome
 
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

Quote:

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

Ig@r 07-05-2006 06:35 PM

Too bad it is not a plugin (product). Hate to do code changes on 3.6

Bubble #5 07-05-2006 07:35 PM

Quote:

Originally Posted by Ig@r
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

Quote:

Originally Posted by Bubble #5
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

Quote:

Originally Posted by Ig@r
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 :)..

Eric 07-30-2006 10:12 AM

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

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

Quote:

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

Quote:

Originally Posted by rogersnm
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... :)

Ig@r 08-10-2006 06:23 PM

Quote:

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


All times are GMT. The time now is 06:04 PM.

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

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

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

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