Log in | Register | Lost password

Bottom
Templates
  • Posted: 21.08.2003, 03:31
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I haven't checked out too much the templates to know what information can or can not be used in there. In fact they are not exactly what I usually understood as templates, but they serve me enough.

    What I did find is that I'm not sure how much information is available to those templates. How many variables from the albums, the pictures, the users, etc can be used from a template, andhow.

    I tried to modify my main gallery template so instead of showing me with as the owner with my Real Name, it would show me with my Login. No luck without having to do too much editing (of course I could just have hard-coded it and I might end up doing it, but that just wouldn't seem too nice :D)
  • Posted: 21.08.2003, 07:32
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    You can find a description of the various objects in docs/templates.txt
  • Posted: 21.08.2003, 07:55
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Yup, what I meant is I usually understood as a template something that is almost 99% HTML and with some {VARIABLES} in there that will get replaced when creating the final page.

    Something like {IMG_NAME}

    That kind of templates would be easier to manage and would probably need less php editing from the end user (after having tried, I understand why all the galeries I've seen just have the default templates untouched :D)
  • Posted: 21.08.2003, 11:39
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Well, I don't disagree with you, but I just don't think a variable substitution system would be expressive enough to create such different kind of templates as you can in this way. Something like Smarty templates as used in PostCalendar (which I know close to nothing about) might do the job, but I'm not sure.

    So, yes, this may not be the best and most user friendly solution, but for an old hacker like me it works and allows me to do exactly what I want.
  • Posted: 21.08.2003, 11:40
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    But please feal free to ask more technical questions about the templates and I do my best to help you.

    I have created a separate forum for this!

Template courtesy of Designs By Darren.