PDA

View Full Version : $find= syntax needed for plugin


steven s
12-14-2008, 10:12 PM
I'm trying my hand at plugins.
I want to find the following

$find = '<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>';

I realize I need a '/' before each quote.
Do I need to do anything for the ';' or '//'?


$find = '<script type=/"text/javascript/">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>';

Dismounted
12-15-2008, 01:58 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=151332" target="_blank">[How-To] Plugins for Template Edits (Adv. Version)</a>

steven s
12-15-2008, 11:42 PM
Thanks. I looked at that one before. Started with the first version too.
Still a bit lost.

Doing some more reading, it looks like I need to escape other characters also.