vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Show Spiders Online on ForumHome (https://vborg.vbsupport.ru/showthread.php?t=75986)

amykhar 02-14-2005 07:37 PM

Kall, it won't work on the who's online page. I'll check your site to see what's going on.

amykhar 02-14-2005 07:38 PM

ok. I see the problem with the code. I'll fix it and update the text file.

amykhar 02-14-2005 08:03 PM

ok. The spiders are at my site and this seems to be working ok. I see there is a problem with the phrase on who's online. I will fix that either later tonight or tomorrow morning. I have to get ready for work now.

(Removed attachment and updated directions for the hack.)

eva01_ 02-14-2005 09:57 PM

why do people ignore others with questions <_<

why can i not edit the phrase???

amykhar 02-15-2005 12:43 AM

Eva, I don't know why you can't edit phrases. It's something you should probably post a separate thread on.

eva01_ 02-15-2005 12:46 AM

bah thanks anyways. didn't know if you would know or not. wasn't going to post a new thread if it could be answered here

thank-you ^^

amykhar 02-15-2005 02:07 AM

OK. The online.php bug is fixed and I have updated the install instructions to include the requested features. I have also uploaded a new screen shot that reflects how the hack works now.

Finally, I am moving this out of beta. I believe it's done and all is well.

eva01_ 02-15-2005 03:09 AM

hmm i am still getting that
"2 members and 0 guests and [ARG:3 UNDEFINED] spiders"

don't know if you meant by fixing the online.php bug this or not....

everything else works great for it

lifesourcerec 02-15-2005 08:11 AM

I still get this
"[ARG:3 UNDEFINED]"

But I edited the phrase.

Boofo 02-15-2005 08:52 AM

I ran into a unique problem. If there are no spiders online it doesn't show a 0 for the spiders. It just says "and spiders".

I also added some code to not show a (1) if there is only one instance of a given spider. If there is more than one it will show (2) or however many there are. ;)

amykhar 02-15-2005 10:13 AM

Eva and Lifesource, I forgot to put the online template edit in the instructions. I'll post it in a sec. I'll also get the variable initialized to zero so that it shows "and 0 spiders" when they aren't around.

lifesourcerec 02-15-2005 12:39 PM

Ok. I'll keep checking back.

Mone' 02-15-2005 01:12 PM

Quote:

Originally Posted by amykhar
Eva and Lifesource, I forgot to put the online template edit in the instructions. I'll post it in a sec. I'll also get the variable initialized to zero so that it shows "and 0 spiders" when they aren't around.

nice hack :up:

however there is something wrong with the txt file

PHP Code:

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}{\f1\fnil\fcharset0 Courier New;}}
\
viewkind4\uc1\pard\f0\fs20 This hack displays on your forum home page the search engine spiders that are browsing your site.\par
\par
In index
.php\par 

Cheers

Mone'

Boofo 02-15-2005 01:16 PM

Quote:

Originally Posted by Mone'
nice hack :up:

however there is something wrong with the txt file

PHP Code:

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}{\f1\fnil\fcharset0 Courier New;}}
\
viewkind4\uc1\pard\f0\fs20 This hack displays on your forum home page the search engine spiders that are browsing your site.\par
\par
In index
.php\par 

Cheers

Mone'

She did it in wordpad. ;)

Mone' 02-15-2005 01:31 PM

Quote:

Originally Posted by Boofo
She did it in wordpad. ;)

heheh
how are you boofo? long time no see you ;)

Salient 02-15-2005 02:23 PM

anyone want to share the solution for "[ARG:3 UNDEFINED]?"

Thank you bunches.

EDIT: Just read the posts again. Didnt realize they were from today, Ill go back to my hole. :)

Also: Does vB already come with a spiderlist? How and from where is it queried? Im not very knowledgable about these things, so please be kind.

amykhar 02-15-2005 05:04 PM

For the online.php glitch, in the template WHOSONLINE find:
Code:

2="$numberguests"
Add After:
Code:

3="$numspiders"
Make sure you get the space in there. I'll update the text file as soon as I get the 0 spiders problem fixed.

amykhar 02-15-2005 05:13 PM

For Boofo's change that only shows the numbers if more than one spider is around (and shame on him for telling you that he did it without telling you how to do it if you want as well :D)

In index.php Find:
Code:

$loggedin['musername'] = key($spiderlist) . "(" . $spidername.")";
Replace with:
Code:

  if ($spidername > 1) {
              $loggedin['musername'] = key($spiderlist) . "(" . $spidername.")";
          }
          else
          {
              $loggedin['musername'] = key($spiderlist);
          }


amykhar 02-15-2005 05:17 PM

I have the problem with 0 spiders fixed I think. But, I can't test it until the spiders leave my site. Anyhow, this code should be in the file anyway for good form.

So, in index.php Find:
Code:

$numberguest = 0;
Add After:
Code:

$numberspiders = 0;
I'll update the text file now (and get it into notepad instead of wordpad.)

lifesourcerec 02-15-2005 05:55 PM

Still getting this after those updates.

[ARG:3 UNDEFINED]

amykhar 02-15-2005 06:12 PM

Did you do the template edit on the WHOSONLINE template? Did you make sure to get the space in?

lifesourcerec 02-15-2005 06:23 PM

Quote:

Originally Posted by amykhar
Did you do the template edit on the WHOSONLINE template? Did you make sure to get the space in?

Yes on both questions.

amykhar 02-15-2005 06:26 PM

Without seeing your site, I can't see what might be going on. The url you have listed in your profile comes up as not found.

lifesourcerec 02-15-2005 06:28 PM

Profile updated.

amykhar 02-15-2005 06:38 PM

Ah. You have the problem on your index page. You are missing the template edit on the FORUMHOME template. I can't see your online.php page because that's disabled for guests.

Amy

Salient 02-15-2005 06:49 PM

Im not sure if you do, but if you have a portal you will need to make the same changes for the templates used for whatever module you have it showing. I believe the template is adv_portal_onlineusers.

Oh, and thanks for the great enhancement, Amy.

Quick question, shouldnt MSNbot showup as a spider?

kall 02-15-2005 07:11 PM

Quote:

Originally Posted by amykhar
Ah. You have the problem on your index page. You are missing the template edit on the FORUMHOME template. I can't see your online.php page because that's disabled for guests.

Amy

Your online.php edit refers to numspiders .. changing each instance of that to numberspiders is what makes the online work.

:)

amykhar 02-15-2005 07:47 PM

Actually, I just had the template edit wrong in the directions. Change that to use numspiders instead of numberspiders. :D I fixed the text file.

amykhar 02-15-2005 08:28 PM

Taking things a step further. If you want guest or guests(12), etc. to show on your list as well,

In index.php Find:
Code:

$numberguest = $numberguest - $numberspiders;
Add After:
Code:

        if ($numberguest > 0)
        {
          if ($numberguest > 1)
          {
              $loggedin['musername'] = "guests(".$numberguest.")" ;
          }
          else
          {
              $loggedin['musername'] = "guest";
          }
          $loggedin['userid'] = 0;
            eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
        }


lifesourcerec 02-15-2005 08:57 PM

Quote:

Originally Posted by amykhar
Ah. You have the problem on your index page. You are missing the template edit on the FORUMHOME template. I can't see your online.php page because that's disabled for guests.

Amy

Just went through the script top to bottom and still same thing. Dunno what it is.

nathanaus 02-15-2005 10:06 PM

Quote:

Originally Posted by lifesourcerec
Just went through the script top to bottom and still same thing. Dunno what it is.

Works perfectly :) Thank you kindly.

Actually I just noticed on the VBAdvanced page I now get
Quote:

1 members and 1 guests and [ARG:3 UNDEFINED] spiders

nathanaus 02-15-2005 10:16 PM

All fixed now. The error mentioned above is gone :) Thank you once more for a great little mod :)

webrats 02-15-2005 11:03 PM

mine keeps showing zero spiders :(
but i see google in my online users
forums.webrats.com

Twigz 02-16-2005 12:09 AM

Worked Great. Other then I have the Same Prob. where it says, 0 Spiders, but when you click current active users there is 4 online. *Click's Install*

amykhar 02-16-2005 12:18 AM

Let me make sure I didn't hose something in the directions when I did the last update. I am at work right now; so it will be a while before I can look into it.

lifesourcerec 02-16-2005 12:24 AM

I may have to uninstall it for a bit until I can figure out the problem.

eva01_ 02-16-2005 12:27 AM

I love this hack amykhar its wonderful.

thank-you very much for creating it

amykhar 02-16-2005 12:46 AM

Quote:

Originally Posted by webrats
mine keeps showing zero spiders :(
but i see google in my online users
forums.webrats.com

Can you paste the contents of the relevant chunk of code in your FORUMHOME template here please? I am wondering if you got your variables crossed between the one used in index.php and the one used in online.php. I don't see any problem off hand in the directions.

lifesourcerec 02-16-2005 01:07 AM

Hmm, in index, why is it numberspiders, but in online.php, its numspiders?

amykhar 02-16-2005 01:12 AM

Because I coded them in two different places at two different times.


All times are GMT. The time now is 04:20 AM.

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.01997 seconds
  • Memory Usage 1,827KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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