The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
parse_template question
Hi,,
how can i use the parse_template hook to parse ALL the templates at once ? |
#2
|
||||
|
||||
What do you mean parse all templates at once? what is it you want to do?
|
#3
|
|||
|
|||
i want to use str_replace in all the templates
|
#4
|
||||
|
||||
Then just use your code in a plugin using the parse templates hook, it should work as you want.
|
#5
|
|||
|
|||
to parse a SINGLE template i would use
PHP Code:
|
#6
|
||||
|
||||
I suppose you could try $globaltemplates, but ideally for an str replace you'd build an array of template names.
--------------- Added [DATE]1342211263[/DATE] at [TIME]1342211263[/TIME] --------------- This might help you write the function, this is directly out of /includes/functions_misc and its the section where they do an str replace on templates PHP Code:
|
Благодарность от: | ||
Firas Darwish |
#7
|
|||
|
|||
oh thank you simon
much thanks ! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|