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.

Exp:channel:entries tag disappearing on my footer, when embeding Discussion Forum

April 17, 2012 5:01am

Subscribe [2]
  • #1 / Apr 17, 2012 5:01am

    MadeByShape

    35 posts

    The footer on my site seems to not display the {exp:channel:entries} tag/content when i have the forum embeded but ONLY when i go to the /member/ segment of the forum? e.g:

    https://www.website.co.uk/index.php/forum/member/messages/view_message/34/

    Doesn’t display the footer, but:

    https://www.website.co.uk/index.php/forum/viewthread/86/

    Does.

    My forum template code looks like this:

    {preload_replace:channels="preferences"}
    {exp:channel:entries channel="{channels}" orderby="date" disable="{sn_disable_default}" limit="1" dynamic="off"}
    
     {embed="inc/head" 
      {cf_pref_forum_meta}
       meta_page_title="{forum_meta_page_title}" 
       meta_title="{forum_meta_title}" 
       meta_description="{forum_meta_description}" 
       meta_keywords="{forum_meta_keywords}"
      {/cf_pref_forum_meta}
     }
     
     {/exp:channel:entries}
    
    
     {embed="inc/header"}
    
      <div id="main" class="colour-pink">
    
       {embed="forum/users-online"}
    
       {embed="forum/forum"}
    
      </div>
    
     {embed="inc/footer"}

    and my Footer embed looks like this:

    </div>
    
      <footer id="main-footer">
       
       <div class="container">
        <div class="container-content" id="footer-top">
    
         {exp:channel:entries channel="preferences" orderby="date" limit="1" dynamic="off"}
          
          <ul class="list-stack">
           {cf_pref_footer}
             <li><h2 class="alternate">Information</h2></li>
            {footer_links}
             <li class="pl10"><a href="http://{page_url}" title="{title}">{title}</a></li>
            {/footer_links}
           {/cf_pref_footer}
          </ul>
          <ul class="list-stack">
            <li><h2 class="alternate">Get involved</h2></li> 
           {cf_share_footer}
            <li class="pl10">
             <a href="http://{share_footer_url}" title="{share_footer_title}" target="_blank" rel="noopener">_         {share_footer_icon}_         {share_footer_title}</a>
            </li>
           {/cf_share_footer}
          </ul>
    
          
    
          <ul class="list-stack">
          {exp:mailinglist:form list="default"}
           <li><h2 class="alternate">Stay up to date</h2></li>
           <li class="pl10"><input type="text" placeholder="Email Address" name="email"></li>
           <li class="pl10"><input type="submit" value="Subscribe"></li>
          {/exp:mailinglist:form}
          </ul>
          <ul class="list-stack">
           <li><h2 class="alternate">Share with others</h2></li>
           <li class="pl10"><a href="http://www.madebyshape.co.uk%22class=%22addthis_button_facebook" title="MadeByShape" class="addthis_button_facebook" target="_blank" rel="noopener">MadeByShape</a></li>
         </ul>
        
         <ul class="list-stack">
          <li>Copyright {current_time format="%Y"} Nail Angel</li>
         </ul>
         
        </div>
       </div>
      
      </footer>
     
      {!--{if group_id == "1"}{exp:cartthrob:debug_info}{/if}--}
    
      <!--[if lt IE 7 ]>
       [removed][removed]
       [removed]DD_belatedPNG.fix("img, .png_bg");[removed]
      <![endif]-->
      
      <!-- Analytics -->
      [removed]
       var _gaq=[["_setAccount","UA-{sn_global_google_analytics}"],["_trackPageview"]];
       (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
       g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
       s[removed].insertBefore(g,s)}(document,"script"));
      [removed]
    
     </body>
     
    </html>

    Usually in the inc/footer template i can just add dynamic=“off” but this isn’t working.

    Any ideas?

  • #2 / Apr 18, 2012 10:44am

    Shane Eckert

    7174 posts

    Hello Shape.,

    Thank you for posting your question here on the ExpressionEngine forums.

    Are you running your forums through templates?

    If so, there should be only one template and that template can only have {exp:forum} and nothing else. The channel entries tag then goes into the actually forum templates themselves.

    It’s also note noting that if forum is your trigger word then Your trigger word cannot be the same as any existing Template Group name. I notice you have a group/template called forum/forum.

    I have a feeling that when you hit the member trigger that you are losing the channel entries tag output. But I am not sure about that. Can you tell me how you are running the Forums through templates and then we can go from there.

    Cheers,

  • #3 / Apr 20, 2012 8:57am

    MadeByShape

    35 posts

    Yeah im running it through the templates.

    I am using the {exp:forum} tag, and thats in the {embed="forum/forum"} embed in my template on my original post.

    Inside that temple there is only {exp:forum} tag.

    I realised another member of our team posted on the forum about this and you replied - http://ellislab.com/forums/viewthread/212745/ but the problem hasn’t be resolved.

     

  • #4 / Apr 23, 2012 1:57pm

    Shane Eckert

    7174 posts

    Hello Shape.

    Which file in the forums do you have the footer tag?

    I am unable to reproduce this, I want to come as close to what you are doing as I can.

    Cheers,

  • #5 / Apr 24, 2012 6:18am

    MadeByShape

    35 posts

    Im unsure what you mean?

    The original code i posted is my forum template, and inside there i have an embed with the footer. Then i’ve also posted the content within that embed below it.

    OR

    Are you meaning, which file in the forum themes is the forum/exp tags?

  • #6 / Apr 25, 2012 3:48pm

    Shane Eckert

    7174 posts

    Hello Shape.,

    I am getting confused now too. 😊

    You should have {exp:forum} in a template and that’s it.

    Like template.group/template (site/forum).

    Then in the forum themes that is where you place your ExpressionEngine tags.

    It sounds like you are using templates and embedding the {exp:forum} tag in with other ExpressionEngine tags. That’s not going to work. One template only with {exp:forum} in it. Then ExpressionEngine tags in the actual forums theme files.

    Does that make sense?

    Cheers,

  • #7 / Apr 26, 2012 6:18am

    MadeByShape

    35 posts

    Gotcha!

    It’s strange how some bits are working and some are not though.

    I do think it would be better if the Forum Module had it’s only templating system (Similar to the normal templating system in EE) so you could include bits in to the forum. Because now if i need to update the stuff thats hard coded into my footer, then i will have to edit it twice. Once in my footer embed and also in my footer forum template.

  • #8 / Apr 27, 2012 3:54pm

    Shane Eckert

    7174 posts

    Hi Shape.,

    I hear you and I agree. Templating for the forums are pretty rough. I cannot wait until things are improved in that area, but I do not think it’s in the radar as of yet.

    Is there anything else I can do to help?

    Cheers,

  • #9 / Apr 28, 2012 5:02am

    MadeByShape

    35 posts

    Yeah i understand - i have only ever used the Forum once and the templating is a bit of a nightmare (as it is with all forums!) but i’d rather have features within EE CMS itself, becaUse i use that more!

    I do have another problem with the forum - when i receive a PM, and i press Reply. The recipient isn’t automatically put into the recipient box. Im guessing this is some Javascript? But i can’t seem to find it, nor get it to work?

    Any ideas?

    These are my only 2 problems 😊

  • #10 / Apr 30, 2012 3:33pm

    Shane Eckert

    7174 posts

    Hello Shape.,

    I am unable to reproduce this.

    Is the auto population of the reply field an issue in more than one browser?

    Please let me know.

    Cheers,

  • #11 / May 03, 2012 5:35am

    MadeByShape

    35 posts

    Yeah - it seems to do it in Chrome & Firefox, not tested in Safari yet though. Or IE…

    How does the field get populated? Is it through JS or a PHP script?

  • #12 / May 04, 2012 3:39pm

    Shane Eckert

    7174 posts

    Hello Shape.,

    I believe this is JS.

    I tried tweaking a few setting that I thought you might have, but nothing I do replicates this.

    Can you enable debugging and see if anything stands out?

    Thank you,

  • #13 / May 21, 2012 4:24am

    MadeByShape

    35 posts

    Shane,

    I gave it a go by placing all my footer code, into the “Forum Footer Template” but it still does exactly the same thing, it doesn’t render the exp:entries tags.

  • #14 / May 23, 2012 2:55pm

    Shane Eckert

    7174 posts

    Hello Shape.,

    Did the debugging yield any results?

    Thank you,

  • #15 / May 28, 2012 6:53am

    MadeByShape

    35 posts

    Nope it didn’t pull anything through. Any ideas?

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

ExpressionEngine News!

#eecms, #events, #releases