2010-09-17, 08:33 PM
Im adding a template like so:
But this part is causing problems (Part in red)
When i activate the plugin its working , no problem but when i deactivate it , it removes the complete template. When i remove "#" and activate the plugin and deactivate it it works fine , but obviously i need the "#" for my onclick function to work correctly, anyone got any ideas ?
Lol ive got it , i just removed >> #
find_replace_templatesets("newreply", "#".preg_quote('{$codebuttons}')."#i",'{$codebuttons}<br/><a href="#" onClick=etc...............
But this part is causing problems (Part in red)
Quote:<a href="#" onClick=etc.........
When i activate the plugin its working , no problem but when i deactivate it , it removes the complete template. When i remove "#" and activate the plugin and deactivate it it works fine , but obviously i need the "#" for my onclick function to work correctly, anyone got any ideas ?
Lol ive got it , i just removed >> #