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']);
but i dont want to just add to it, i want to completely replace the forumhome_loggedinuser template with drc_test