Helpful Information
 
 
Category: vB5 Programming Discussions
registering new template variable

Hey guys,

I'm really having problem registering a new variable to my templates and you really dont get much help anywhere :(

All i want to do is to register a new variable to the template "display_contenttype_conversationstarter_threadview_Text".

So all i found was just sth like "vB_Template::preRegister('THE TEMPLATE',array('my_insertvar ' => $my_insertvar)); "
But this was only for vbulletin 4. I didnt find. I guess you have to make it in the admincp via hooks. But there are no templates which i can use for display_contenttype_conversationstarter_threadview_Text.

Could someone explain me how to register a variable for vB_Template::preRegister('THE TEMPLATE',array('my_insertvar ' => $my_insertvar)); without the hooks from the admincp, but just using a normal php file, which is used by a plugin? Should be possible or not?

Once again: All i want to do is to register a new variable for the template display_contenttype_conversationstarter_threadview_Text

Thanks in advance
kddc










privacy (GDPR)