vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   "users browsing this forum" ???? (https://vborg.vbsupport.ru/showthread.php?t=40900)

trilOByte 07-10-2002 04:45 PM

"users browsing this forum" ????
 
Like the subject says, does anyone know how I can make "(Users Browsing this Forum: ******) show up in a table on forum home?

I mean I want to show useres browsing forum XXX (a specific forum) show up on forum home (index.php or whatever).

Thanks.

Xenon 07-10-2002 08:17 PM

you have to make another template called browsing_forum_bit or however you want it, than save the infos form that in a varible (as it is made for forumbits) and then put it on forumhome

trilOByte 07-10-2002 08:49 PM

Thanks, that helps a little. I know this should be straightforward, but I'm really struggling with it. :(

Xenon 07-10-2002 08:58 PM

normally you could use the forumdisplaybitlevel2post as original template for the browsing bit template

then just open index.php find
PHP Code:

eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";"); 

then just add below something like this:
PHP Code:

if($depth==&& $tempext="post") eval("\$browsingbits .= \"".gettemplate("browsebit")."\";"); 

then use $browsingbits in your forumhome template


normally this should work when you change the templates as you like (you have to implement the # of users browsing hack also)

[high]* Xenon is tired and will go to bed, he hopes everything posted is right ;)[/high]

trilOByte 07-10-2002 09:14 PM

Thanks Xenon. I'll give it a go :)


All times are GMT. The time now is 04:23 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.02688 seconds
  • Memory Usage 1,713KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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