PDA

View Full Version : Two Questions


Snake~eyes
11-19-2006, 05:42 PM
It's been a while since I've been into vB but I'm working on a project and need some help for a style I am working on.

Two part question.

1) I want to create a custom template and insert that template in other templates. Is that possible? If so how do I do it?

2) I need to create a variable designed to tell me what page it is so that the style can have different html inserted depending on it.

Example:

I am on forums.com/member.php?u=1230

I need the variable to say "member"

So that in a template I can have
if $page==member
<balhlbalh html here>.

I plan to include these statements in the header template if you need to know.

does that make sense? Help is greatly appreciated.

kall
11-19-2006, 05:53 PM
1. Yes. It is possible.. theres a thread around here somewhere that tells you how.

2. <if condition="THIS_SCRIPT == 'whatever'">

THIS_SCRIPT is defined at the top of almost all vB files. :)