MyBB-Plugins Forums

Full Version: Plugin Templates replacement
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to replace a complete template in a plugin?

For example this will find {$header} and place {added_bit} directly after it :

Quote:find_replace_templatesets("index", "#".preg_quote('{$header}')."#i",'{$header}{added_bit}');

So how can i remove the complete index template , regardless of its content and replace it with a custom template?

So instead of finding {$header} i just want to fully remove the template and replace it with my own template.

No Permission

Unfortunately you do not have sufficient rights to view replies in this thread.