vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Currently Active Users In Header (https://vborg.vbsupport.ru/showthread.php?t=122388)

Renmiri 07-27-2006 09:00 PM

Currently Active Users In Header
 
A request that I happened to need ASAP so I did my first hack (be gentle!)

Inspired on vBExternal and live stats on header

1. Add the plugin to set the value of $onlineusers
2. Edit header template to add $onlineusers

If you want to put it under the logo, the same place the live stats on header puts it, do this:

In the header template:

Find: (ususally at the end of the template file)
Quote:

<!-- content table -->
$spacer_open

$_phpinclude_output
Add Above:
Quote:

<!-- Currently Active Users in Header Template -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="left"><span class="smallfont"><a href="online.php$session[sessionurl_q]"><b>Online: </b> $usersonline</a>
</span></div>
</td>
<td align="left" width="20%"> </td>
</tr>
</table>
<!-- Currently Active Users in Header Template -->
Check it out (I put mine by the site logo)

http://sinsdawn.ffproject.net/index.php

Note: If your forum is very active (lucky you), your current online string gets too big. The plugin stops the gathering of user names when the string reaches 80 charaters. If you want more than that, just edit the plugin and at the bottom find
Quote:

while($User = $db->fetch_array($UsersOnline) and strlen($Data)<80){
and change the 80 to your preferred size

Snake 07-28-2006 01:15 PM

Thanks, just installed it on my forums. ;)

http://www.finalfantasyforums.net

albibak 07-28-2006 01:31 PM

Thanks for this mod.
Do you know how I can do for display only the numer of member, and not the name?

exemple : online : 13

bashy 07-28-2006 01:42 PM

Hi

You would need to use this
Code:

<div align="left"><span class="smallfont"><b>Online: </b> $totalonline</a>
In place of
Code:

<div align="left"><span class="smallfont"><a href="online.php$session[sessionurl_q]"><b>Online: </b> $usersonline</a>
I just tested what i put and it works

Hope this helps :)

Renmiri 07-28-2006 01:52 PM

Quote:

Originally Posted by albibak
Thanks for this mod.
Do you know how I can do for display only the numer of member, and not the name?

exemple : online : 13

just get the live stats on header plugin. they have number online, # threads...

or do what Bashy said :)

albibak 07-30-2006 06:34 AM

Thx a lot for your help :)

Bison 10-09-2006 03:31 PM

Quote:

Originally Posted by bashy
Hi

You would need to use this
Code:

<div align="left"><span class="smallfont"><b>Online: </b> $totalonline</a>
In place of
Code:

<div align="left"><span class="smallfont"><a href="online.php$session[sessionurl_q]"><b>Online: </b> $usersonline</a>
I just tested what i put and it works

Hope this helps :)

The numbers do not show up for me. Am I missing something?

Renmiri 10-12-2006 02:03 PM

Quote:

Originally Posted by Bison
The numbers do not show up for me. Am I missing something?

Are you in 3.6 ?

Lionel 10-13-2006 03:24 AM

works on 3.62.... but it displays all invisible members

|oR|Greg 12-10-2006 03:46 PM

Works great in 3.6.0!

www.amacny.com


All times are GMT. The time now is 08:26 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.03747 seconds
  • Memory Usage 1,736KB
  • 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
  • (4)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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