PDA

View Full Version : str_replace without new template


RedTyger
11-09-2006, 10:58 AM
Is this possible? All I want to do is insert one setting variable, it doesn't require a new template and I can't find anything about doing so without a template. I want to achieve:


$str = 'findthis';
$vbulletin->templatecache['footer'] = str_replace($str,$str.$vbulletin->options['kerjigger'],$vbulletin->templatecache['footer']);


Thank you!

RedTyger
11-11-2006, 03:53 PM
Kerbump?

This is pretty much a yes you can/no you can't question...

I'll answer this myself for anyone searching in the future...the answer is yes, you can do it and no, you don't need to create a template. It works exactly as I posted in the first post, there was a different reason it wouldn't work. :rolleyes:

Oh well, learnt something new.