vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to make the "Thread View Counter" increase by TWO (https://vborg.vbsupport.ru/showthread.php?t=283791)

Gripi 06-01-2012 08:44 AM

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.

Gripi 06-04-2012 05:24 AM

anyone could help?

Kraxell 06-04-2012 07:17 AM

Does i understand right:
You want to fake the thread-view-counter?

Lynne 06-04-2012 12:54 PM

If you want it multiplied by 2, then:

$threadviews = $threadviews *2;

Gripi 06-05-2012 04:38 PM

Quote:

Originally Posted by Kraxell (Post 2336397)
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

Quote:

Originally Posted by Lynne (Post 2336485)
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 09: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 02:47 AM

hi.. sorry.. this problem is for vb4

Quote:

(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 03: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']


All times are GMT. The time now is 10:31 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
  • Page Generation 0.01837 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete