The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
templatecache and str_replace
below is a snippet of code that i use to update tags from the subject line. some of my users have other mods installed that might require template edits around that line or that might do the same thing.
is there a better way to do this w/o having them make template edits? Code:
$tagscript2 = 'onBlur="updateTagger()"'; $search = 'name="subject" id="subject"'; $replace = 'name="subject" id="subject" '.$tagscript2; $vbulletin->templatecache['newthread'] = str_replace($search, $replace, $vbulletin->templatecache['newthread']); |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|