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

how to remove "FB Recommendations" from sidebar?

Discussion in 'XenForo Questions and Support' started by erich37, Jul 21, 2012.

  1. erich37

    erich37 Well-Known Member

    I have disabled FB-Login and also removed all the Facebook-stuff from my XF-Forum, but there is still the "FB Recommendations"-block (including the greencolored FB-Login button) showing in the sidebar when being at the page named "Recent Activities" at the Forum.

    How do I remove this block as well from my Forum?


    Appreciate your help!
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    How did you disable it already?

    Removal from templates?

    Because there's no need to do any of that.

    To disable Facebook like buttons (and indeed the block on the recent-activity page) you just need to go to Admin CP > http://yoursite.com/admin.php?options/list/seo#_facebookLike

    And uncheck Enable Facebook Like / Recommend Feature
     
    erich37 likes this.
  3. erich37

    erich37 Well-Known Member

    thanks Chris!

    well, I actually do not want to remove the "Facebook Like / Recommend" feature at the bottom of each thread, where it says "Share this Page".

    I just would like to remove the block "Facebook Recommendations" from the sidebar when at "Recent Activities", because there is this green-colored FB-button which says "Sign up" and this button is seemingly confusing my users.....
     
  4. erich37

    erich37 Well-Known Member

    anyone know of how to do this ?

    Many thanks!
     
  5. Chris D

    Chris D XenForo Developer Staff Member

    Sorry, I missed your message.

    The option you're looking for is at Options > Facebook Integration.

    Then you just uncheck the box Enable Facebook Registered Friends Feature
     
  6. Adam Howard

    Adam Howard Well-Known Member

    That would still remove the Facebook Likes from threads.....

    In order to remove it just form the sidebar, but keep the "share this page" feature at the end of all your threads

    sidebar_share_page

    PHP:
                    <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>
    That is the code you want to remove (or comment out)
     
    erich37 likes this.
  7. Chris D

    Chris D XenForo Developer Staff Member

    The OP is talking about this block in the sidebar which you can see on the Recent Activity page:

    recentactivityblock.PNG

    It can be turned off with the option I posted (which is below the option to turn off Like/Recommend button).
     
    erich37 likes this.
  8. Adam Howard

    Adam Howard Well-Known Member

    I'm aware of this, but....

    Turning this OFF

    www.sociallyuncensored.eu 2012-7-28 10:18:53.png

    ALSO turns this OFF

    xenforo.com 2012-7-28 10:19:33.png

    Which if you read his post, he doesn't want to do.

     
    erich37 likes this.
  9. Adam Howard

    Adam Howard Well-Known Member

    To remove the Facebook Recommendation on Recent Activity

    news_feed_page_global

    PHP:
     <xen:if is="{$xenOptions.facebookLike}">
    <
    div class="section fbRecommendations">
    <
    div class="secondaryContent">
    <
    h3>{xen:phrase facebook_recommendations}</h3>
    <
    div style="margin: 0 -@secondaryContent.padding-left -@secondaryContent.padding-bottom">
    <
    xen:container var="$facebookSdk">1</xen:container>
    <
    fb:recommendations site="{$requestPaths.host}width="@sidebar.width" height="300" header="false" font="trebuchet ms" border_color="@secondaryContent.background-color" colorscheme="@fbColorScheme"></fb:recommendations>
    </
    div>
    </
    div>
    </
    div>
    </
    xen:if>
    Comment out this

    You're done :)
     
    erich37 likes this.
  10. Chris D

    Chris D XenForo Developer Staff Member

    I'm well aware of that. But I haven't instructed him to turn that option off.

    I instructed him to turn off Enable Facebook Registered Friends Feature.

    I haven't instructed him to turn off Enable Facebook Like / Recommend Feature.

    EDIT: Although, turning the option I mentioned doesn't do what he asked anyway, it does something else. But yeah, you still didn't get what I was saying, even if what I was saying was wrong :p
     
    erich37 likes this.
  11. Adam Howard

    Adam Howard Well-Known Member

    No worries... I think we both got lost in translation.

    XenForo is the only community I know where people a jumping over one another to help other people.

    What he did ask for.... There is no "option" to do. So you have to make 2 template edits (technically 1, but 2 overall)
     
    erich37 and Chris D like this.
  12. Chris D

    Chris D XenForo Developer Staff Member

    Yeah I've never known anything quite like it.

    People go away with not one, not two, but often a page full of excellent constructive answers.
     
    erich37 and Adam Howard like this.
  13. Liam23

    Liam23 Active Member

    Where is that code located? Or am I missing something? :p
     
  14. Adam Howard

    Adam Howard Well-Known Member

    These are template edits.

    This one can be found in: sidebar_share_page

    The other is found in: news_feed_page_global
     
    erich37 and Liam23 like this.
  15. erich37

    erich37 Well-Known Member

    Thank you guys for all your help! :)
     
    Adam Howard likes this.

Share This Page