![]() |
Quote:
Code:
<!-- Todays active users --> |
Quote:
|
Quote:
|
What about...
Where it says: Members That Have Visited Today - Total: 75 I want: Total That Have Visited Today - Members: 75 Guests: ?? I want to display the total guests aswell |
That would be very difficult to do.
|
Added and simple thx!
|
thanks man :nervous:
|
Quote:
|
Quote:
|
see attachment :disappointed: thank you
|
Quote:
hehehe :D Silly me, I added two more lines as I read it "comment this line" I will check it tonight Thanks for quick reply Paul |
Quote:
|
Hmm. The who's online today, when I install this, is blank.
I am sure I installed it right, as I have used the previous versions, and they have worked glitch free.... |
Quote:
Check your edits again. :) |
Thanks, Paul!!
Works great :-) And yes, SIMPLE is indeed way better than the other hacks I've seen that involve tampering with the database itself or requiring so many other modifications/changes. Your hack also makes for better compatibility with regular vbulletin 3.x.x releases. So thanks again! :-) |
Quote:
|
Quote:
|
Very nice hack, Paul M. Just one thing is missing for me - number of guests who have visited. Is it possible to add this info into the hack ? Thank you again.
|
Quote:
|
Works great, thanks! :)
|
Oh GREAT!! this is cool, I've been looking for this.
thanks Ericgtr. I've installed it.. however i have some minor issue. I've attached a pic...whats happenning is that 1. the FONT size of members is bigger compared to other locations.. 2. On click on "membername" the url takes me to root/members instead of root/forums/member. any suggestions how i can fix this!? thanks |
Quote:
But Eric i got another issue! The Module shows online visitors "today" starting at midnight but Paul's original mod shows users in last 24 hours on my fourmshome. :ermm: I thought, it wud show the number of users on cmps page as forumshomepage which is users visited in last 24 hrs.??!?! isnt that right?? |
Quote:
PHP Code:
|
thanks Paul.
|
Easy installation and great instructions. Thanks! :)
|
works fine, thx paul :)
|
I have uploaded v1.35 today which has a very minor bugfix - this will not affect anyone who already has this working - but I think it may cure the odd case (in vb versions prior to 3.0.3) where the vbdate function would not work (and hence people switched to the rolling 24 hours display).
|
nice
|
Quote:
|
Try:
<if condition="THIS_SCRIPT=='index'> ob_start(); include('whos.online.today.php'); ob_end_clean(); </if> In case people are wondering where your quote came from it was: https://vborg.vbsupport.ru/showpost....&postcount=110 |
You're saying that the code we inserted into index.php gets launched and processed all the time because a template called "phpinclude_start" (present in most templates on the board) points to code in index.php and so is referenced in showthread and other various templates on the board? So the proposed conditional tells phpinclude_start to only call the todays active users code from index.php when and if the template calling is the forum home but otherwise to ignore that code in index.php? (sorry, newbie, so a bit lost here).
|
To learn a bit more about phpinclude_start have a look at these links:
https://vborg.vbsupport.ru/showthread.php?t=71313 http://www.vbulletin.com/docs/html/m...pinclude_start http://www.vbulletin.com/forum/showt...pinclude_start The reason Mosaicvb is using phpinclude_start is because he doesn't want to edit/hack his index.php file which voids the Jelsoft User Support eligability. So he created a PHP script (whos.online.today.php) that will do the same job using the phpinclude_start template to create the HTML and insert the data on the forum home page. However, since the phpinclude_start template loads with every page a conditional is used to run the whos.online.today.php file only when the index.php page is loaded. |
Quote:
Just to be clear and repeat what MickDoneDee is saying - this hack edits index.php, and the code only runs when you are on the forum homepage. However, Mosaicvb decided that they didn't want to run it this way and built themselves a seperate php file with the hack code in it, and then added code to the phpinclude_start template to run his file (see here). The problem being that this means it gets run on every vb Page that you view, not just the forumhome page. I do not support this method of running it. |
oh ok, thanks Paul!!
Yeah, I run it in the default method except for uncommenting for rolling 24 hours because of international clientele ;-) |
Great mod. What kind of performance hit does this cause?
-V |
Quote:
|
Paul,
This is nice and simple and works great, it is by far the easiest 'Last Visited' hack to install (1 php file alteration, 1 template alteration and an optional SQL query) have available atm by far, I know I have tried them all at one stage or another. Also works without a hitch with v 3.0.7 and the optional query does speed up page load time. Thanks for the painless install. jd :) |
excellent and simple to use thank you
|
Quote:
|
great work, very simple! just take one minute to hacks this mod, thank again !
|
All times are GMT. The time now is 07:33 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|