question about templates hook

Status
Not open for further replies.

typostudy

Member
I am trying this tutorial: Creating a add-on to insert tabs in profile page (using hooks)
http://xenforo.com/community/thread...nsert-tabs-in-profile-page-using-hooks.21205/

I got some questions:


1. Step 5 - The Code Event Listeners:
AdminCP>Development>Code Event Listeners, one field called 'Callback Execution Order':
what does this mean?
2. Step 6 - Our file Listener.php
$contents .= '<li><a href="{$requestPaths.requestUri}#ourTab">Our Tab</a></li>';
for '{$requestPaths.requestUri}', is this xenforo variable? where can I see all the variables that I can use in xenforo?
3. Step 14 - Lets use them!
$template->create(),$ourTemplate->render();
where can I see the defination of these functions/methods?
4. Step 15 - Pre loading templates
why we need this step? it seems the codes still work even we do not have "template_create".
 
If you wish to receive support, associate your forum user name with your license and post in the appropriate forum.
 
Status
Not open for further replies.
Top Bottom