vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Who Was Online Today on forums (https://vborg.vbsupport.ru/showthread.php?t=59579)

Gary King 02-14-2004 12:31 PM

Quote:

Originally Posted by []\[]emesis
Do this:
In forumhome_todayloggedinusers
Replace everything with the following.
HTML Code:


<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onClick="return toggle_collapse('forumhome_todayactiveusers')"><img id="collapseimg_forumhome_todayactiveusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_todayactiveusers].gif" alt="" border="0" /></a>
$vbphrase[active_users_today]: $todayonline
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_todayactiveusers" style="$vbcollapse[collapseobj_forumhome_todayactiveusers]">

<tr>

<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_link.gif" alt=" Number of Active Users Today" border="0" /></td>

<td class="alt1" colspan="0"><div class="smallfont">
<nobr><phrase 1="$todayrecordusers" 2="$todayrecorddate">$vbphrase[most_users_ever]</phrase></nobr> |
<nobr>$vbphrase[already_visited_today]:</nobr><br />
        $todayloggedinuser<br />
        </div></td>
</tr>
</tbody>

Go to http://www.computerproblems.org/forums

to see what that will do. Hope that helps.

I added that to the instructions now, looks better than what I have right now :)

trinitym 02-14-2004 02:43 PM

Woohoo! Everything is now working like a well-oiled machine. Erm, or something like that. Thanks for the fix, I really love this hack. :) Now I can click the happy button.

[high]* trinitym clicks install[/high]

Logikos 02-14-2004 07:24 PM

No problem guys, love the hack! :) Nice smooth install, thats what i like to see.

94DROPTOPZ 02-15-2004 01:14 AM

The phrases are missing on mine I think since I redid the install...

How do I manually add the phrases? I know that I goto the phrase manager and click add new phrase but :

what phrase type?

what Varname?

what text?

I also re read through the next install.txt file and all I see are the phrases (but not the rest of how to add them), sorry for the stupid question but I'm new to this

Also if you click on some of the usernames at the bottom it shows their last active date as being 2/13/04 and today is the 14th hmmm just wondering?

Gary King 02-15-2004 01:20 AM

Quote:

Originally Posted by 94DROPTOPZ
The phrases are missing on mine I think since I redid the install...

How do I manually add the phrases? I know that I goto the phrase manager and click add new phrase but :

what phrase type?

what Varname?

what text?

I also re read through the next install.txt file and all I see are the phrases (but not the rest of how to add them), sorry for the stupid question but I'm new to this

Also if you click on some of the usernames at the bottom it shows their last active date as being 2/13/04 and today is the 14th hmmm just wondering?

Phrase type, use GLOBAL, varname is the text before the / and text is after that.

94DROPTOPZ 02-15-2004 01:31 AM

Quote:

Originally Posted by Gary W
Phrase type, use GLOBAL, varname is the text before the / and text is after that.


Thanks for answering such a ridiculous question I figured it out right after I posted and I apologize... I manually added the phrases and it fixed that problem now I'm just not too sure why some of the members it said visited the board today when you look at their profile it says last avtivity 2/13

Thanks Gary

Gary King 02-15-2004 01:38 AM

Quote:

Originally Posted by 94DROPTOPZ
Thanks for answering such a ridiculous question I figured it out right after I posted and I apologize... I manually added the phrases and it fixed that problem now I'm just not too sure why some of the members it said visited the board today when you look at their profile it says last avtivity 2/13

Thanks Gary

Because the hack checks 'today' differently from the actual server times, etc. so it would probably be a few hours off.

natralis 02-15-2004 08:15 AM

installed and working took 5 mins thankyou gary appreciated m8

trilOByte 02-15-2004 12:13 PM

Is there any way to get this to reset to different timezones? My site is for the UK (server is in the US) and this seems to start it's daily calculation at about 5am GMT (which is roughly midnight where my server is). Also, the last activity "mouseover" doesnt reflect the difference in timezones - it's 5hrs out for 99% of my users.

What I would like is the count to reset itself to mkidnight GMT, not midnight server time, and the last activity to reflect GMT not EST.

M.C. 02-15-2004 09:27 PM

start making phrases self and then saw, that you already add that to hack ;) Cool!

Just question - is that hack add query to DB and if yes how many...

And last - can you do it like it was on vB2., when list of online users can be shown on single page (like onlinetoday.php) instead of index.php?

Thanks!


All times are GMT. The time now is 02:49 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.01411 seconds
  • Memory Usage 1,751KB
  • 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_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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