The website is for sale. Check here for more information.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.
Help for a new developer
I'm a new plugin developer and I understand most of the stuff but some thing are really confusing to me. One of them is templates. What exactly are templates? Like I know you can create them but that's all. Also how do variables in templates work? Do they get passed in automatically? Also if I wanted for example to add a button to every thread in showthread.php how would I got about it? Also how to get for example the thread id? Is there a public resource where I can see how to get all the parameters of a page or all the globals and their parameters?? Also what is a breadcrumb? And I'm reading this page and idk why did they put this in: 
PHP Code:
eval('$sections  = "' $templates->get('hello_world_template') . '";'); 

thanks in advance

Templates are HTML blocks. Basically, they're evaluated into variables. And they may also contain other variables. So if you look at the 'index' template, it has several variables that will correspond to other templates if you search for those variables in the 'index.php' file.

Look at -> eval() to understand how it works.

To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.

Users browsing this thread: 1 Guest(s)

About MyBB-Plugins

Plug Yourself into the best MyBB AddOn.

Copyright © 2009-2021 MyBB-Plugins Forums.


  • 51,000+ Posts
  • 19,000+ Members
  • 3,600+ Threads

Impressed? For sure
Check Full Stats here