PDA

View Full Version : How to make the "Thread View Counter" increase by TWO


Gripi
06-01-2012, 09:44 AM
Hi..

we know that the Thread View Counter is increase by ONE, how to make the Thread View Counter increase by TWO or Three ?

could someone help me, thanks alot.

--------------- Added 1338549359 at 1338549359 ---------------

Or like this will be very good..

IF the thread is inside the SubForum ID 5, then show all the Thread View Counter x 2, so the data still real, but only change the number when view to Member.

some plugin like this maybe?

$threadviews = $threadviews + 1000; <- just dont know this is the correct function and where to put it, please help.

Gripi
06-04-2012, 06:24 AM
anyone could help?

Kraxell
06-04-2012, 08:17 AM
Does i understand right:
You want to fake the thread-view-counter?

Lynne
06-04-2012, 01:54 PM
If you want it multiplied by 2, then:

$threadviews = $threadviews *2;

Gripi
06-05-2012, 05:38 PM
Does i understand right:
You want to fake the thread-view-counter?

yes.. that is correct.. like this screenshot:

http://img99.imageshack.us/img99/3239/multisa.png

If you want it multiplied by 2, then:

$threadviews = $threadviews *2;

could you please tell me where to put this?

i already try to put it into plugin in forumdisplay_complete, forumdisplay_start, forumbit_display, threadbit_display, threaddata_start, just wont work.

thanks

Lynne
06-05-2012, 10:24 PM
You are asking in the vb4 forum, but showing a vb3 forum. So, is this for vb4 or vb3? (Have you looked up the hook fetch_foruminfo in the files? See what the actual variable name is there and try it.)

Gripi
06-06-2012, 03:47 AM
hi.. sorry.. this problem is for vb4

(Have you looked up the hook fetch_foruminfo in the files? See what the actual variable name is there and try it.)

i'm dont understand about this.. what is "hook fetch_foruminfo" in the files for the variable name ?

i already try to put this:

$threadviews = $threadviews *2;

into the fetch_foruminfo, still dont work.

i put this also dont work:

$pageinfo_views = $pageinfo_views *2;

Lynne
06-06-2012, 04:12 PM
fetch_foruminfo is a hook - they are the things you select when creating a plugin - you need to select a hook location.

But, I missread something and I think you want the hook location threadbit_display. If you search your files for that, you'll find it in forumdisplay.php and that the name of the variable is $thread and that it should be $thread['views']