The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
||||
|
||||
tried your posted first and was like hey this is exactly what i was looking for =)
put in Code:
$t_arr = $vbulletin->templatecache; $t_keys = array_keys($t_arr); $count = count($t_keys); for ($n = 0; $n < $count; $n++) { if (strpos($t_arr[$t_keys[$n]], '<html') !== false) { $vbulletin->templatecache[$t_keys[$n]] = str_replace("<html", "<html tag='test'", $vbulletin->templatecache[$t_keys[$n]]); } } so this little snippet is more useful than one might think, this is a global replacer and its wonderful =) thanks mark! |
Благодарность от: | ||
MarkFL |
#22
|
||||
|
||||
Glad to help, Ryan!
One thing I still don't understand is why, when I tried using a foreach loop to iterate through the $vbulletin->templatecache array, it would only get the last template in the array (same issue with vB 4). But, using the for loop worked, so I went with that. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|