The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
![]()
mark thanks for always being around to help, but I feel like I'm wasting your time =/
I was only throwing another example to what could be achieved with the end result I'm looking for. so lets look at what I'm intending on doing: In every template that has a <html> tag, i want to add some attributes. so lets say for just a one attribute example this is exactly what i want to do. across every single template: Code:
$find = '<html>'; $replace = '<html lang="en">'; $find = str_replace($find, $replace, $find); but the end result should be something like this if it's achievable. instead of doing: Code:
$find = '<html>'; $replace = '<html lang="en">'; $vbulletin->templatecache['Template1'] = str_replace($find,$replace,$vbulletin->templatecache['Template1']); $vbulletin->templatecache['Template2'] = str_replace($find,$replace,$vbulletin->templatecache['Template2']); $vbulletin->templatecache['Template3'] = str_replace($find,$replace,$vbulletin->templatecache['Template3']); $vbulletin->templatecache['Template4'] = str_replace($find,$replace,$vbulletin->templatecache['Template4']); $vbulletin->templatecache['Template5'] = str_replace($find,$replace,$vbulletin->templatecache['Template5']); $vbulletin->templatecache['Template6'] = str_replace($find,$replace,$vbulletin->templatecache['Template6']); $vbulletin->templatecache['Template7'] = str_replace($find,$replace,$vbulletin->templatecache['Template7']); etc.... |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|