That fix is for vBulletin 4 not vBulletin 3.x series
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...
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
in template "vbcms_content_article_page" i have insert the facebook like button:
after the following code:HTML Code:<!-- Facebook Like --> <iframe src="http://www.facebook.com/plugins/like.php?href=http://www.vbseo.com/{vb:raw facebook_liked_url}&layout=standard&show_faces=true&width=450&action=like&font=tahoma&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:75px"></iframe> <!-- / Facebook Like -->
but the Plugin-CodeHTML 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>as well asPHP 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));
additionally doesn't work with cms. Please help me!PHP Code:];
vB_Template::preRegister('postbit',array('article_title cms_article_title' => $facebook_liked_url));
Best regards,
Majora
Mehr Besucher für dein Forum: vBulletin SEO Optimierung
You need to change
toPHP 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));
and use global_start plugin.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));
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
And you need to not refer to vbseo.com in the 'like url'.![]()
Ace Shattock / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
My Personal Sites: New Zealand Forum | vBulletin Modifications and Styles | New Zealand Food | New Zealand Android OS Talk | vBulletin Hosting
Mehr Besucher für dein Forum: vBulletin SEO Optimierung
If I'm not totally mistaken, global_start isn't fired on the CMS. Try parse_templates.
Ace Shattock / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
My Personal Sites: New Zealand Forum | vBulletin Modifications and Styles | New Zealand Food | New Zealand Android OS Talk | vBulletin Hosting
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
Mehr Besucher für dein Forum: vBulletin SEO Optimierung
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
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:
and it shows up at the spot where I want it to be.<!-- Facebook Like -->
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.patientenfragen.net/{vb:raw facebook_liked_url}&layout=button_count&sh ow_faces=true&width=150&action=like&fo nt=tahoma&colorscheme=light&height=21" allowtransparency="true" frameborder="0" scrolling="no" width="150" height="21"></iframe>
<!-- / Facebook Like -->
I created the plugin for global_start with:
But if I click the button it shows that I like every page on my forum not only the one I clicked it on.$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));
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
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![]()
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
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&layout=standard&show_faces=true&width=450&action=like &font=tahoma&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:75px"...
Brian Cummiskey / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Can this be placed anywhere on the forum? - for instance, Digitalpoint has it at the top of the page.