PDA

View Full Version : Template question


HPIA
31 Oct 2006, 01:04
Okay, I have a question.

You know how if you want to incorporate the navbar template, you type in $navbar? Well, how would I make other templates show up? I have no idea how to do this, Im not a coder.

Does anyone know what I mean?

Kirk Y
31 Oct 2006, 04:04
Create a new plugin using a hook location that executes on the page you want to place the variable. (Ex. If you want it on your Index, use 'forumhome_start'; if you want it in the Posbit, use 'postbit_display_start'; etc.)



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Substitute $var wherever you'd like the contents shown.

HPIA
31 Oct 2006, 04:17
Thanks for this! And a big thanks to peterska2. Minutes after posting this, while just browsing, I found her? tutorial and it worked marvelously. :D

Kirk Y
31 Oct 2006, 12:56
Yeah I was trying to find the tutorial for you, but misplaced the link, so I settled with an example. Glad you found what you were looking for either way.

And yes, she. ;)