Log in

View Full Version : Call different forumbit on index.php


MuhammadC
04-01-2010, 05:08 PM
Hello,

I want to create a duplicate of index.php and call different forumbit templates:

forumhome_forumbit_level1_nopost
forumhome_forumbit_level1_post
forumhome_forumbit_level2_nopost
forumhome_forumbit_level1_post

I see where these are defined in index.php:

// pre-cache templates used by all actions
$globaltemplates = array(
'ad_forumhome_afterforums',
'FORUMHOME',
'forumhome_event',
'forumhome_forumbit_level1_nopost',
'forumhome_forumbit_level1_post',
'forumhome_forumbit_level2_nopost',
'forumhome_forumbit_level2_post',
'forumhome_lastpostby',
'forumhome_loggedinuser',
'forumhome_moderator',
'forumhome_subforumbit_nopost',
'forumhome_subforumbit_post',
'forumhome_subforumseparator_nopost',
'forumhome_subforumseparator_post',
'forumhome_markread_script',
'forumhome_birthdaybit'
);


However, if I create a duplicate template (example: forumhome_forumbit_level2_post_copy) and define that in index.php, it won't display the template.

I can call a different FORUMHOME template by replacing the template name where this code occurs:

eval('print_output("' . fetch_template('FORUMHOME') . '");');

Are these templates called somewhere else?

BTW I'm running 3.7.2.

Thanks...