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.

If:else in forum theme templates?

November 17, 2008 3:56pm

Subscribe [2]
  • #1 / Nov 17, 2008 3:56pm

    jtnt

    137 posts

    Just need to confirm something. I tried to put the below code inside the thread_rows() function on the theme_threads.php file, and the template errored out (just showed a blank browser page).

    {if avatar_width <= '125'}{avatar_width}{if:else}125{/if}

    So, I’m guessing you can’t use complex if statements in the forum templates?

  • #2 / Nov 17, 2008 5:18pm

    Ingmar

    29245 posts

    No, the forum module does not have support for advanced conditionals—unless you run your forum through regular EE templates.

  • #3 / Nov 17, 2008 5:22pm

    jtnt

    137 posts

    I do run them via normal templates via the exp:forum tag, actually. Sorry for not mentioning this before.

  • #4 / Nov 18, 2008 12:26pm

    Robin Sowell

    13255 posts

    Hm- I wouldn’t expect it to blank screen.  If you turn php errors on for superadmins, do you get any errors thrown when you try it?

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

ExpressionEngine News!

#eecms, #events, #releases