1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Members profile pages

Discussion in 'Troubleshooting and Problems' started by SouthDevonFishing, Jan 13, 2013.

  1. Can anyone please explain what has gone wrong with this?
    profile view.jpg
    It should be the members profile page but it has gone a bit wrong.
    I have quite a few add ons so it could be one of them interfering?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The problem only exists on profile pages?

    Try reverting any related templates such as member_view, and try disabling addons to troubleshoot.
     
  3. As far as I have noticed it is only on profile pages.
    I'll have a look at the add ons in the morning and let you know how it goes. Off the top of my head I can't say if there are any relevant but I'll disable them one by one and see if is a fix.
    Many thanks.
     
  4. Jeremy P

    Jeremy P Well-Known Member

    Looks like there's an extra </div> or an unclosed <div> in one of your templates somewhere.
     
    SouthDevonFishing and Jake Bunce like this.
  5. There is a great potential for that as I have a homemade side bar addition that is written by myself. I'll have a good look through it. Thanks (y)
     
  6. The error is somewhere in this lot...

    <xen:if hascontent="true">
    <xen:require css="sidebar_share_page.css" />
    <div class="section infoBlock sharePage">
    <div class="secondaryContent">
    <h3>{xen:phrase share_this_page}</h3>
    <xen:contentcheck>
    <xen:hook name="sidebar_share_page_options">
    <xen:if is="{$xenOptions.tweet.enabled}">
    <div class="tweet shareControl">
    <a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal"
    data-lang="{xen:helper twitterLang, $visitorLanguage.language_code}"
    data-url="{$url}"
    {xen:if {$xenOptions.tweet.via}, 'data-via="{$xenOptions.tweet.via}"'}
    {xen:if {$xenOptions.tweet.related}, 'data-related="{$xenOptions.tweet.related}"'}>{xen:phrase tweet}</a>
    </div>
    </xen:if>
    <xen:if is="{$xenOptions.facebookLike}">
    <div class="facebookLike shareControl">
    <xen:container var="$facebookSdk">1</xen:container>
    <fb:like href="{$url}" layout="button_count" action="{$xenOptions.facebookLikeAction}" font="trebuchet ms" colorscheme="@fbColorScheme"></fb:like>
    </div>
    </xen:if>
    <xen:if is="{$xenOptions.plusone}">
    <div class="plusone shareControl">
    <div class="g-plusone" data-size="medium" data-count="true" data-href="{$url}"></div>

    </xen:if>
    </xen:hook>
    </xen:contentcheck>
     
  7. There should be </xen:if> on the end but that just failed to copy to the post!
     
  8. Coolhaus

    Coolhaus Member

    You are missing a couple of closing </div>. Then it displays fine.
    HTML:
    <xen:if hascontent="true">
        <xen:require css="sidebar_share_page.css" />
        
            <div class="section infoBlock sharePage">
                <div class="secondaryContent">
                <h3>{xen:phrase share_this_page}</h3>            
                    <xen:contentcheck>
                    <xen:hook name="sidebar_share_page_options">
                        <xen:if is="{$xenOptions.tweet.enabled}">
                            <div class="tweet shareControl">
                            <a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal"
                            data-lang="{xen:helper twitterLang, $visitorLanguage.language_code}" data-url="{$url}"
                                {xen:if {$xenOptions.tweet.via}, 'data-via="{$xenOptions.tweet.via}"'}
                                {xen:if {$xenOptions.tweet.related}, 'data-related="{$xenOptions.tweet.related}"'}>{xen:phrase tweet}</a>
                            </div>                        
                        </xen:if>
                        <xen:if is="{$xenOptions.facebookLike}">
                            <div class="facebookLike shareControl">
                                <xen:container var="$facebookSdk">1</xen:container>
                                <fb:like href="{$url}" layout="button_count" action="{$xenOptions.facebookLikeAction}" font="trebuchet ms" colorscheme="@fbColorScheme"></fb:like>
                            </div>
                        </xen:if>                    
                        <xen:if is="{$xenOptions.plusone}">
                            <div class="plusone shareControl">
                                <div class="g-plusone" data-size="medium" data-count="true" data-href="{$url}">                                
                            </div>
                        </xen:if>
                    </xen:hook>
                    </xen:contentcheck> 
                </div>
            </div>
    </xen:if>
     

Share This Page