PDA

View Full Version : How do I include a new template in an existing one?


thomasv
08-25-2010, 09:07 AM
Hi,

I'm customising my navbar template to include a banner with various functionality depending on whether a user is logged in or not and some jQuery etc.

I started by editing the navbar template and this works fine but it's getting a bit long now so I'd like to move my custom chunk into it's own template called custom_navbar_chunk and then just add a single line include in the navbar template.

But I can't find or work out what that single line would be or if it's possible at all. I've tried $custom_navbar_chunk but that doesn't work.

I don't want to create a whole new php file, but do I need one? Or am I compelled to use a plugin?

Can anyone help, have I got the wrong idea completely here?

Currently on: vBulletin 3.8.5

Thanks,
Tom

BirdOPrey5
08-25-2010, 10:03 AM
You are also going to want to cache the template...

Post 7 in this article tells you how to do both:
https://vborg.vbsupport.ru/showthread.php?t=99132