![]() |
Cool hack, thanks!
|
Very good hack. Running well on my board.
|
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).
|
Assuming I have understood you correctly, remember it's timezone dependant - are the admin account and the test account using the same timezone settings ?
|
Probably not. But shouldn't it still have atleast 1 person if the test account was logged in?
|
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 |
Quote:
(vBulletin Options > Forums Home Page Options > Display Logged in Users) |
Nope it's On, if I turn it off i get this > http://www.exchangeuk.co.uk/e/
Nothing |
Quote:
|
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. |
Quote:
|
what's the latest version of onlinetoday.php? is it just 2.0? how is it different than the previous version?
|
Quote:
To update it to 2.20 change this ; PHP Code:
PHP Code:
|
Quote:
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.. |
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 ## // |
Quote:
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. :) |
Quote:
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 |
While attempting to add this on my forum, I got the error message: "fatal Error". Any idea why?
|
Quote:
|
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 |
Quote:
|
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! |
Quote:
|
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 |
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). |
Quote:
My guess is you inserted an extra enf-if. Try looking for this Code:
<!-- Todays active users --> If that fails, PM me a copy of your forumhome template. |
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 |
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 |
Sorry but I'm confused as to what your problem actually is.
Quote:
Quote:
|
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. |
Edit the template to show what you want. However, this does not count guests.
|
Great mod works fine for me :D
|
installed without problem
thank you |
Quote:
|
|
after 12 hour
member on line was zero for quite along time then it started to count help please |
What version (of the hack) are you using ?
|
Hello
I am using v2.20 |
Quote:
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|