Increase / Decrease Thread View counts - code

Transformer

New Member
http://www.vbulletin.org/forum/printthread.php?t=133604&pp=100
I need this code:
dartho 03 Aug 2007 04:58
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:

Codedisplayerror: (Update license status)

You cannot view code until you prove your license status


replace with

Codedisplayerror: (Update license status)

You cannot view code until you prove your license status


then search for:

Codedisplayerror: (Update license status)

You cannot view code until you prove your license status


replace with:

Codedisplayerror: (Update license status)

You cannot view code until you prove your license status


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



PS: I got the product xml here already. I only miss this code.
 
You can manually modify the SHOWTHREAD template.
search for:
Code:
Code:
$vbphrase[remove_redirects]</option>
replace with
Code:
Code:
$vbphrase[remove_redirects]</option>
<option value="incviews">$vbphrase[inc_views]</option><option value="decviews">$vbphrase[dec_views]</option>
then search for:
Code:
Code:
$vbphrase[remove_redirects]</label></div>
replace with:
Code:
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
 
Back
Top