![]() |
Views Don't Count If Done By Guest Or Thread Starter Unless Replying
Views Don't Count If Done By Guest Or Thread Starter Unless Replying by 006
What this hack does: This hack basically keeps your thread views down to only the legit views, and does not add a vew for each refresh unless you are viewing somebody elses thread and are not the last poster in the thread. When a guest views a thread this also does not add a view unless the guest is allowed to reply and does so. In that case one view will be added. This hack makes it easier to tell if somebody has viewed your threads, because after posting, even if you go look at your thread to make sure it "looks right," the view count will still be 0. Your own views will not count. Benefits of this hack: The main reason I made this hack was because of the Lesane "Store Hack." If you use the store hack, then you know that points can be awarded to people after so many views of their thread. Well, this hack creates the following variables when calculating the views for each thread:
by 006 INSTALLATION: It shouldn't take any more than 5 minutes to install. (3 steps, 2 file edits) It has been tested and works fine in 2.2.9 Any questions? Feel free to ask in this thread. ;) If you use this hack, please click "INSTALL." Thanks |
Will check it out. Sounds good. ;)
|
I found a bug in this. It works for a while and then stops. For no reason that I could see....
I posted a thread here if anyone knows what I should do. :ermm: https://vborg.vbsupport.ru/showthrea...threadid=49874 |
Interesting concept :)
- miSt |
Well this is now working fine now. I found the problem.
|
Quote:
|
Well, if someone DID have it installed, I just removed all the elseif lines where it referred to $lastposter['userid'] in the THIRD step, since that caused problems.
I don't think anyone installed it though since it didn't work. And yes, I have updated the first post. :) |
Well, I had it installed but had to uninstall it when you reported the problem with it. I have re-installed it and it seems to be working fine so far. Good job! ;)
Edit: I was just looking at the file and the $lastposter['userid'] is still in there. Is this how it is supposed to be? PHP Code:
|
Found the problem. I renamed it. Try clearing your history and then opening it, or opening it by "SHIFT+Clicking."
The line to remove in the first part of step 3 looks like this: PHP Code:
I also changed the last line. Just try opening the install file again and see if it is different. There are NO changes to newreply.php Hope that works. :) |
Ok, got it now. I will make the changes and let you know how it goes. Thank you, sir. ;)
|
All times are GMT. The time now is 06:09 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:
|