solved where to change a forum setting please?

Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
Cant' seem to find where I can change this:
In my jrForum module, there's a setting where I can choose how many posts show per page of a forum discussion. the drop down options have choices up to 50 posts per page, but I want to allow for more.
Where can I add choices/options for choosing 60 or 70 forum posts per page instead of the limit of 50?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 06/08/17 12:28:22AM
paul
@paul
8 years ago
4,335 posts
The Forum module only goes to 50 by default, and you don't want to be modifying a core module yourself to increase this, so it'll have to be done at a template level.
Edit your Forum item_detail.tpl template. Look for the configuration variable $_conf.jrForum_post_pagebreak and change it to an absolute value. In the above template, change -
        {if $_conf.jrForum_post_pagebreak > 0 && $_conf.jrForum_post_pagebreak < $topic.forum_post_count && $info.this_page <= $info.total_pages}
            {jrCore_include module="jrCore" template="list_pager.tpl"}
        {/if}
for
        {if 70 < $topic.forum_post_count && $info.this_page <= $info.total_pages}
            {jrCore_include module="jrCore" template="list_pager.tpl"}
        {/if}

hth


--
Paul Asher - JR Developer and System Import Specialist
Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
Paul, I did this, but there's an issue:
After applying and doing integ check/cache etc... in my jrForum module there's still the setting where the choices only go up to 50, or else I have to choose "no topic pagination"(default).
So, if i choose 50 that seems to override your ' if 70 ' code fix, and if I choose no pagination it also takes priority and will show a page of say all 300 forum posts (also no good).

-i should mention that I also have a jrForum item_detail tmeplate in my skin, but it only consists of a short snip of code that hides profile sidebar for the 'Forum Profile'. ...so I didn't touch that template.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 03/04/17 09:46:43AM
paul
@paul
8 years ago
4,335 posts
It might be that the config setting is being used in other templates as well. Show me where you are seeing this and I'll take a look.


--
Paul Asher - JR Developer and System Import Specialist
Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
Ok, for example in this Forum thread which has a total of 66 posts:
http://fotmd.com/forums/forum/off-topic-discussions/1504/lets-have-some-fun-and-laughs

Right now I have the jrForum setting to "no topic pagination" and you can see the original thread post at the very bottom of the thread page- the post by Rod Westerfield.
If I instead set the jrForum setting to 50 per page, you'll see that it cuts off the oldest 16 posts (limiting what shows on the page to 50 posts)- but it does not even give a 'page 2'...so you can NEVER navigate to or see the original post. That's not a good thing!
So I'm still restricted to choosing either 50 per page, or having ALL thread posts on one page (No Pagination)- which is terrible when i have a thread of 300 posts with images(!). Thus, even with your code tweak i can't get 60, 70, or 80 posts as 'posts per page' choices. (I wouldn't ever likely need more than 80- more than that gets too dang long by anyone's standards.)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
paul
@paul
8 years ago
4,335 posts
Taking a look now


--
Paul Asher - JR Developer and System Import Specialist
paul
@paul
8 years ago
4,335 posts
Yeah - This is not as straightforward as a simple template change, as I first thought as there are other Core generated pager variables that are being tested as well. Ideally the options in the Forum settings need changing/increasing. To my mind, having 1 to 50 is an overkill as the chances of someone 'needing' 47 (or whatever) posts per page are pretty unlikely. Maybe something like 1 to 25, then 30, 35, 40 ..... 100. What do you think?


--
Paul Asher - JR Developer and System Import Specialist
Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
My reason for the large number is to work better with the fact that I've reversed the order of my forum posts- from oldest first to oldest last. This is ideal for mobile devices where when you click to see a discussion, you don't want to have to scroll down and also then navigate to page 6 to see the latest posts and respond to it.

So now with the forum post order reversed the way I like it, a side effect is that the oldest/original post winds up showing only on the last page of a multipage topic...and many members won't think to navigate to there when they go to read the thread and see the latest post and reply to it. Having the original thread 'disappear' into old pages doesn't help members stay on topic.
So- if I make the number of posts per page to like 75 or so, the result would be that 95% of my forum threads would still show the original post at the bottom of a single page that contains the whole thread. Conversely, if i set the posts/per/page # to only 10, 80% of my forum discussions would NOT show the original post on the page of recent posts. That's why i think making my posts/per/page setting to around 75 will be the best compromise for getting the most 'pros' while keeping the 'cons' to a minimum.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
paul:
Maybe something like 1 to 25, then 30, 35, 40 ..... 100. What do you think?
Personally, I'd be cool with increments of 10 up to 100. 10, 20, 30....100.
I hope you understand my explanation of 'why' I want the option of such a seemingly odd large number of posts. Having it will give me the most bang for my buck when i have my forum posts reversed to 'newest first/on top'. My members tend to overlook pagination all too often, and also mobile users hate having to navigate lots of pages to see an original topic post.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
Is there a way for me to do the above- and be able to increase the choices for how many posts per page I can show on my forum threads? I would love to be able to show 70 or 75 rather than a max of 50- it would help now that I've reversed the forum post order.
Paul, should I UNDO the code that you recommended in your first post in this thread, since it doesn't have the effect intended?

Thanks....


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
paul
@paul
8 years ago
4,335 posts
Hi Strumelia - Yes, undo that code if you still have it in place.
I'm going to try and add this into the Forum module itself so it'll be there in its next release.
Thanks
Pa


--
Paul Asher - JR Developer and System Import Specialist
Strumelia
Strumelia
@strumelia
8 years ago
3,605 posts
Ok Paul I will revert back to the previous code- have a prior-to-change copy saved because I learned my lesson to always do that first... ;D
THANK YOU for broadening the options in the Forum module for it's next update. Something to look forward to! :)
I'll mark this resolved then!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015