vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   A hack which count every posts at the top of a page (https://vborg.vbsupport.ru/showthread.php?t=41890)

meteore 08-04-2002 10:11 AM

A hack which count every posts at the top of a page
 
Could someone do a hack which disable users to choose the number of posts to show per page and set it at the same number for everyone, and also which count every post at the top of a page and shows the 5 members with the most of top page's post on the forumhome (this a statistik that peoples ask me on my forum).

I don't know if it's easy understanding but if you don't just ask and i'll explain my request.

Thx in advance :banana:

Xenon 08-04-2002 10:16 AM

in your admin options
go to thread display options there you'll find this:
User Settable Maximum Posts per Page
If you would like to allow the user to set their own maximum posts per thread then give the options seperated by commas. Leave the field blank to force them to use the MAXPOSTS setting above this option. ex. 10,20,30,40


so leave it just blank ;)


hmm, don't sure i understood everything, but search for a statistik panel hack in the release forum, i think there is such a hack ;)

meteore 08-04-2002 04:26 PM

thx guy i am gonna search for it

meteore 08-04-2002 04:33 PM

i didnt find it...

i explain what i am searching for:

some guys on my forum ask me for post at top of a page statistic.
it means a statistic that counts for each user the posts which are at the top of a page in a thread.
and then i'd like to show the statistik on the forumhome like for the top 10 posters hack

meteore 08-05-2002 09:04 AM

Quote:

Originally posted by Xenon
in your admin options
go to thread display options there you'll find this:
User Settable Maximum Posts per Page
If you would like to allow the user to set their own maximum posts per thread then give the options seperated by commas. Leave the field blank to force them to use the MAXPOSTS setting above this option. ex. 10,20,30,40


so leave it just blank ;)


hmm, don't sure i understood everything, but search for a statistik panel hack in the release forum, i think there is such a hack ;)

yes but i cant set up a fixed one, it just fixs a maximum.
i would like the number to be the same on every page

meteore 08-05-2002 02:27 PM

:'( nobody to help me ?

Tim Wheatley 08-05-2002 08:17 PM

See below.

Tim Wheatley 08-05-2002 08:29 PM

Infact here you go. PLEASE BACKUP because I really don't consider myself a hacker and I don't want you to mess your board up:

In template... User Option Templates > modifyoptions >

Remove:
Code:

<tr>
        <td bgcolor="{secondaltcolor}"><normalfont><b>Default Posts per Thread:</b></normalfont><br>
        <smallfont>Number of posts that are shown on one page of a thread.</smallfont></td>
        <td bgcolor="{secondaltcolor}"><smallfont>
        <select name="umaxposts">
                <option value="-1" $postsdefaultselected>Use forum default</option>
                $maxpostsoptions
        </select></smallfont></td>
</tr>

That will stop the users from changing your posts per page setting.

Then go to the VB Admin panel > VBulletin Options > Thread display options >

In the 'User Settable Maximum Posts per Page' box, only put in the number you want to be available. eg: '40' = 40 posts per page.

Next enter the following sql query into your database:
Code:

UPDATE user SET maxposts=40;
I *think* that's right, but obviously change 40 to what you want per page.

Tim Wheatley 08-05-2002 08:30 PM

"which count every post at the top of a page and shows the 5 members with the most of top page's post on the forumhome (this a statistik that peoples ask me on my forum)." - This I can't help with though - sorry.


All times are GMT. The time now is 06:20 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.02494 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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