PDA


View Full Version : Using a Different Header Template


Don Z.
09-01-2008, 12:23 PM
My new vbLinks install uses the HEADER template from VB. How can I use a different template in vbLinks, like HEADER2?

Thanks.

Brian
09-02-2008, 11:54 AM
You could use an <if condition> in your header template.

<if condition="VBA_SCRIPT == 'links_directory'">
Code for vBa Links header here
<else />
Code for vB header here
</if>

Don Z.
09-02-2008, 12:54 PM
Thanks Brian, I'll try that tonight and report back.

Isn't this a common problem? Wouldn't many sites want a different header on their links system than on their forum?

PhotoPost allows you to use a $header2 variable that points to the header2 template. It seems like that is a good way to do it.

Brian
09-02-2008, 02:16 PM
I'm sure it's common enough, though most sites want the same header for consistancy throughout their pages.
Not really much of a point in having 2 separate header templates since that then requires updating code in 2 places if you ever want to change something.

Don Z.
09-02-2008, 02:29 PM
That works great! Much better than separate templates.

As soon as I get more links transferred from my old links system (Gossamer Links) I'll be ready to switch over and go live.

I've got about 1000 links to transfer. How about an import function in a future version or did I miss that too?

Thanks again for your help!

Brian
09-03-2008, 02:59 PM
Sorry, but currently there is not any type of import system.