The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to make the "Thread View Counter" increase by TWO
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 [DATE]1338549359[/DATE] at [TIME]1338549359[/TIME] --------------- 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. |
#2
|
|||
|
|||
anyone could help?
|
#3
|
||||
|
||||
Does i understand right:
You want to fake the thread-view-counter? |
#4
|
||||
|
||||
If you want it multiplied by 2, then:
$threadviews = $threadviews *2; |
#5
|
|||
|
|||
Quote:
Quote:
i already try to put it into plugin in forumdisplay_complete, forumdisplay_start, forumbit_display, threadbit_display, threaddata_start, just wont work. thanks |
#6
|
||||
|
||||
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.)
|
#7
|
|||
|
|||
hi.. sorry.. this problem is for vb4
Quote:
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; |
#8
|
||||
|
||||
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'] |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|