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

N!ck 05-15-2002 03:21 AM

what would really be cool is #'ing the guests, i.e. Guest #1, Guest #2, Guest #3, and so on. i have seen a modification for online.php to do this...

Jakeman 05-15-2002 03:51 AM

Quote:

Originally posted by nicksaunders
what would really be cool is #'ing the guests, i.e. Guest #1, Guest #2, Guest #3, and so on. i have seen a modification for online.php to do this...
i have attached a modified version of this hack that numbers the guests like you wanted: Guest #1, Guest #2, etc.

this doesn't have any purpose on the forumhome listing other than just having the numbers there. guest numbering would have a purpose on the online.php page though.

Jakeman 05-15-2002 04:08 AM

i fixed a problem that was causing the Members: ### on forumhome to be wrong. i was using a variable that was already being used in forum/index.php . i changed the variable and it worked fine. i have updated both downloads in this thread.

lordnet 05-15-2002 04:31 AM

Good hack

i will try it now ! :)

my best wish...

LORD

[email protected] vbmenu_register("postmenu_253497", true); 05-22-2002 06:41 PM

Works great ! 2.2.5 Thanks

Odil 06-08-2002 05:27 AM

Quote:

Originally posted by Jakeman


i have attached a modified version of this hack that numbers the guests like you wanted: Guest #1, Guest #2, etc.

this doesn't have any purpose on the forumhome listing other than just having the numbers there. guest numbering would have a purpose on the online.php page though.

Hi

I am using your hack with the Guest #...it works great only one minor problem. I am logged on now, my name shows as Odil , guest #1, Guest #2. Do you see the problem, the space after my name and the comma. How can I get rid of that?

Thanks for any help!

Odil
www.agirlonvenus.com

boatdesign 06-22-2002 06:57 PM

Are you sure in your template you have $activeusers$activeguests and not $activeusers $activeguests?

Great mod by the way!

BigJohnson 06-22-2002 09:20 PM

Is there any way where it can add a number to the end of each guest, Like say there are 2 guests one is names guest1 the other is names guest2. That would a lot better.

2 X Viverridae 08-14-2002 10:57 AM

Simple to install, and works nicely, Thanks!

Dan Flynn 09-27-2002 12:40 AM

Jakeman,

That's really nice :)

Thanks

Peace 10-21-2002 01:26 AM

Do this hack have a bug because over 300 hundred "guest" is displaying on the list? Helppppppp

Destee 11-14-2002 03:54 AM

Thanks Jakeman ... I added this a few weeks ago but failed to say thank you or click installed.

Thanks :)

Destee

OmaniMan 05-04-2003 12:54 AM

Great :) Thanks Alot ...

Wish You The Best ...

Master Computer 05-08-2003 11:00 PM

Thanks for this great hack.
I was looking for this hack since a long time.

but I have a question:
How do I get the guests displayed in "Active Users Today" part to count them as users of the forum?

Master Computer 05-09-2003 06:35 AM

My another question is:
How do I link online users with this hack to display the numbered guests activity?

RetroDreams 05-24-2003 12:26 AM

Is there any way this can be used in the Forum Display instead where it shows the current users in the thread?

Master Computer 06-24-2003 07:55 PM

I got no answer about my question:

Quote:

05-09-03 at 04:00 AM Master Computer said this in Post #24
Thanks for this great hack.
I was looking for this hack since a long time.

but I have a question:
How do I get the guests displayed in "Active Users Today" part to count them as users of the forum?


MaDCaT75 11-09-2003 08:04 PM

I cant find $numberguest=$loggedins['sessions']; in my index.php..... help!

assassingod 11-09-2003 08:07 PM

Quote:

Originally Posted by MaDCaT75
I cant find $numberguest=$loggedins['sessions']; in my index.php..... help!

Line 148

MaDCaT75 11-09-2003 09:07 PM

Yes I know I looked for it everywhere.... not to be found :cry:

assassingod 11-10-2003 05:53 AM

Quote:

Originally Posted by MaDCaT75
Yes I know I looked for it everywhere.... not to be found :cry:

Then you've installed some hacks that have removed that code (or changed it)


All times are GMT. The time now is 10:10 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.01333 seconds
  • Memory Usage 1,774KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete