Page 5 of 11 FirstFirst 1 2 3 4 5 6 7 8 9 10 11 LastLast
Results 61 to 75 of 157
Like Tree4Likes

Facebook "like" Button for Vbulletin

This is a discussion on Facebook "like" Button for Vbulletin within the General Discussion forums, part of the vBSEO SEO Plugin category; That fix is for vBulletin 4 not vBulletin 3.x series...

  1. #61
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    That fix is for vBulletin 4 not vBulletin 3.x series
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  2. #62
    Senior Member Majora's Avatar
    Real Name
    Matze
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    287
    Liked
    4 times
    in template "vbcms_content_article_page" i have insert the facebook like button:

    HTML Code:
    <!-- Facebook Like -->
    <iframe src="http://www.facebook.com/plugins/like.php?href=http://www.vbseo.com/{vb:raw facebook_liked_url}&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=tahoma&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:75px"></iframe>
    
    <!-- / Facebook Like -->
    after the following code:

    HTML Code:
    {vb:raw css}
    
    <div class="article_width" id="article_content">
        <div class="title">
                    <h1 class="article_title cms_article_title"><span>{vb:raw title}</span>
                            <vb:if condition="$can_edit">
                                    <a href="{vb:raw page_url}/edit" class="edit"><img class="editimage" src="{vb:stylevar imgdir_cms}/edit_small.png" alt="{vb:rawphrase edit}" /></a>
                            </vb:if>
            </h1>
    but the Plugin-Code
    PHP Code:
    $facebook_liked_url $_SERVER['VBSEO_URI'];
    vB_Template::preRegister('postbit',array('facebook_liked_url' => $facebook_liked_url));
    vB_Template::preRegister('postbit_legacy',array('facebook_liked_url' => $facebook_liked_url)); 
    as well as

    PHP Code:
    ];
    vB_Template::preRegister('postbit',array('article_title cms_article_title' => $facebook_liked_url)); 
    additionally doesn't work with cms. Please help me!

    Best regards,
    Majora
    Mehr Besucher für dein Forum: vBulletin SEO Optimierung

  3. #63
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    You need to change
    PHP Code:
    $facebook_liked_url $_SERVER['VBSEO_URI'];
    vB_Template::preRegister('postbit',array('facebook_liked_url' => $facebook_liked_url));
    vB_Template::preRegister('postbit_legacy',array('facebook_liked_url' => $facebook_liked_url)); 
    to
    PHP Code:
    $facebook_liked_url $_SERVER['VBSEO_URI'];
    vB_Template::preRegister('postbit',array('facebook_liked_url' => $facebook_liked_url));
    vB_Template::preRegister('postbit_legacy',array('facebook_liked_url' => $facebook_liked_url));
    vB_Template::preRegister('vbcms_content_article_page',array('facebook_liked_url' => $facebook_liked_url)); 
    and use global_start plugin.
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  4. #64
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    4,011
    Liked
    13 times
    And you need to not refer to vbseo.com in the 'like url'.

  5. #65
    Senior Member Majora's Avatar
    Real Name
    Matze
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    287
    Liked
    4 times
    Quote Originally Posted by Mert Gökçeimam View Post
    You need to change
    PHP Code:
    $facebook_liked_url $_SERVER['VBSEO_URI'];
    vB_Template::preRegister('postbit',array('facebook_liked_url' => $facebook_liked_url));
    vB_Template::preRegister('postbit_legacy',array('facebook_liked_url' => $facebook_liked_url)); 
    to
    PHP Code:
    $facebook_liked_url $_SERVER['VBSEO_URI'];
    vB_Template::preRegister('postbit',array('facebook_liked_url' => $facebook_liked_url));
    vB_Template::preRegister('postbit_legacy',array('facebook_liked_url' => $facebook_liked_url));
    vB_Template::preRegister('vbcms_content_article_page',array('facebook_liked_url' => $facebook_liked_url)); 
    and use global_start plugin.
    That doesn't work. If I click on the facebook like link i will always redirected to the root of forumhome. :/


    And you need to not refer to vbseo.com in the 'like url'.
    Yes, of course! I have also not made.

    Best regards,
    Majora
    Mehr Besucher für dein Forum: vBulletin SEO Optimierung

  6. #66
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    4,011
    Liked
    13 times
    If I'm not totally mistaken, global_start isn't fired on the CMS. Try parse_templates.

  7. #67
    Junior Member
    Real Name
    Ignas Malinauskas
    Join Date
    May 2010
    Posts
    11
    Liked
    0 times
    guys, someone has to update first post with the current working code, because i cant understand what and where, i have to do wrong step by step from first post to get it working correctly.

    please update first post or post latest code under my post.

  8. #68
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    Quote Originally Posted by IgnasM View Post
    guys, someone has to update first post with the current working code, because i cant understand what and where, i have to do wrong step by step from first post to get it working correctly.

    please update first post or post latest code under my post.
    For vBulletin 4 you need to use Facebook "like" Button for Vbulletin
    For vBulletin 3.x you need to use Facebook "like" Button for Vbulletin

    If you need further customizations , you need to read the whole thread.
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  9. #69
    Senior Member Majora's Avatar
    Real Name
    Matze
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    287
    Liked
    4 times
    Quote Originally Posted by Ace Shattock View Post
    If I'm not totally mistaken, global_start isn't fired on the CMS. Try parse_templates.
    That work's. Thank you very much Ace!! :-**** :P

    Best regards,
    Majora
    Mehr Besucher für dein Forum: vBulletin SEO Optimierung

  10. #70
    Senior Member
    Real Name
    Franco
    Join Date
    Mar 2006
    Posts
    132
    Liked
    0 times
    Quote Originally Posted by Mert Gökçeimam View Post
    For vBulletin 3.8.x you can try the following ( not tested )


    Code:
    <!-- Facebook Like -->
    <iframe src="http://www.facebook.com/plugins/like.php?href=http://www.vbseo.com/$facebook_liked_url&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=tahoma&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:75px"></iframe>
    <!-- / Facebook Like -->
    Create a new plugin with the following content using

    Product : vBulletin
    Title : Facebook Liked vBSEO Integration
    Hook Location : postbit_display_start
    Execution order : 1

    PHP Code:
    $facebook_liked_url $_SERVER['VBSEO_URI']; 


    Hello, thanks for this mod. I'm using 3.8.4 and using the above code in showthread template. Need I change hook location from postbit_display_start to showhtread_start?
    And when user click on "like", it shows the url in his facebook profile/board? Because I tried and in my account I see only that I like the home url, not the thread url

    Thanks to everybody

  11. #71
    Senior Member StarBuG's Avatar
    Real Name
    StarBuG
    Join Date
    Jul 2007
    Posts
    480
    Liked
    15 times
    Hi

    What I try to accomplish is that the facebook like button is in the breadcrump navigation.
    I want users to be able to like "forumhome", "forumdisplay" and "showthread"

    I included the like code into the navbar_link template:
    <!-- Facebook Like -->
    <iframe src="http://www.facebook.com/plugins/like.php?href=http://www.patientenfragen.net/{vb:raw facebook_liked_url}&amp;layout=button_count&amp;sh ow_faces=true&amp;width=150&amp;action=like&amp;fo nt=tahoma&amp;colorscheme=light&amp;height=21" allowtransparency="true" frameborder="0" scrolling="no" width="150" height="21"></iframe>
    <!-- / Facebook Like -->
    and it shows up at the spot where I want it to be.

    I created the plugin for global_start with:
    $facebook_liked_url = $_SERVER['VBSEO_URI'];
    vB_Template:reRegister('FORUMHOME',array('facebook_liked_url' => $facebook_liked_url));
    vB_Template:reRegister('FORUMDISPLAY',array('facebook_liked_ur l' => $facebook_liked_url));
    vB_Template:reRegister('SHOWTHREAD',array('facebook_liked_url' => $facebook_liked_url));
    But if I click the button it shows that I like every page on my forum not only the one I clicked it on.
    Also it does only show my main forum title and not the Thread Title or the Subforum Title.

    How can I fix this?

    Thanks

    StarBuG

  12. #72
    Senior Member StarBuG's Avatar
    Real Name
    StarBuG
    Join Date
    Jul 2007
    Posts
    480
    Liked
    15 times
    Found the solution:

    I had to add:

    vB_Template:PreRegister('navbar_link',array('faceb ook_liked_url' => $facebook_liked_url));

    to the plugin.

    Now it works

  13. #73
    Senior Member profanitytalker's Avatar
    Real Name
    profanitytalker
    Join Date
    Sep 2007
    Posts
    113
    Liked
    1 times
    Quote Originally Posted by Mert Gökçeimam View Post
    The code i supplied is for vBulletin 4

    For vBulletin 3.8.x you can try the following ( not tested )


    Code:
    <!-- Facebook Like -->
    <iframe src="http://www.facebook.com/plugins/like.php?href=http://www.vbseo.com/$facebook_liked_url&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=tahoma&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:75px"></iframe>
    <!-- / Facebook Like -->
    Create a new plugin with the following content using

    Product : vBulletin
    Title : Facebook Liked vBSEO Integration
    Hook Location : postbit_display_start
    Execution order : 1

    PHP Code:
    $facebook_liked_url $_SERVER['VBSEO_URI']; 

    Hi Mert,

    This hack is working fine. Do you know the code though to only show the number of users who like the page instead of their profiles and pictures? Sort of like this...

    Doubleclick (DFP) better than pure Adsense? You can use Adsense and more

  14. #74
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    In the open graph version, this works. not sure about the iframe version, but try:

    in the url, change 'layout=standard' to 'layout=button_count'


    ...iframe src="http://www.facebook.com/plugins/like.php?href=http://www.vbseo.com/$facebook_liked_url&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like &amp;font=tahoma&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:75px"...

  15. #75
    Senior Member
    Join Date
    Oct 2005
    Posts
    131
    Liked
    0 times
    Can this be placed anywhere on the forum? - for instance, Digitalpoint has it at the top of the page.

Page 5 of 11 FirstFirst 1 2 3 4 5 6 7 8 9 10 11 LastLast

Similar Threads

  1. how can facebook like button to the left?
    By mediapac in forum General Discussion
    Replies: 3
    Last Post: 08-05-2011, 11:20 AM
  2. Facebook Like button removed with RR on?
    By insidedesign in forum Relevant Replacements
    Replies: 5
    Last Post: 10-06-2010, 08:07 PM
  3. vBulletin 4.x Facebook Like button vanishes
    By Neal in forum Troubleshooting
    Replies: 1
    Last Post: 09-23-2010, 01:02 AM
  4. Facebook-Button SHOWTHREAD
    By Cybeth in forum Deutsch
    Replies: 1
    Last Post: 08-14-2010, 01:19 PM
  5. Facebook Like Button
    By hcmagix in forum Deutsch
    Replies: 1
    Last Post: 05-18-2010, 12:26 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •