PDA

View Full Version : Switching Posts to Show Perpage within Thread


AnhTuanCool
10-28-2004, 10:00 PM
Switch Posts to Show Perpage within Thread Hacks
Tested on vb 3.0.3

Brief of Description:
This hack adds an option for users to switch between options to show that thread with specific number of posts perpage. This numbers can be specify in ACP, and each time users got in a long thread, and as default, there are just 10 posts perpage and users have to switch between page over over, instead of just choose an option to view a whole thread in one page or two. :)

This hack also prevent bad people want to flood your forum by adding big number of posts to show because the options are all specified by the admin in vb Options.

Check out screenshot and instruction file to install this hack, and if you want to be informed any update, clik INSTALL then. Thank you and have fun ;)

Note: To set options for this hack, you can look up in ACP > vB Options > Thread Display Options (showthread) > User-Settable Maximum Displayed Posts

HiDeo
10-29-2004, 09:51 PM
Nice job, thanks

/me clicks install

AnhTuanCool
10-30-2004, 03:50 AM
Yay, thanks ;)

vBTotal
10-30-2004, 04:00 AM
w0ot thanks :)

*installs*

Lionel
10-30-2004, 01:07 PM
can that be installed under Thread Tools? I ran out of space in that navbar (Got other hacks installed)

tomshawk
10-30-2004, 04:09 PM
Sweet, Thanks for this

*clicks install *

AnhTuanCool
10-30-2004, 05:08 PM
can that be installed under Thread Tools? I ran out of space in that navbar (Got other hacks installed)

Yes you can, after you done the main installing, do the following to make in under Thread Tools

Open template SHOWTHREAD
Find

<td class="vbmenu_control" id="postshow">
<a href="#goto_postshow">Posts Show Per Page</a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("postshow"); </script></if>
</td>

Erase it
Find:

<if condition="$show['adminoptions']">

Replace with:

<tr>
<td class="vbmenu_control" id="postshow">
<a href="#goto_postshow">Posts Show Per Page</a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("postshow"); </script></if>
</td>
</tr>
<if condition="$show['adminoptions']">


Have fun ;)

Lionel
10-30-2004, 05:59 PM
thanks