Trying to add content in my articles, found a suitable location
but unfortunally im unable to Str_replace like i can in the forum template's
Not sure why it wont run proberly, excakty same works 100% in both
forumhome, register and various other pages!
Hook location :
but unfortunally im unable to Str_replace like i can in the forum template's
Not sure why it wont run proberly, excakty same works 100% in both
forumhome, register and various other pages!
Code:
Plugin :
Code:
[B]Process_template_complete [/B]
PHP Code:
$find = '<div class="title">';
$add = '<br />-------<br />TEST<br />-------<br />';
$vbulletin->templatecache['vbcms_content_article_page'] = str_replace($find, $add.$find, $vbulletin->templatecache['vbcms_content_article_page']);
Comment