Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-04-2002, 11:11 AM
meteore meteore is offline
 
Join Date: Jun 2002
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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:
Reply With Quote
  #2  
Old 08-04-2002, 11:16 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 08-04-2002, 05:26 PM
meteore meteore is offline
 
Join Date: Jun 2002
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx guy i am gonna search for it
Reply With Quote
  #4  
Old 08-04-2002, 05:33 PM
meteore meteore is offline
 
Join Date: Jun 2002
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 08-05-2002, 10:04 AM
meteore meteore is offline
 
Join Date: Jun 2002
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 08-05-2002, 03:27 PM
meteore meteore is offline
 
Join Date: Jun 2002
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:'( nobody to help me ?
Reply With Quote
  #7  
Old 08-05-2002, 09:17 PM
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Location: England
Posts: 489
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

See below.
Reply With Quote
  #8  
Old 08-05-2002, 09:29 PM
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Location: England
Posts: 489
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 08-05-2002, 09:30 PM
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Location: England
Posts: 489
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

"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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:59 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.04016 seconds
  • Memory Usage 2,243KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete