Skip to content

Instantly share code, notes, and snippets.

@bjornbjorn
Created October 26, 2011 08:22
Show Gist options
  • Save bjornbjorn/1315770 to your computer and use it in GitHub Desktop.
Save bjornbjorn/1315770 to your computer and use it in GitHub Desktop.
Adding support for theme='' parameter in {exp:forum} tag
/**
This core hack in mod.forum.php will enable you to load a different forum theme from different templates.
Append in the constructor, just after $this->_load_base() like shown below.
*/
/** -------------------------------------
/** Load Base Forum Variables
/** -------------------------------------*/
$this->_load_base();
/**
* Did we specify a different theme to be used in the {exp:forums} tag?
*/
if(isset($this->EE->TPML) && $this->EE->TMPL->fetch_param('theme'))
{
$this->theme = $this->EE->TMPL->fetch_param('theme');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment