vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Increase / Decrease Thread View counts (https://vborg.vbsupport.ru/showthread.php?t=133604)

dartho 12-08-2006 10:00 PM

Increase / Decrease Thread View counts
 
This hack will Increment or Decrement the Thread Views figures on a thread. UserIDs with permission to use the hack and the amount by which to inc / dec are specified in the AdminCP.

Useful if you wish to make a thread look more or less popular than it actually is. Inspired by the incredibly useful Bump Threads hack.

Instructions:
  1. Install Product
  2. Set options in "vBulletin Options", "Increment - Decrement Thread Views" in AdminCP.
  3. Click "Mark as Installed"

Also tested as working on 3.5.4 - should be ok on all 3.5.x
Also tested as working on 3.7 Beta 5 - should be ok on all 3.7.x

Trouble Shooting
If you are having issues with this (or other add-ones for that matter) try modifying the execution order of all plugins associated with this product from the default "5"
to "6"

Read post #19 if teh auto-template edits are not working for you.

Shazz 12-09-2006 08:00 PM

Forgot Attached zip?

dartho 12-09-2006 08:03 PM

Just adding screen shots - sheesh! some people :P

projectego 12-09-2006 09:28 PM

Nice idea. Thanks!

katilkuzu 12-09-2006 09:32 PM

reserved* nice idea...

Snake 12-09-2006 09:48 PM

Thanks. Not a bad idea! :)

dartho 12-10-2006 08:16 PM

Thanks - I find people like to think that their threads are popular, or if it is a sponsors thread it can make them think their message is getting out to more people ...

tei727 12-11-2006 04:03 PM

cheat

Biggles 12-11-2006 05:37 PM

Quote:

Originally Posted by tei727 (Post 1136424)
cheat

That short comment cracked me up ... and made my mind up for me on this one. I'm gunna cheat. Our leaders lie and cheat so why shouldn't we do the same? When they get their acts together then I will do the same. :D

Great idea. Thanks for the work you did in making this available. I'll let you know how my cheating goes. Hehe! :alien:

dartho 12-11-2006 07:15 PM

Quote:

Originally Posted by tei727 (Post 1136424)
cheat

I try :D

2 FN LOW 04-29-2007 06:49 PM

not working for me on the newest version of VB...installed product, changed the usergroup ID to 6 (Admin group) and i get no option to inc/dec views

dartho 04-30-2007 12:56 PM

Sorry, but I won't be able to look at this for a week or two, but will load up the latest version and check it out then...

zhabbo 04-30-2007 02:57 PM

Installed :)

2 FN LOW 04-30-2007 07:19 PM

i notice you say theres a template edit....

i didnt edit any template as i did not find any instructions to do so...

is the product suppose to change the template itself?

just wanted to clear that up incase im missing something here

dartho 05-22-2007 01:52 AM

I've just upgraded my test site to 3.6.7PL and this still seems to be working OK for me...
The plugin modifies the templates on the fly - this is good in that you don;t need to make template edits and if you uninstall the hack you don;t need to undo template edits. It is possible bad in that it can conflict with other hacks and not work.

I will put up instructions for you to manually make the template edits in the next couple days...

radarhunter 08-01-2007 01:40 PM

hey buddy i am on board 3.6.7 and it`s showing me this message
Quote:

Invalid Action Specified

radarhunter 08-01-2007 01:48 PM

Please make this to work for 3.6.7 also please

dartho 08-01-2007 09:37 PM

I'll have a look into it ...

dartho 08-03-2007 02:58 AM

I've tested under a 3.6.7PL1 board which has nothing but my own add-ons installed and it works fine.

You've possibly got other addons or have modified your templates which is causing issues.

You can manually modify the SHOWTHREAD template.
search for:
Code:

$vbphrase[remove_redirects]</option>
replace with
Code:

$vbphrase[remove_redirects]</option>
<option value="incviews">$vbphrase[inc_views]</option><option value="decviews">$vbphrase[dec_views]</option>

then search for:
Code:

$vbphrase[remove_redirects]</label></div>
replace with:
Code:

$vbphrase[remove_redirects]</label></div>
<div><label for="ao_inc"><input type="radio" name="do" id="ao_inc" value="incviews" />$vbphrase[inc_views]</label></div>
<div><label for="ao_dinc"><input type="radio" name="do" id="ao_dinc" value="decviews" />$vbphrase[dec_views]</label></div>

Once you've made the above changes, disable the "Inc / Dec Thread Views: Display Option" plugin which is meant to do these changes for you.

Just to recap - semi manual instructions are: Install product, Make template mods above, disable "Inc / Dec Thread Views: Display Option" plugin

I think that should do it...

Click "Mark as Installed" if it works for you

Meghwar 10-31-2007 04:33 PM

Quote:

Originally Posted by dartho (Post 1308684)
I've tested under a 3.6.7PL1 board which has nothing but my own add-ons installed and it works fine.

You've possibly got other addons or have modified your templates which is causing issues.

You can manually modify the SHOWTHREAD template.
search for:
Code:

$vbphrase[remove_redirects]</option>
replace with
Code:

$vbphrase[remove_redirects]</option>
<option value="incviews">$vbphrase[inc_views]</option><option value="decviews">$vbphrase[dec_views]</option>

then search for:
Code:

$vbphrase[remove_redirects]</label></div>
replace with:
Code:

$vbphrase[remove_redirects]</label></div>
<div><label for="ao_inc"><input type="radio" name="do" id="ao_inc" value="incviews" />$vbphrase[inc_views]</label></div>
<div><label for="ao_dinc"><input type="radio" name="do" id="ao_dinc" value="decviews" />$vbphrase[dec_views]</label></div>

Once you've made the above changes, disable the "Inc / Dec Thread Views: Display Option" plugin which is meant to do these changes for you.

Just to recap - semi manual instructions are: Install product, Make template mods above, disable "Inc / Dec Thread Views: Display Option" plugin

I think that should do it...

Click "Mark as Installed" if it works for you

Hi

i did install FORCE USERS TO READ A THREAD from VB.Org after that INC but am getting same "Invalid Action Specified" i did the MODS you enter here and disbale the plugin,,,,same

any idea...

thanx

dartho 10-31-2007 10:39 PM

does the error show when displaying a thread, or when attempting to inc the thread views?

Khalid-B 10-31-2007 11:09 PM

hello,
i installed this hack and fixed allowed ID,s in vboptions , i entered id,s like this,

x,y,z in box but there is no option for increase or discrease in thread tools .
Am i missing some thin? plz help

Thnaks

Meghwar 10-31-2007 11:23 PM

Quote:

Originally Posted by dartho (Post 1373080)
does the error show when displaying a thread, or when attempting to inc the thread views?

dartho:
you have to remember if we disable the product the Plugins will be disable too:

Inc / Dec Thread Views: Detect Action threadmanage_action_switch
Inc / Dec Thread Views: Display Option showthread_start
Inc /Dec Thread Views threadmanage_start
if you click EDIT on the plugin it will say:

This plugin is currently inactive due to the product Inc/Dec Thread Views being disabled.

it happen when attemt to increas/dic a thread
i have feeling its not compatible with 3.6.8


regards

Khalid-B 11-01-2007 05:36 AM

hello, dartho .
Can you please tell me why its not working .
I am using 3.6.8 version.

Thanks

dartho 11-01-2007 07:51 AM

Hi Meghwar,

I didn't mean to disable the product, only disable the Inc / Dec Thread Views: Display Option plugin (this is the plugin that does the template modifications on the fly) and then manually make the template updates as per post 19.

I have it running on my 3.6.8PL1 site - just tested it then.

@nosherwan9 - if your issues is only that the menu isn't appearing off of your thead tools - you may also need to follow the instructions as per post 19. Also test with only a single userid (yours!) in the "Users with permission to use" section of the admincp (i've only ever had my own ID in there).

If you are still stuck, and really want to use this - I could log onto your admincp and see if I can find what the issue is.

Khalid-B 11-01-2007 08:10 AM

hello,
Thanks for reply .

I followed post 19 already and its apear in thread tools but when i try to use thease optiions it says ,, Invalid Action Specified ,, and than i activated xml file than it says that i dont have permission to acess this page even i have entered my ID by using vboptions.

Any Idea ??

Thanks

Meghwar 11-01-2007 02:15 PM

Quote:

Originally Posted by dartho (Post 1373318)
Hi Meghwar,

I didn't mean to disable the product, only disable the Inc / Dec Thread Views: Display Option plugin (this is the plugin that does the template modifications on the fly) and then manually make the template updates as per post 19.

I have it running on my 3.6.8PL1 site - just tested it then.

@nosherwan9 - if your issues is only that the menu isn't appearing off of your thead tools - you may also need to follow the instructions as per post 19. Also test with only a single userid (yours!) in the "Users with permission to use" section of the admincp (i've only ever had my own ID in there).

If you are still stuck, and really want to use this - I could log onto your admincp and see if I can find what the issue is.

Thanx for the reply.

I did follow all information as #19 again, same error

Attached SS , if any thing wrong please stat again what is it .

you can see the attachments numbered 1 2 3 4 5 thats the steps I did :)

Install, add the MODS on the SHOWTHREAD, Disable the Plugins ONLY and not the Product, Forum MOD Inc-Dec Perform action, and finally the msg am getting.

thanx

dartho 11-01-2007 08:12 PM

Hi Meghwar,
Only one of the plugins should be disabled - the Inc / Dec Thread Views: Display Option one. See attached Screenshot

Meghwar 11-01-2007 09:28 PM

Quote:

Originally Posted by dartho (Post 1373739)
Hi Meghwar,
Only one of the plugins should be disabled - the Inc / Dec Thread Views: Display Option one. See attached Screenshot

hi

it didnt work :(

i did enable the options you mention on the SS but it didnt work !

inciarco 11-01-2007 10:15 PM

Excellent Hack, dartho!! :up:

Works With vBulletin 3.6.7. PL1, but qith a Little Bug on the Comma Separation; Comma Separation Don't Work, so When Choosing Various User Numbers, the Hack Don't Work, but When Choosing Just One It Does!! :( :confused:

Also Two Enhancements Could Be:

1. To Provide on the Options Control Panel Different Values to Increase and Decrease. ;)

2. To Provide Additional Option To Set How Many Views Desired To Increase or Decrease; (Perhaps a New Window/Template Should Open With That Additional Option, and That Could add the Flexibility this Hack Needs To Offer Complete Functionality). ;)

My Best Regards, Great Hack!! ;)

:)

Meghwar 11-02-2007 02:29 PM

I think we are dead now ...no answers or solutions :)

thanx

dartho 11-02-2007 08:07 PM

Sorry Meghwar - not sure why it doesn;t work on your site. I could log onto your admincp and see if I can work it out if you like?

dartho 11-03-2007 02:19 AM

I've managed to fix Meghwar's issue with this addon. There was a possible conflict with another plugin/addon so I changed the execution order of the plugins from 5 to 6.

I'll look at the reported issue of multiple userid's no being accepted soon.

Thanks

Meghwar 11-03-2007 03:36 AM

I realy would like to thank dartho for his effort and spending time on my site fix the error we faced.

A coder to be worked with:)

God bless you all

and thenx again dartho

regards

Me and My team

Khalid-B 11-03-2007 09:38 AM

hi.

I tried a lot but its not work for me at 3.6.8 so can u check please.
let me know if u can and i will pm u with login details.

Thanks

dartho 11-03-2007 11:16 AM

all sorted :up:

momo2 11-03-2007 03:59 PM

So does this hack work or not ?

dartho 11-03-2007 07:42 PM

yes, it works

nickypoooo 11-05-2007 10:32 PM

Great mod, thank you.
I was wondering if someone know the code to add Thread View counts to forumhome in addition to posts counts?

Thank you.

LouiseDM 11-06-2007 12:15 AM

works fine with (vBulletin 3.6.8 Patch Level 2) :)


All times are GMT. The time now is 12:52 PM.

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.01558 seconds
  • Memory Usage 1,820KB
  • 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
  • (8)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete