Custom User Posts- and Topics-Per-Page MOD

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Extensions Robot
Extensions Robot
Extensions Robot
Posts: 29332
Joined: Sat Aug 16, 2003 7:36 am

Custom User Posts- and Topics-Per-Page MOD

Post by Extensions Robot »

Modification name: Custom User Posts- and Topics-Per-Page MOD
Author: KingAl
Modification description: A very simple mod allowing users to customise the number of posts and topics that appear per page to a given user.
Modification version: 1.0.1
Tested on phpBB version: 3.0.7-pl1

Download file: userperpage101.zip
File size: 33.87 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extension Customisations Team may not be able to provide support.

-->Modification support<--
Last edited by Extensions Robot on Mon Sep 19, 2022 7:33 pm, edited 13 times in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 18411
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón

Custom User Posts- and Topics-Per-Page MOD

Post by DavidIQ »

Modification validated/released

Notes:
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
KingAl
Registered User
Posts: 6
Joined: Sun Nov 08, 2009 3:55 pm

Custom User Posts- and Topics-Per-Page MOD

Post by KingAl »

Well, feel free to ask any questions.
KingAl
Registered User
Posts: 6
Joined: Sun Nov 08, 2009 3:55 pm

Re: Custom User Posts- and Topics-Per-Page MOD

Post by KingAl »

I've just made one bugfix - the mod now checks if 'ADMIN_START' is defined so that when viewing Post Settings through the ACP an admin's personal settings don't override the board's default.
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Re: Custom User Posts- and Topics-Per-Page MOD

Post by Peter77sx »

Simple enough install. works great, thanks :)
KingAl wrote:I've just made one bugfix - the mod now checks if 'ADMIN_START' is defined so that when viewing Post Settings through the ACP an admin's personal settings don't override the board's default.

Show the fix please?
KingAl
Registered User
Posts: 6
Joined: Sun Nov 08, 2009 3:55 pm

Re: Custom User Posts- and Topics-Per-Page MOD

Post by KingAl »

I'm glad you like it!

Code: Select all

if($user->data['is_registered'])
becomes

Code: Select all

if($user->data['is_registered'] && !defined('ADMIN_START'))
I've also changed

Code: Select all

$config['posts_per_page'] = $user->profile_fields['pf_posts_per_page'];
to

Code: Select all

$config['posts_per_page'] = ($user->profile_fields['pf_posts_per_page'] > 0 ? (int) $user->profile_fields['pf_posts_per_page'] :  $config['posts_per_page']);
etc., and the same for topics - just making sure the values are integers and greater than zero - but that's only really necessary if the custom fields haven't been set up correctly. Hopefully the updates'll be approved soon.
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Custom User Posts- and Topics-Per-Page MOD

Post by Oyabun1 »

Thanks for this.

I like it because it was a really simple install that had clear instructions and didn't require file edits, and it provides more options for members who want to adjust their display but doesn't bother those who don't.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
KingAl
Registered User
Posts: 6
Joined: Sun Nov 08, 2009 3:55 pm

Re: Custom User Posts- and Topics-Per-Page MOD

Post by KingAl »

Yeah, I wanted to keep the forums I administrate as vanilla as possible while still allowing extra functionality, and figured this result might be helpful to other people - hence the no-edits setup. Not dissing the existing mod, my needs/wants were just different.

(Incidentally, thanks to the MOD validation team for bearing with me while I made as many screw-ups in 4 functional lines of code as is humanly possible.)
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 18411
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón

Custom User Posts- and Topics-Per-Page MOD

Post by DavidIQ »

MOD Updated to version 1.0.1
See first post for Download Link
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
NissanNut
Registered User
Posts: 60
Joined: Mon Jan 26, 2009 11:39 pm

Re: Custom User Posts- and Topics-Per-Page MOD

Post by NissanNut »

I just added this mod but cannot get the changed value of 20 to take effect. Did I miss something? I see the box for the new value in the UCP. I entered 20, I submit. When viewing 17 page threads. They are the same length. Want to change the post per page value per user.

I purged the cache.
NissanNut
Registered User
Posts: 60
Joined: Mon Jan 26, 2009 11:39 pm

Re: Custom User Posts- and Topics-Per-Page MOD

Post by NissanNut »

I am still on 3.05 is that why this does not work for me?
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Custom User Posts- and Topics-Per-Page MOD

Post by Oyabun1 »

I think this should also work for 3.0.5.

Did you create custom profile fields for both posts per page and topics per page?
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
NissanNut
Registered User
Posts: 60
Joined: Mon Jan 26, 2009 11:39 pm

Re: Custom User Posts- and Topics-Per-Page MOD

Post by NissanNut »

I just tried on 3.06 and it did not work either.

I did not make 2, just post per page. let ,me do that.

Thanks,
NissanNut
Registered User
Posts: 60
Joined: Mon Jan 26, 2009 11:39 pm

Re: Custom User Posts- and Topics-Per-Page MOD

Post by NissanNut »

OK it works now. I had post instead of posts. Doh!!!

Awesome mod!!!!! Thanks,
Raven78uk
Registered User
Posts: 7
Joined: Fri Feb 05, 2010 3:45 pm

Re: Custom User Posts- and Topics-Per-Page MOD

Post by Raven78uk »

Works straight out of the box !!!
Marvelous Mod.
Thanx

Return to “[3.0.x] MOD Database Releases”