vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Guests show up as 'Guest' in the forumhome whois online list (https://vborg.vbsupport.ru/showthread.php?t=38610)

Jakeman 05-13-2002 10:00 PM

Guests show up as 'Guest' in the forumhome whois online list
 
Guests show up as 'Guest' in the forumhome whois online list - vBulletin 2.2.6 - Jake's third hack. wOOp! :D

About: This hack will list all guests as 'Guest' on your forumhome whois online list.

Indications: forums needing the appearance of more traffic. :p

Directions: one small file mod and one small template mod. see attached file.

Demo: my site @ http://www.macsubculture.com/

Dade 05-14-2002 06:39 AM

Nice.

Webmasta XT 05-14-2002 09:57 AM

very nice hack I was about to realse mine, but oh well..

Webmasta XT 05-14-2002 10:01 AM

there is a bug in urs.. I had 3 Active users, and those were my 3 members and it showed a Guest in the online.. even after my 3 members that were online!

I think I should realse the one I was gonna realse.. :cheeky:

xware 05-14-2002 03:26 PM

The click 'Guest' should be linked to the register page.

Jakeman 05-14-2002 05:50 PM

Quote:

Originally posted by Webmasta XT
there is a bug in urs.. I had 3 Active users, and those were my 3 members and it showed a Guest in the online.. even after my 3 members that were online!
you had zero guests but the list showed one? that means ' ' is less than 0 ??? try changing $guestcount = ' '; to $guestcount = 0; ... unless 0 is less than 0 in php :confused:

please let me know if that works. i will test it as soon as i get a chance. if it doesn't work i can fix it by adding an if statement to check for $numberguest==0, but that's just more code to process. ;)

Quote:

Originally posted by xware
The click 'Guest' should be linked to the register page.
the links for 'Guest' are the same as on the online.php page. i did this on purpose. you can change this by creating a new template called forumhome_loggedinguest with the same contents as forumhome_loggedinuser except you change the link to go to the register page. then in your index.php file...

change:
eval("\$activeguests .= \", ".gettemplate('forumhome_loggedinuser')."\";") ;

to:
eval("\$activeguests .= \", ".gettemplate('forumhome_loggedinguest')."\";" );

that should work

Webmasta XT 05-14-2002 06:30 PM

just for your sake I won't realse my version, its kinda smililar but urs have one bitty problem.. and if you want me to I can realse it in this same thread, with that problem fixed!

Jakeman 05-14-2002 07:26 PM

for my sake? you can release yours if you want, that's fine. that bug is fixed though.

Robouk5 05-14-2002 08:02 PM

nice hack. I doubt i'll use it though since it clogs up whos online hehe but nethertheless, good hack =)

Jakeman 05-14-2002 08:33 PM

i found and corrected another oversight. when there are only guests on the forums the whois online list starts with a comma. i have fixed this and updated the download file in the first post. the change is in the additional code in forum/index.php


All times are GMT. The time now is 01:51 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.01375 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)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
  • (10)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