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)

Extreme John 07-20-2005 12:48 AM

Paul, let me start by saying I love this hack! I noticed someone else having the same problem I am having but when I read through I didnt actually see where the issue was resolved.

All of my members are showing as being online within the last 24 hours, I know thats not possible even though I dont have a large board (it's somewhat new). Im running vB3.0.6

http://www.thetanforum.com/index.php (at the bottom)

I removed the Commented $cutoff line as well and Im still not sure what Im doing wrong (Im a noob at this, I think this is my 3rd time installing a mod). This one being the easiest. Any help would be greatly appreciated.

Paul M 07-20-2005 01:36 AM

Are you using version 2.30 ?

Extreme John 07-20-2005 02:34 AM

Yes Im using 2.30

slank 07-20-2005 02:41 AM

cheers for the mod...nicely done

Paul M 07-20-2005 03:43 AM

Quote:

Originally Posted by Extreme John
Yes Im using 2.30

Please PM me your index.php :)

Extreme John 07-20-2005 03:37 PM

Let me get it from my designer and Ill either shoot it over or have him shoot it over in a minute :) Thanks Paul.

GamTrak 07-22-2005 02:35 AM

Hi Paul, I wanted to come back and report that everything is working great with this hack! Thank you so very much for all of your email assistance.

BTW is there a way to track any stats on the guests that visit the forum? I saw it at another forum but I think is was a php board. Thanks again.

SamirDarji 07-22-2005 07:06 AM

Quote:

Originally Posted by GamTrak
BTW is there a way to track any stats on the guests that visit the forum? I saw it at another forum but I think is was a php board. Thanks again.

I've seen this too on phpbb here: www.hsvracing.com. I too would like to see the same feature in vb. How hard would it be to implement?

Paul M 07-22-2005 11:51 AM

Quote:

Originally Posted by GamTrak
Hi Paul, I wanted to come back and report that everything is working great with this hack! Thank you so very much for all of your email assistance.

No problem, glad to hear it.

Quote:

Originally Posted by GamTrak
BTW is there a way to track any stats on the guests that visit the forum? I saw it at another forum but I think is was a php board. Thanks again.

Not sure what you mean, it might be best to start a new topic about it so people can clarify what you require. :)

Paul M 07-22-2005 11:52 AM

Quote:

Originally Posted by Extreme John
Let me get it from my designer and Ill either shoot it over or have him shoot it over in a minute :) Thanks Paul.

Never received anything ......

GamTrak 07-22-2005 02:17 PM

Quote:

Originally Posted by Paul M
No problem, glad to hear it.

Not sure what you mean, it might be best to start a new topic about it so people can clarify what you require. :)

I'm not sure which forum on this board to post in, but here is an example forum: http://www.gamerzplanet.net/forums/

What's Going On?
Currently Active Users: 421 (175 members and 245 guests and 1 spiders)

Paul M 07-22-2005 07:29 PM

I think that is Amy's hack ;

https://vborg.vbsupport.ru/showthread.php?t=75986

SamirDarji 07-22-2005 08:59 PM

Quote:

Originally Posted by Paul M
Not sure what you mean, it might be best to start a new topic about it so people can clarify what you require. :)

See the very bottom of this page. http://www.hsvracing.com/phpBB2/index.php. It says not only who registered has been on-line, but also guests.

xtreme-mobile 07-23-2005 03:39 PM

iva had this installed for ages. but a small problem has been annoying me for ages so wanna do something about it :D

the section where it says who has visited today, it doesnt seem to update untill about 00:45-01:00am how can my make it update at midnight????

thanks in advance

dean

Paul M 07-23-2005 04:12 PM

1. Are you running the latest version ?

2. What do you mean by "update at midnight" ?

It should actually become zero at midnight, and remain at zero until members actually visit the forum again [after midnight].

GamTrak 07-23-2005 04:30 PM

Quote:

the section where it says who has visited today, it doesnt seem to update untill about 00:45-01:00am how can my make it update at midnight????
I think that is like the *waiting* period to display everyone that visits from 12:01am to 1:00am. I'm not expert (lol) so I'm just guesing because it's the same on mine which is about 3 weeks old.

GamTrak 07-23-2005 04:32 PM

Quote:

Originally Posted by Paul M

Thank you Paul! I'm gonna try to do that one. I hope I don't mess up again. :nervous:

xtreme-mobile 07-23-2005 05:43 PM

Quote:

Originally Posted by Paul M
1. Are you running the latest version ?

2. What do you mean by "update at midnight" ?

It should actually become zero at midnight, and remain at zero until members actually visit the forum again [after midnight].

sorry paul if i wasnt clear, yes so it goes to zero at midnight, at the moment mine doesnt reset till around 1am

not sure what version i got to be honest

regards

dean

Paul M 07-23-2005 07:42 PM

The version number is in the code, as a comment at the top.

v2.30 is the latest version, please upgrade to this first - as I cannot support earlier versions. :)

xtreme-mobile 07-23-2005 07:51 PM

ok mate ive got version 2.0 at the mo how do i upgrade just change code in index.php and thats it?

the template would stay the same i would imagine? and do i have to run the query again?

Paul M 07-23-2005 07:56 PM

Quote:

Originally Posted by xtreme-mobile
ok mate ive got version 2.0 at the mo how do i upgrade just change code in index.php and thats it?

the template would stay the same i would imagine? and do i have to run the query again?

All you need to change is the code, nothing more. :)

oldengine 07-23-2005 10:04 PM

Quote:

This is optional, but will speed up the query if you have a large number of members;

Run the following SQL query;

ALTER TABLE user ADD INDEX (lastactivity)
How many is too many? (2500 registered) (317 today)

Paul M 07-23-2005 10:21 PM

It will not harm anything to run the query with a low number of users, it's just that the difference would be hard to see - with 2,500 users I would definitely add the index.

oldengine 07-24-2005 03:11 AM

Everything works fine from midnight on, but if I uncomment the 24 hour line, ALL registered users are displayed.
Code:

// $cutoff = $now - 86400 ;  // ## Uncomment this line if you want a rolling 24 hours display ## //
I'm on 3.07.

Paul M 07-24-2005 10:07 AM

Quote:

Originally Posted by oldengine
Everything works fine from midnight on, but if I uncomment the 24 hour line, ALL registered users are displayed.
Code:

// $cutoff = $now - 86400 ;  // ## Uncomment this line if you want a rolling 24 hours display ## //
I'm on 3.07.

Ah, you are absolutely right - that's a bug from the last update.

The line should now be ;

PHP Code:

// $cutoff = TIMENOW - 86400 ;  // ## Uncomment this line if you want a rolling 24 hours display ## // 

Code updated, thank you for pointing it out. :)

oldengine 07-24-2005 12:59 PM

Excellent addition to my board! All is well. :)

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

xtreme-mobile 07-25-2005 05:49 AM

Quote:

Originally Posted by Paul M
All you need to change is the code, nothing more. :)

ok ive replcaed the existing code to v 2.31 :)

now how do i get it to reset at midnight :nervous:

Paul M 07-25-2005 12:12 PM

Quote:

Originally Posted by xtreme-mobile
ok ive replcaed the existing code to v 2.31 :)

now how do i get it to reset at midnight :nervous:

It does that by default.

Paul M 07-25-2005 12:14 PM

Quote:

Originally Posted by oldengine
Excellent addition to my board! All is well. :)

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

You need to alter the template - I did have the details somewhere [a while ago], I'll see if I can find them later. Kinda busy atm.

kregger 07-25-2005 07:36 PM

Works great! Thanks! :D Made me realize how busy my board is.

Craig

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 03:43 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.01957 seconds
  • Memory Usage 1,838KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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