Quote:
Originally Posted by Easy5s.net
I use a code for VB3 and I want to convert it to work on vb4.
Code:
$myput = '<!-- message area -->';
$vbulletin->templatecache['newthread'] = str_replace($myput,$myput.fetch_template('new_posting_newthread'),$vbulletin->templatecache['newthread']);
thank.
|
I never code for vb3 so i don't know that code is doing, however the generic code for str_replace on vb4 is easy you should use this code
PHP Code:
$find = 'find this code';
$replace = 'replace $find with this code';
$vbulletin->templatecache['newthread'] = str_replace($find,$replace,$vbulletin->templatecache['newthread']);
Instead if you're trying to add some codes to the begin or to the end of a template, the code will looks differently