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)

FamilyCorner 06-27-2005 01:53 PM

Cool hack, thanks!

neil b 06-28-2005 01:01 PM

Very good hack. Running well on my board.

King Kovifor 06-30-2005 11:45 PM

Ok... I didn't notice this mistake/problem UNTIL I loged out and logged in as a test user. The hack shows it as 0 members have visited since yesterday. And it HASN'T reset because I logged back in to an admin account and it shows 4 people (Still building).

Paul M 07-01-2005 12:16 AM

Assuming I have understood you correctly, remember it's timezone dependant - are the admin account and the test account using the same timezone settings ?

King Kovifor 07-01-2005 04:20 PM

Probably not. But shouldn't it still have atleast 1 person if the test account was logged in?

gizmosheretwo 07-01-2005 11:07 PM

Mine for some reason doesn't appear to display any users that have visited:
Is below correct code for
FORUMHOME TEMPLATE:
*** Full template code removed, since this is against our rules and your license agreement. (MArcoH64) ***
Any help would be apreciated, As I don't use VBS standard templates, I have no hacks installed

Paul M 07-02-2005 12:01 AM

Quote:

Originally Posted by gizmosheretwo
Mine for some reason doesn't appear to display any users that have visited:
Is below correct code for
FORUMHOME TEMPLATE:


Any help would be apreciated, As I don't use VBS standard templates, I have no hacks installed

Do you have the currently active users display turned off ?

(vBulletin Options > Forums Home Page Options > Display Logged in Users)

gizmosheretwo 07-02-2005 12:15 AM

Nope it's On, if I turn it off i get this > http://www.exchangeuk.co.uk/e/
Nothing

Paul M 07-02-2005 12:45 AM

Quote:

Originally Posted by gizmosheretwo
Nope it's On, if I turn it off i get this > http://www.exchangeuk.co.uk/e/
Nothing

That was my point - it needs to be on. Without a link to your site I had to ask you to check. please turn it on so I can see what you get. :)

gizmosheretwo 07-02-2005 10:59 AM

It was on at first, after your reply it looked like you ask to turn it off, so I turned it off.
It doesn't matter, I decided not to use this as it most probably will just hug the board with queries.

Also having quite a few users login within a day I realise it would use quite a lot of space.

Paul M 07-02-2005 01:47 PM

Quote:

Originally Posted by gizmosheretwo
It was on at first, after your reply it looked like you ask to turn it off, so I turned it off.
It doesn't matter, I decided not to use this as it most probably will just hug the board with queries.

Also having quite a few users login within a day I realise it would use quite a lot of space.

Your choice, but to answer those points - the list is collapsable - it uses 1 line when collapsed, and one select query [on forumhome only as well !) is nothing - it will never be noticed, affect nothing etc.

JohnGalt 07-02-2005 06:13 PM

what's the latest version of onlinetoday.php? is it just 2.0? how is it different than the previous version?

Paul M 07-02-2005 07:16 PM

Quote:

Originally Posted by JohnGalt
what's the latest version of onlinetoday.php? is it just 2.0? how is it different than the previous version?

Yes, its 2.00

To update it to 2.20 change this ;

PHP Code:

require_once('./includes/functions_misc.php');
$now TIMENOW intval($vboptions['hourdif']);
$cutoff vbmktime(000date('m'$now), date('d'$now), date('Y'$now)); 

to this ;

PHP Code:

$tz $bbuserinfo['timezoneoffset'] + $bbuserinfo['dstonoff'];
$now TIMENOW + ($tz 3600) - date('Z',TIMENOW);
$cutoff mktime(000date('m'$now), date('d'$now), date('Y'$now)); 

(and edit the comment from 2.00 to 2.20 :))

gizmosheretwo 07-02-2005 07:18 PM

Quote:

Originally Posted by Paul M
Your choice, but to answer those points - the list is collapsable - it uses 1 line when collapsed, and one select query [on forumhome only as well !) is nothing - it will never be noticed, affect nothing etc.

I think it's the skin I'm using paul, it was all in place but nothing was showing witin your hack....

So I took it off, would of been nice if what you say after what I posted doesn't use much queries etc..

Is my code right that I did post, as I had all in place but users visited today didn't appear, If my code is correct that I posted then I could find what's going on..

paul41598 07-07-2005 03:21 AM

Paul, I updated your code in my file, and Im still having problems. Even at 12:01am, its still showing the users from yesterday. Actually, it shows nothing ( 0 ), even if I log in and back out. The only way I can get it to show users is by uncommenting this line
// $cutoff = $now - 86400 ; // ## Uncomment this line if you want a rolling 24 hours display ## //

Paul M 07-07-2005 04:34 AM

Quote:

Originally Posted by paul41598
Even at 12:01am, its still showing the users from yesterday. Actually, it shows nothing ( 0 ), even if I log in and back out.

Sorry but you have confused me here, this seems to contradict itself.

At 12:01am no users seems reasonable as it's likely no one has done anything to update their last activity time past the start time of 12:00 am (you should appear if you start refreshing the page).

I have a bit of debug code I can send you that will display all the timezone relevant information to so I can see how your midnight cutoff is being calculated. I won't have access to it for about 10 hours though.

Uncommenting the line you mention will work, since it's just a simple last 24 hours calculation. :)

paul41598 07-07-2005 09:26 AM

Quote:

Originally Posted by Paul M
Sorry but you have confused me here, this seems to contradict itself.

At 12:01am no users seems reasonable as it's likely no one has done anything to update their last activity time past the start time of 12:00 am (you should appear if you start refreshing the page).

I have a bit of debug code I can send you that will display all the timezone relevant information to so I can see how your midnight cutoff is being calculated. I won't have access to it for about 10 hours though.

Uncommenting the line you mention will work, since it's just a simple last 24 hours calculation. :)

I just worded it wrong. Umm, with the updated code. after 12:01am, the list shows noone on there. If i log in, refresh, log out, and check the list, it still shows noone there.

Uncommenting the line though will display my name fine. Not sure what the diff is between all that code and the commented line though.

Of course I cant test it once again until tongiht at 12:01am

Wireless King 07-07-2005 03:23 PM

While attempting to add this on my forum, I got the error message: "fatal Error". Any idea why?

Paul M 07-07-2005 03:43 PM

Quote:

Originally Posted by Wireless King
While attempting to add this on my forum, I got the error message: "fatal Error". Any idea why?

Nope, and you haven't given much to go on.

SlipNslide281 07-08-2005 02:47 PM

Installed and looks great. But one question. Where do I add the Phrases:

NOW CREATE THE FOLLOWING PHRASES:
******************************
last_online_at_x / Last online at {1}
******************************
active_users_today / Number of Active Users Today
******************************
most_users_ever / Most users ever online on a day was {1} on {2}.
******************************
already_visited_today / The following members have already visited the forums today

Paul M 07-08-2005 08:24 PM

Quote:

Originally Posted by SlipNslide281
Installed and looks great. But one question. Where do I add the Phrases:

NOW CREATE THE FOLLOWING PHRASES:
******************************
last_online_at_x / Last online at {1}
******************************
active_users_today / Number of Active Users Today
******************************
most_users_ever / Most users ever online on a day was {1} on {2}.
******************************
already_visited_today / The following members have already visited the forums today

Um, there are no such instructions in this hack ???

Jon Matcho 07-09-2005 01:18 PM

Just FYI, to get this to work in vBadvanced 2.0 I needed to set the Use Module Shell Template to NO. After that, everything worked great.

Thanks!

Paul M 07-09-2005 02:38 PM

Quote:

Originally Posted by Jon Matcho
Just FYI, to get this to work in vBadvanced 2.0 I needed to set the Use Module Shell Template to NO. After that, everything worked great.

Thanks!

Okay, thanks for sharing this. :up:

GamTrak 07-12-2005 12:26 AM

Hi, I got the following error when modifying the template. Please advise.

The following error occurred when attempting to evaluate this template:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /usr26/home/gamtrak/public_html/GamTrakForum/includes/adminfunctions_template.php(3096) : eval()'d code on line 192

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.


Thanks

Edit: Now I can not load my main page. Please help.

http://www.gamtrak.com/GamTrakForum/index.php

Paul M 07-12-2005 12:46 AM

The usual reason is missing the </if> in step 2.

In fact, a couple of others have had this problem because they had other template mods installed - so the </if> that's part of the "find" in step 2 was not there, but they replaced the block anyway - and added the extra </if> in the replacement.

I did change the instructions to try and stop people tripping over this, but somewhere along the line the old instructions crept back in. I have reloaded the clearer instructions for you to try (sorry, I had to zip the text file due to the annoying new rule).

Paul M 07-12-2005 12:58 AM

Quote:

Originally Posted by GamTrak
Edit: Now I can not load my main page. Please help.

http://www.gamtrak.com/GamTrakForum/index.php

Hmm, okay - obviously you continued despite the warning.

My guess is you inserted an extra enf-if.

Try looking for this
Code:

<!-- Todays active users -->
</if>

and remove the hilighted </if>.

If that fails, PM me a copy of your forumhome template.

GamTrak 07-12-2005 01:00 AM

Hi, yes I messed up as I'm new at this. I'll send you the file now.

Thanks for your help as I'm in panic mode. hehe :D

NetRover 07-13-2005 10:58 PM

Hi there, I had this working fine but since upgrading to 3.0.7 my stats are blank unless I uncomment the 24hr rolling line.

When I first re-installed the hack it was working until 12.00 and then nothing even after an hour of members in and out.

I preferred it before the upgrade with the 24hr stats.

As I installed ok last time I can't think where things might have gone wrong. I've redone the forum home template and index.php but no luck yet.

hope you can help

Paul M 07-14-2005 01:13 AM

Sorry but I'm confused as to what your problem actually is.


Quote:

my stats are blank unless I uncomment the 24hr rolling line
and

Quote:

I preferred it before the upgrade with the 24hr stats
Seem to me to suggest you want, and have, the rolling 24 hr display ????

COBRAws 07-14-2005 03:36 AM

is there a way for just showing a number and not all members? What I want is to log all visits (members and guests) and show up a number, like:

Online the last 24Hrs: 848 users

sorry for the question.

Paul M 07-14-2005 05:40 AM

Edit the template to show what you want. However, this does not count guests.

derekivey 07-14-2005 03:10 PM

Great mod works fine for me :D

almqdad 07-14-2005 04:22 PM

installed without problem

thank you

COBRAws 07-14-2005 04:24 PM

Quote:

Originally Posted by Paul M
Edit the template to show what you want. However, this does not count guests.

thanks!

Paul M 07-14-2005 04:40 PM

Quote:

Originally Posted by COBRAws
thanks!

No problem !!

(now clicky the install link)

almqdad 07-15-2005 02:31 AM

after 12 hour

member on line was zero for quite along time

then it started to count

help please

Paul M 07-15-2005 04:48 AM

What version (of the hack) are you using ?

almqdad 07-15-2005 06:58 AM

Hello

I am using v2.20

Paul M 07-15-2005 07:26 AM

Quote:

Originally Posted by almqdad
Hello

I am using v2.20

Version 2.30 is the latest, please upgrade to that first. :)

ReZ 07-18-2005 09:35 AM

Thank you Paul for this hack!


All times are GMT. The time now is 07:10 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.02100 seconds
  • Memory Usage 1,840KB
  • 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_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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