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.

{signature} does not show on posts

October 14, 2009 2:14am

Subscribe [3]
  • #1 / Oct 14, 2009 2:14am

    Sheye Rosemeyer

    39 posts

    I’ve searched the forum and user guide.
    I’m running my forums through the templates and have this code:

    {if signature}
    {signature}{group_id} -{total_forum_posts}
    {/if}

    It appears the {if} is working but the signature outputs {signature} and doesn’t seem to parse the EE tag…

    ??

    I’m baffled so I’m reaching out for help.

  • #2 / Oct 14, 2009 2:15am

    Sheye Rosemeyer

    39 posts

    By the way… I just added {group_id} and such to see if other tags were being parsed and they are.
    HELP!
    Thanks!

  • #3 / Oct 14, 2009 2:45am

    John Henry Donovan

    12339 posts

    Sheye,

    What version and build of EE are you on and likewise the Forum module?

    What template are you adding this code to, the signature template?

    Also as an aside here is a useful document
    EE Docs : Forum Global Variables

  • #4 / Oct 14, 2009 11:50am

    Sheye Rosemeyer

    39 posts

    EE - 1.6.8
    Forums - 2.1.2

    I have the following in a template called “forums”

    <h3>Forum</h3>
    <p>{exp:forum board="name_of_forum"}

    Everything works on the forums and I have no issues except inserting signatures.

  • #5 / Oct 14, 2009 8:40pm

    Adam Dorsey

    1439 posts

    Hi Sheye-

    Can you let us know which “Forum template” your code is located in?

    {if signature}
    {signature}{group_id} -{total_forum_posts}
    {/if}

    This will help us further debug your issue.

    Also, can you try using {signature} without the conditional statement? Then let us know what the output is.

  • #6 / Oct 14, 2009 8:53pm

    Sheye Rosemeyer

    39 posts

    Hi Adam,
    It’s in the theme_threads.php file of the forums.

    I tried removing the {if signature} and found something interesting.

    It was still only showing {signature} as a tag.  The {group_id} -{total_forum_posts} was the current logged in users info for every single post.

    Instead of being the post author’s info it was my info on every single post.

    Thanks.

  • #7 / Oct 15, 2009 1:57am

    John Henry Donovan

    12339 posts

    Sheye,

    Are you adding this code to the signature function?

    This is where you would add it and then to include that in any other function use

    {if signature}
    {include:signature}
    {/if}
  • #8 / Oct 15, 2009 2:14am

    Sheye Rosemeyer

    39 posts

    I’ve been trying to figure out how to show each forum users signature and signature image just like you have in your post above.

    I tried the code you provided but no signature shows up.  It’s not working…

    Below is a snippet of the code from theme_threads.php in which everything works except the signature portion:

    <div class="replyLink"><a href="http://{path:post_link}">{post_date format="%M %d, %Y %h:%i%a"}</a></div>
    
    {if avatar}<div class="avatar">{path:avatars}</div>{/if}
            
               <div class="authorInfo" >
                   <div class="authorName {rank_class}"><a href="http://{path:member_profile}">{author}</a></div>
                <div class="authorPosts">{lang:total_posts} {total_posts}</div>
               {if can_view_ip}<div class="authorIP">{ip_address}</div>{/if}
               {if can_ban}<div class="banMember"><a href="http://{path:ban_member}">{lang:ban_member}</a></div>{/if}
           </div>
    
        <div class="body{switch="|2"} post">
            {body}  
    
            {if signature}
            {include:signature}
            {/if} 
            
            {if attachments}{include:post_attachments}{/if}
    
         </div>
  • #9 / Oct 15, 2009 3:09am

    John Henry Donovan

    12339 posts

    Sheye,

    Does the signature portion still exist in that file?

    //-------------------------------------
    //  Signature
    //-------------------------------------
    
    function signature()
    {
    return <<< EOF
    <fieldset class='signature'>
                        
    <legend class="signatureTitle"> {lang:signature} </legend>
    
    {if signature_image}
    <div class="itempad">{path:signature_image}</div>
    {/if}
    
    {signature}
    
    </fieldset>
    EOF;
    }
    /* END */

    I don’t believe this thread to be technical support anymore but more of a theme customisation question so I am gonna move this to How to for you.

  • #10 / Oct 15, 2009 3:14am

    Sheye Rosemeyer

    39 posts

    That was it!
    The signature function was commented out… Strange!

    Thanks so much!

  • #11 / Oct 15, 2009 3:50am

    John Henry Donovan

    12339 posts

    Great. Glad it was a simple fix 😊

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

ExpressionEngine News!

#eecms, #events, #releases