modifying theme to show all topics in board.

Started by matthewchng, October 17, 2006, 11:13:26 AM

Previous topic - Next topic

matthewchng

Is this possible?  I have a theme, namely the WikiStyle.  I want to have it display all topics from within the board since it does not have pagination build in.  Is it possible to just edit the theme to do this or must I edit core SMF files?

If it's possible, please point me in the right direction.

THanks.

codenaught

#1
Would you like a page index shown in the theme instead? If you want to increase the limit for just that specific theme you can edit Themes/wikistyle_smf11rc3/index.template.php and find:

// Initialize the template... mainly little settings.
function template_init()
{
global $context, $settings, $options, $txt, $user_info;


And change to:

// Initialize the template... mainly little settings.
function template_init()
{
global $context, $settings, $options, $txt, $user_info, $modSettings;

$modSettings['defaultMaxTopics'] = 100;


Or whatever number you want. I strongly recommend you don't make this too high or you can get bad performance loading so many topics on one page.       

Edit: I see you added a page index yourself: http://www.simplemachines.org/community/index.php?topic=81351.msg772659#msg772659
Dev Consultant
Former SMF Doc Coordinator

Advertisement: