Author Topic: Making my own {} tags... how??  (Read 4006 times)

0 Members and 1 Guest are viewing this topic.

Offline crappytheclown

  • Newbie
  • *
  • Posts: 16
    • View Profile
Making my own {} tags... how??
« on: January 26, 2006, 05:47:12 PM »
I want to make a {} tag to put in my main template files.  I want to put links and html of affliates into the variable that will be used in the {} tag... like {affliates} and just post that in my home.html, categories.html, etc.  From other posts I figured out that for each template page I want the {affliates} in, I have to go to the php counterpart of that page (index.php, categories.php).  From there I figured out that you shouldn't put html in those php pages, but itd be easier to put it in functions and just call up the function the index.php, categories.php files.  I'm having trouble doing all this because I have clue about php.  Can someone suggest how to do it??


Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: Making my own {} tags... how??
« Reply #1 on: January 26, 2006, 05:50:30 PM »
Then, perhaps you'd be interested to read this tutorial :

http://www.4homepages.de/forum/index.php?topic=11069.0

In addition, for $additional_user_fields and $additional_image_fields, here's an example :

http://www.4homepages.de/forum/index.php?topic=2986.0

;)

Offline crappytheclown

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Making my own {} tags... how??
« Reply #2 on: January 26, 2006, 10:46:24 PM »
thank you for the links ... while searching I didn't come across these posts