vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Members who have visited today (with last 24 hours option). (https://vborg.vbsupport.ru/showthread.php?t=71533)

Boofo 07-25-2005 08:06 PM

If I add a new member via the Admion CP, it shows that they have already logged on today even though they haven't yet. Is this intended behavior? ;)

Paul M 07-25-2005 09:04 PM

Quote:

Originally Posted by Boofo
If I add a new member via the Admion CP, it shows that they have already logged on today even though they haven't yet. Is this intended behavior? ;)

It's the correct behavior as far as the hack is concerned.

It is a fault/bug with native vB - when you add a new user in the ACP it sets the users Last Activity Time to the time you add the user, which is of course, not really correct.

Paul M 07-25-2005 09:09 PM

Quote:

Originally Posted by oldengine
Any thoughts on making this default to "collapsed" mode, at least in my beginner's (dial-up) style?

If you change the template code to this - then it will always show the section as collapsed when you visit (or refresh) the page - meaning you have to manually expand it to see the list of names.

Code:

<!-- Todays active users -->
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_todayusers')"><img id="collapseimg_forumhome_todayusers" src="$stylevar[imgdir_button]/collapse_thead_collapsed.gif" alt="" border="0" /></a>
            Total members that have visited today: $totaltoday
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_todayusers" style="display:none;">
    <tr>
        <td class="alt2"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="Users online today" border="0" /></td>
        <td class="alt1" width="100%"><div class="smallfont">$whotoday</div></td>
    </tr>
</tbody>
<!-- Todays active users -->


Boofo 07-25-2005 09:14 PM

Quote:

Originally Posted by Paul M
It's the correct behavior as far as the hack is concerned.

It is a fault/bug with native vB - when you add a new user in the ACP it sets the users Last Activity Time to the time you add the user, which is of course, not really correct.

Sorry about that, Paul. I meant to post this in the 3.5 plug-in area. ;)

But that answers my question, anyway. Thank you, sir. ;)

Paul M 07-25-2005 09:28 PM

Quote:

Originally Posted by Boofo
Sorry about that, Paul. I meant to post this in the 3.5 plug-in area. ;)

Not to worry, it applies to either. I have actually reported it as a 3.5.0 bug, so it may get corrected.

Paul M 07-25-2005 11:06 PM

Quote:

Originally Posted by Paul M
I have actually reported it as a 3.5.0 bug, so it may get corrected.

Oh well, that was a waste of time again. It's working as designed - <shrug>. To me, that makes the design wrong, but I doubt anyone cares much. :)

Boofo 07-26-2005 02:09 AM

Quote:

Originally Posted by Paul M
Oh well, that was a waste of time again. It's working as designed - <shrug>. To me, that makes the design wrong, but I doubt anyone cares much. :)

Well, Paul, I care. Does that mean anything at all? LOL

Paul M 07-26-2005 04:52 PM

Quote:

Originally Posted by Boofo
Well, Paul, I care. Does that mean anything at all? LOL

Not unless you twist Scotts arm and make him fix it. :)

JakeAppliance 07-26-2005 09:14 PM

Just installed it, Love it, works great!:cool:

Thanks Paul and everyone who helped with it!

Jake

oldengine 07-27-2005 02:49 PM

Quote:

Originally Posted by Paul M
If you change the template code to this - then it will always show the section as collapsed when you visit (or refresh) the page - meaning you have to manually expand it to see the list of names.

I have it set this way in one style and it is set as original in my alternate style. Worked excellent!


All times are GMT. The time now is 09:08 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.01844 seconds
  • Memory Usage 1,744KB
  • 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
  • (8)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