Results 1 to 11 of 11

Thread: The Template Tag

  1. #1
    Join Date
    May 2005
    Posts
    21

    Default The Template Tag

    Hi, i'm sorry but i don't know how re-create my template.
    I must convert an old-version template for the new version of Indexu, but i don't know the new Tag list for use with the template.

    Can you help me, please?

    Thanks a lot!

  2. #2
    Join Date
    Feb 2004
    Posts
    44

    Default

    i am looking for the same thing, any help would be appreciated tnx
    http://www.betalabs.org

  3. #3
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    There're many changes with template from 3.2 to 5.0.x
    The conversion should be done manually.

    90% variable names are the same, except now it has $ sign
    v3.2 : <%link%>
    v5 : <%$link%>

  4. #4
    Join Date
    Nov 2004
    Posts
    36

    Default

    How do u prevent the template tag from showing on your webpage if it isnt used? It'll just print the tag itself which is not good

  5. #5
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    The problem is fixed in Indexu 5. All unused tags will be not displayed.

  6. #6
    Join Date
    Nov 2004
    Posts
    36

    Default

    Ok but im using 3.2 , what needs to be changed to fix that?

  7. #7
    Join Date
    Nov 2004
    Posts
    36

    Default

    Hmm is anybody here? How do I prevent unused tags from showing up?

  8. #8
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by player77
    Hmm is anybody here? How do I prevent unused tags from showing up?
    for every <%variable%> in the html page, you have to have a corresponding $variable in the DisplayTemplate function that calls the html page.



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  9. #9
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    I thought it would be too much work to change, but im workign on another site for 5.10 and have decided to switch. it really is so much better, smarty teplates are such a huge bonus.

    I know its annoying to re-add mods, mine was heavily modded, but for me the benefits are really worth it.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  10. #10
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by inspireme
    much better, smarty teplates are such a huge bonus.
    can you be more specific as to why you think "SMARTY templates are such a huge bonus?"



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  11. #11
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    becuase you can have loads of custom fields, and only get them to show up if they are needed. You can also use <if> <else> to decide which content to load, and to customise page display - for example, I had a mod that removed email address from the listigns to work through sendmail, unfortunatly i had no way of stopping the link appearing for listings with no email address... a simple if statment solves the problem

    Im not a programmer - its easy to do what i want without delving into code.

    My listings have lots of custom fields, with smarty i can now let people fill in as much onfromation as they want it will only display whats available. I dont need to rigedly keep to a "basic" and "enhanced" level of detail i can have as much information as people care to enter... which was the original question.

    how about only show certain details to people who are logged in?
    <%if $logged_in%>

    How about looping through an array and building out a a table to fit the size of data... fairly simple with smarty, im doing stuff on my site in a few hours that owuld have taken me days of fiddlign with variables in the php files (and even then sometimes it didnt work and you had to do more hacking to class.php)

    i think for any end user (non programmer) smarty is superb... its well documented, easy to use, powerful, logical, and once you learn it you can use your knowledge on 1000s of other php apps.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

Similar Threads

  1. hot template
    By Mythotical in forum Templates
    Replies: 4
    Last Post: 02-03-2005, 01:32 PM
  2. php in template
    By snaip in forum Templates
    Replies: 1
    Last Post: 10-01-2004, 04:31 AM
  3. Replies: 3
    Last Post: 04-24-2003, 04:31 PM
  4. Template
    By csengine in forum Templates
    Replies: 3
    Last Post: 04-12-2003, 07:01 PM
  5. german template
    By siggistar in forum v5.x
    Replies: 1
    Last Post: 05-08-2002, 12:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •