Fetching Template

onyxchase

Active member
Hello,

I'm wondering, how can I fetch the data of a template for an addon/external script? Also, is there a way to list the names of the templates used in a page? I remember in vBulletin you could have debug on and it would list you all of the templates at the bottom of the page. It'd be very useful to know which one to edit, etc...

Thanks,
John
 
It'd be very useful to know which one to edit, etc...
If you view the source, the class name of the div with an ID of content is your template. For example, on the forum list if you view the source you'll see:
Code:
<div id="content" class="forum_list">
forum_list is the template you edit.
 
This is more of a development questions thread, I'll move it over there.

Dev tutorials & resources -> dev questions.
 
Top Bottom