Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 29 Oct 2010, 10:20
DamasGate DamasGate is offline
 
Join Date: Aug 2003
How to change post number on thread page?

Hello,

"In show thread page"
How i can make the default post number per page for "guests" 5,

But still 20 posts for members per page?

Thanks for help

Last edited by DamasGate; 30 Oct 2010 at 06:38.
Reply With Quote
  #2  
Old 29 Oct 2010, 14:52
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
$vbulletin->options['maxposts'] is the variable you want to change. So, probably something like:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Change X to the usergroupid. Try some global hook location.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 29 Oct 2010, 19:20
DamasGate DamasGate is offline
 
Join Date: Aug 2003
Thank you Lynne,

But i did not know how to do that, any steps how to do please?

Where to add this line?

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thanks again
Reply With Quote
  #4  
Old 29 Oct 2010, 23:43
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You'd have to create a plugin with that code. Like I said, you'd probably want to try a global_* hook location, but since I haven't tried this, I can't really say exactly which to use.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #5  
Old 30 Oct 2010, 06:41
DamasGate DamasGate is offline
 
Join Date: Aug 2003
I try add it to all global_x in plugin manager, Not work

This what i need. "In show thread page"

Default post number per page for "guests" 5,
Default post number per page for "members" 10,

Thank you again
Reply With Quote
  #6  
Old 30 Oct 2010, 15:11
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Exactly what did you put in the plugin (you cannot put exactly what I wrote, as I said)? And did you turn the plugin on? Try a showthread_* plugin if the others aren't working.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #7  
Old 30 Oct 2010, 17:38
DamasGate DamasGate is offline
 
Join Date: Aug 2003
I put this line exactly


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

2- Turned the plugin on
3- Name: Only 5 post for guests
4-order = 5
5- Hook Location, i try all global_x AND all showthread_x And All postbit_x

Not working for me

I really very appreciate your patience and cooperation.
Reply With Quote
  #8  
Old 30 Oct 2010, 18:24
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
nvm

Last edited by kh99; 30 Oct 2010 at 18:33.
Reply With Quote
  #9  
Old 30 Oct 2010, 19:43
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Argh!!! It's $vbulletin->userinfo, not $vbulletin->bbuserinfo. This works:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

{{{Lynne hangs head in shame...}}}
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #10  
Old 30 Oct 2010, 21:59
DamasGate DamasGate is offline
 
Join Date: Aug 2003
Greeeeeeeeeeeeeat,

Working very good, work like charm NOW.

Thanks a lot

Last edited by DamasGate; 30 Oct 2010 at 22:46. Reason: Auto-Merged DoublePost
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Posting Features Change Number of Post Icon Columns on New thread / Post Reply markbolyard vBulletin 3.7 Template Modifications 10 28 Mar 2009 21:14



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 09:13.

Layout Options | Width: Wide Color: