vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Switching Posts to Show Perpage within Thread (https://vborg.vbsupport.ru/showthread.php?t=71146)

AnhTuanCool 10-28-2004 10:00 PM

Switching Posts to Show Perpage within Thread
 
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

Quote:

Originally Posted by Lionel
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
Code:

                <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:
Code:

        <if condition="$show['adminoptions']">
Replace with:
Code:

        <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


All times are GMT. The time now is 10:51 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.01445 seconds
  • Memory Usage 1,726KB
  • 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_code_printable
  • (1)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