MyBB-Plugins Forums
creating cutom variables - Printable Version

+- MyBB-Plugins Forums (http://forums.mybb-plugins.com)
+-- Forum: MyBB General Discussion (http://forums.mybb-plugins.com/Forum-MyBB-General-Discussion)
+--- Forum: Coding Help (http://forums.mybb-plugins.com/Forum-Coding-Help)
+--- Thread: creating cutom variables (/Thread-creating-cutom-variables)



creating cutom variables - xBloodshed - 11-04-2013

Is there anyway to create custom variables to be used in templates??


RE: creating cutom variables - Diogo Parrinha - 11-04-2013

You can use a plugin to hook to global_start and globalize the variable you want there


RE: creating cutom variables - xBloodshed - 11-04-2013

How do you do that? Sorry to be a bother but I can't find a proper documentation even in MyBB.


RE: creating cutom variables - Diogo Parrinha - 11-05-2013

Well that's just basic PHP, not related to MyBB...if you know how to code in PHP, you should know how to do that.

What exactly are you not understanding?