Author Topic: Creating my own {blah}?  (Read 3396 times)

0 Members and 1 Guest are viewing this topic.

Offline www.girls-on-bikes.com

  • Full Member
  • ***
  • Posts: 145
    • View Profile
    • http://www.girls-on-bikes.com/
Creating my own {blah}?
« on: May 30, 2003, 01:37:17 AM »
Hello All,
I've noticed that the script uses (what I presume is XML) to include files, for example, {header}

How exactly is this done?
What I specifically want to do is have an html file called {ads} where I can pop {ads} into a designated spot and it will include that file.

So what I'm asking is, how exactly would I include my own file in the same way that, for example, {header} is done?

Thanks!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Creating my own {blah}?
« Reply #1 on: May 30, 2003, 02:10:57 AM »
all u need is use this kind of format:
Code: [Select]
$site_template->register_vars("tag_name", $variable);or if u need more then one tag, then u can use array:
Code: [Select]
$site_template->register_vars(array(
   "tag_1" => $variable_1,
   "tag_2" => $variable_2
));
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline ruudvroon

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • AFTERTHEPARTY.NL
Re: Creating my own {blah}?
« Reply #2 on: November 12, 2005, 12:46:42 PM »
I'm trying to use 2 different headers (one with a menu and one without).

But how can a create a tag like {header2}
That includes templates/{my_template}/header2.html ?