![]() |
Quote:
|
Quote:
|
Quote:
Thanks Paul. Goes to UNCOMMENT. :-p -X |
Ok I uncomented the line like you said. I removed the 2 slahses at the begining of the line. It STILL reset.
Any more ideas? -X |
Post the first 10 lines of the hack [from your index.php] so I can see what you have actually done.
|
Hi Paul,
This hack was very easy and quick to install and works a treat! Thank you :) |
Quote:
PHP Code:
|
Quote:
|
Quote:
|
Are you sure you haven't put the code in twice or something (or installed the plugin more than once) ?
The last line in what you posted is "$cutoff = TIMENOW - 86400" which quite simply is the current time - 86400 seconds (24 hours). There is simply no way it can do anything else. |
I seem to be having a problem...
If I am logged in as an admin I see 6 people have visited today... If I log out and view it as a guest... just 3 people have visited today... What is going on here? I have reuploaded the xmp file and recopied the template code and it still does it. Regular members also see 3 people, while I see 6 |
Perhaps the other three members are in invisible mode which would explain why you can't see them if you've viewing as a guest? :)
|
Quote:
And to the post baove, when you are logged in as an admin, check to see if the names that are disapearing have an * next to them. |
Quote:
|
Ok it was timezones :)
Sorry its a new board and I was the first user. I guess I was the only one stuck on GMT and then I changed it to GMT -6 after that but didnt catch my own profile haha oops |
Quote:
|
it is very nice hack i have installed but one thing i think would look better is where it says total users visted today the bottom maybe it would be better suited if changed to total members visited today, because if you think lot more guests visit therefore that cannot be totol users.
if its ok with you paul i have edited the forumhome template. |
You can edit the text to what you like. :)
|
Thanks very much for this hack. Couldn't get easier than this to install. :)
|
installed and working great thanks.
1 question.. is there anything i can change in the code to make the box collapsed as default ? thanks :) |
Code optimization (?) suggest:
forumhome_complete PHP Code:
|
Why change from start to complete?
When I use that code it still shows the number of people that vistsed today correctly, but it only lists me by username and no one else. Ex. Total Users Visited Today: 121 and I am the only one listed, no one else. |
PHP Code:
|
Quote:
|
Quote:
I change the code in the plugin to: Code:
FROM " . TABLE_PREFIX . "user as user There must be an easy way to set the usergroups in order 6,7,9,2,1 ?????????????? |
Quote:
I guess it also depends on what you mean by 'optimization' - using those functions may reduce the code in the hack slightly, but the functions themselves have a lot of code in them, much of which is not necessary to this hack. It is also generic code I use elsewhere, and would require me to load things like functions_bigthree.php. So, while I thank you for your suggestion - I don't intend to make any changes atm - but I will look at it to see if any of your changes/ideas would suit me in the future, especially when I convert my hacks from plugins to products (at which point I will phrase them as well) - in fact you are the second person to use a trick which I indend to look at to avoid the template edit. :up: @BrentWilson - while you are free to use the above suggestion - I will not support it, as it's not my code - sorry. |
Quote:
|
Quote:
I am still using yours. |
Quote:
|
Quote:
|
Great hack - could you tell me how to remove the link to the users so that there name only appears, but does not give a link to that member?
|
Quote:
The way I did it is close to how vBulletin itself does it, and I assume that way is optimized for Performance, although it might have more Code. But on the other Hand, the Query gets a Bit lighter as it does not invlove joins. Although there is less code to eval(). But as said, I am not sure if this has an impact on Performance - it was just a thought :) |
Kirby - do you happen to know the answer to my question above regarding providing only usernames & no links to the users who have visited? thx
|
That's easy - just edit the Plugin Code so it does not create Links.
|
I know it's here in the index.php, but how exactly do I change it - thx for your help:
$whotoday .= "<a href='member.php?u=$today[userid]' title='$wrdate' >"; if ($today['visible'] == 2) { $whotoday .= $today['opentag'].$today['username'].$today['closetag']."</a>*, "; } else { $whotoday .= $today['opentag'].$today['username'].$today['closetag']."</a>, "; |
Why are you looking in idex.php to modify a plugin?
Open your Plugin Manager and remopve the hyperlink code around the name |
Quote:
Quote:
from my old asp-world :nervous: : Code:
if usergroupid= 6 then php is not the best part of me but I will learn! What would you do without our crazy suggestions? :alien: |
Quote:
|
Quote:
|
Quote:
https://vborg.vbsupport.ru/showthrea...threadid=71533 |
All times are GMT. The time now is 08:06 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:
|