Display non default messages_per_page on one/more Boards

Started by beanflying, August 19, 2012, 08:41:12 PM

Previous topic - Next topic

beanflying

This has done my head in on where to even start looking after a lot of searching here.

I have created a hidden Category with several special purpose boards in it (Category 10 in my case) by adding the following in the BoardIndex.template.php

$do_not_show_categories = array(10);

For most of these boards I am running a customised copy of my standard Forum theme (so different theme as set in Manage Boards).

What I am wanting to do for any Categories running this theme option is to display a single post per page on all topics (Forum messages/page is currently set to 25).

I am thinking a mod of the Display.php or MessageIndex.php is needed?

Has anyone a simple solution for this or even an idea where to start loking? TIA
Owner of many many shiny toys.

beanflying

Bump sort of.

What I really think I need a hand with putting into code is an 'if else' statement in the along the lines of -

"if theme 'B' is selected then posts per page = 1 else ....... "

If that is not possible due to limitations in settings then even -

"If Category = X then posts per page = 1 else ......." I can then just set up the entire category to be dedicated to this look.

I still can't find any ideas on how to write it or where to place it? So clues start points even if they turn out incorrect are welcome :)
Owner of many many shiny toys.

Advertisement: