ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Forum variables and conditionals?

April 29, 2008 4:12pm

Subscribe [3]
  • #1 / Apr 29, 2008 4:12pm

    David Guillory

    8 posts

    I’m creating a custom forum theme for a client, based on the Developer theme. I’m able to piece together most of what my options are, but it would be helpful if there were a documentation page of all available variables and conditionals, as with the Weblog module. I’ve looked around, but can’t seem to find this - is there any such documentation? (Sorry if I’m being dense, and have just overlooked it somehow.)

  • #2 / Apr 29, 2008 4:16pm

    lebisol

    2234 posts

    Here they are: Wiki Forum Variables
    All the best!

  • #3 / Apr 29, 2008 4:21pm

    Ingmar

    29245 posts

    Thanks for stepping in, lebisol. David, I suppose that answers your question?

  • #4 / Apr 29, 2008 4:45pm

    David Guillory

    8 posts

    That’s a great help, lebisol, thanks.

    Ingmar, that KB article covers the globals, which is very useful. I was also hoping that there might be some documentation of the variables for the specific templates. For instance, I’m working on theme_topics.php right now, and I’m trying to set it up to display the time of the original post and the time of the most recent reply. I know that I have {last_reply} to work with, since it’s there in the template, but I’m not sure if there’s also a variable available for the time of the original post, like {first_reply} or {original_post}... something to that effect.

    Is there any documentation for all of those variables, or is digging through the template file the only way to track them down? And should I assume that the variables I find in theme_topics.php in the Default or Developer themes are the only variables available for use in that template?

    Thanks for the help.

  • #5 / Apr 29, 2008 5:33pm

    Ingmar

    29245 posts

    David,

    I was also hoping that there might be some documentation of the variables for the specific templates. For instance, I’m working on theme_topics.php right now, and I’m trying to set it up to display the time of the original post and the time of the most recent reply. I know that I have {last_reply} to work with, since it’s there in the template, but I’m not sure if there’s also a variable available for the time of the original post, like {first_reply} or {original_post}... something to that effect.

    I am afraid a list of variables, together with a couple of default templates is all the documentationt that exists in the area at this point.

  • #6 / Apr 29, 2008 5:38pm

    David Guillory

    8 posts

    David,

    I am afraid a list of variables, together with a couple of default templates is all the documentationt that exists in the area at this point.

    OK, thanks for the reply, Ingmar.

  • #7 / Apr 29, 2008 5:41pm

    Ingmar

    29245 posts

    Glad to be of service. I mark that one as “Resolved” for now, feel free to open a new support thread at any time.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases