The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
[HELP] replace template with template plugin
i may have got it but it does not seem right to me, makes since, but doesnt seem right, can someone confirm this is the way or is there another way to do this.
Code:
$vbulletin->templatecache['forumhome_loggedinuser'] = fetch_template('drc_test'); --------- i am trying to completely replace the whole template (string) of forumhome_loggedinuser template i have my hook set to forumhome_start and about all i can manage to do is add to it, replacing is new to me. this is what i have currently Code:
$drcrb_cr = '$stylevar[dirmark]'; $vbulletin->templatecache['forumhome_loggedinuser'] = str_replace($drcrb_cr,$drcrb_cr.fetch_template('drc_test'),$vbulletin->templatecache['forumhome_loggedinuser']); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|