Quote:
Originally Posted by masterross
Hi
I'm trying to edit template reputationbit
So i put this in hook global start:
PHP Code:
$search = 'test'; $replace = 'blablaa'; $vbulletin->templatecache['reputationbit'] = preg_replace("/$search/", $replace, $vbulletin->templatecache['reputationbit']);
But nothing's changed...
(of course $search = 'test' is just an example)
|
you might want to look at the following guide if you are inserting your own variables:
[HOW TO - vB4] Rendering templates and registering variables - a short guide
I think a better hook would be
reputation_start