Hello There, Guest! › Register

MySubscriptions 2.2 released.
Looking for a custom plugin for your site? Ask here for a quote.

Solved Plugin Templates replacement
#1

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.

Unfortunately you do not have sufficient rights to view replies in this thread. For full access, consider upgrading.





Users browsing this thread: 1 Guest(s)