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 1.3.2 to 2.0 template updates...problem

June 21, 2007 5:44am

Subscribe [3]
  • #1 / Jun 21, 2007 5:44am

    Andru Edwards

    331 posts

    Odd issue. Could very well be my own fault…

    In the Version Notes for Discussion Forum 2.0, there were notes for adding some code to Thread Rows. You are to replace this piece of code with updated code:

    {if can_post}
        <td align="center"><div class="button100"><div class="buttonSmall" id="{id3}"   ></div></td>
    {/if}


    The problem is, I only have these lines in that file that contain {if can_post} - I don’t have the above code in my template:

    
    
    
    
    
    
    
    
    

    Did I screw something up or not correctly update a previous release?!

  • #2 / Jun 21, 2007 7:31am

    Sue Crocker

    26054 posts

    I found the following in the blue theme:

    {if can_post}
            <td align="center"><div class="button100"><div class="buttonSmall" id="{id3}"   ></div></td>
        {/if}

    around line 292.

    and in the default theme around line 293. In the file called theme_threads.php.

    Did you change this file when you were changing your templates?

  • #3 / Jun 21, 2007 12:44pm

    Derek Jones

    7561 posts

    The important thing isn’t replacing the code—I supply that to make it easier to spot where it should go.  The key thing is adding the new bit:

    {if is_post}
        {if can_move}
            <td><div class="button100"><div class="buttonSmall" id="{id10}"   ></div></td>
        {/if}
    {/if}

    And modify as necessary to fit your new theme.  The is_post and can_move conditionals are key, as is the path and language variable.  Everything else is at your discretion.

  • #4 / Jun 21, 2007 2:31pm

    Andru Edwards

    331 posts

    Of course, I fail to mention that Yvonne designed me a custom forum theme (really, just the default theme, but orange - see http://www.gearlive.com/forums)

    So Derek, to be on the safe side, I am gonna paste that entire section of the file - can you tell me where I should post the new info, and if it looks like I am missing something important? 😊

    OH - Okay, this is good. I went into the Discussion Forum Module, and then to templates, and then to the template theme we are using. I click it, and just get a blank white screen. If I go back and choose Default, Blue, etc., those bring up the list. Now what? :(

    EDIT: Even worse, going to our forum URL produces a blank page as well…but I sent someone a PM on our forums last night right before going to bed!

  • #5 / Jun 21, 2007 2:42pm

    Andru Edwards

    331 posts

    Okay, weird. I found the problem. In the theme_search.php, I cut and paste the changes required, but for some reason, these characters appears in front of about 8 lines of the code when I went to check it just now:

    ÊÊÊÊ

    Huh??

    Anyway, I deleted them, and no I can get back in - so we are back to our original issue - just need to know where to paste the above. Here is my Thread Rows template:

    
    									
  • #6 / Jun 21, 2007 2:49pm

    Andru Edwards

    331 posts

    As you can see, in the template I posted above, the first two characters are ‘&t’ - Just submitted this to the bug tracker, as this keeps happening to my templates when I edit them.

  • #7 / Jun 21, 2007 3:24pm

    Derek Jones

    7561 posts

    Paul is addressing the issue in the bug tracker, seems unrelated.

    You’re adding a Move Reply button, so place it wherever you like in that last table cell with the other post action buttons.

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

ExpressionEngine News!

#eecms, #events, #releases