Created
October 26, 2011 08:22
-
-
Save bjornbjorn/1315770 to your computer and use it in GitHub Desktop.
Adding support for theme='' parameter in {exp:forum} tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
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