vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   howto get "Currently Active Users Viewing This Thread"/forum at top? (https://vborg.vbsupport.ru/showthread.php?t=93255)

Gutspiller 07-31-2005 03:01 AM

howto get "Currently Active Users Viewing This Thread"/forum at top?
 
How do I get the tables that show who is viewing the thread or forum at the top of the forum / thread?

Andreas 07-31-2005 04:05 AM

Template FORUMDISPLAY

Gutspiller 07-31-2005 04:57 AM

I was kinda looking for what code and where to move it actually. Can somebody give more details?

Andreas 07-31-2005 09:52 AM

$activeusers

Gutspiller 08-01-2005 05:55 PM

Wow, you really don't know how to help do you.

Andreas 08-01-2005 06:18 PM

Well, sometimes I'm a bit lazy, sorry :)

If you open Template FORUMDISPLAY and scroll down approx. 40% qou will find a section of HTML Code starting with

HTML Code:

<!-- Active Users in this Forum (and sub-forums) and Moderators -->
In this Section you can find
HTML Code:

<if condition="$show['activeusers']">
<td class="alt1"><div class="smallfont">$activeusers</div></td>
</if>

These are the active Users. Move this to the place you would like to have it.

Gutspiller 08-03-2005 09:49 PM

What do you mean "In this Section you can find"? Where do I put what code? I don't know what to pull or where to put it.

Andreas 08-03-2005 10:05 PM

Take $activeusers and put it wherever you want in the same Template.
Where is up to you and I can't tell you as I don't know where you want to have it exactly :)

Gutspiller 08-05-2005 05:52 PM

All that does is move the text. See when you view a thread here at vbulletin.org? That's how and where I want it to appear in my threads and forums. Can you tell me how I can get it to look like that?

Doc Great 09-15-2005 08:22 AM

Ok you have to change the SHOWTHREAD template. Move the following code over
<!-- controls above postbits --> and set a <br /> afterwards, thats it.
Code:

<!-- currently active users -->
<if condition="$show['activeusers']">
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
                <td class="tcat" colspan="2">
                        <phrase 1="$totalonline" 2="$numberregistered" 3="$numberguest">$vbphrase[users_viewing_this_thread_x_y_z]</phrase>
                </td>
        </tr>
        <tr>
                <td class="alt1" colspan="2">
                        <span class="smallfont">$activeusers</span>
                </td>
        </tr>
        </table>
</if>
<!-- currently active users -->



All times are GMT. The time now is 07:18 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.01141 seconds
  • Memory Usage 1,732KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_html_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