![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||||||||||
Add New Facebook "Like" button to your threads
![]() Developer Last Online: Aug 2020 ![]() ![]() ![]()
Please remember to click Mark as Installed if you use this modification.
Facebook has just launched their latest "Like" button to developers to use on any site. What this does is utilizes the Advertising module to add the "Like" button to the first post of each thread. Please see screenshots to get an idea. In your Admin CP go to Advertising > New Ad > Choose "Thread" from the dropdown and then select the first thread box. Give it a title (I called mine FB Like) leave "First Post Content" at default and paste in this code:
Be sure to change YOURSITE.com to your URL including your forum. The VBSEO team has instructions on how to make this work for their product here http://www.vbseo.com/f2/facebook-lik...95/#post265997 =========================================== Option 2 (different from above, do not use together) will show at top, see screenshot #3 In Postbit (or legacy) find:
Add this after:
For additional information on this button and different parameters please visit http://developers.facebook.com/docs/...e/plugins/like ================================================= For those who have asked, here is the modification adds both the "Like" button and comments to a users profile http://www.vbulletin.org/forum/showthread.php?t=239424 ================================================= Additional locations to place this code: For CMS, in vbcms_content_article_page add the code below this:
For pictures, in template album_pictureview add the code below this:
For Blog, in template blog_show_entry add at the very top. Download Now Only licensed members can download files, Click Here for more information. Addons Screenshots Show Your Support
No members have liked this post.
|
#121
|
||||
|
||||
Originally Posted by gyaronn
I just took a look and can't see why that's happening either, I even tested your code here http://developers.facebook.com/docs/...ugins/like-box I wonder if there is a problem with that right now on their end.
![]()
No members have liked this post.
|
#122
|
||||
|
||||
should it be an static HTML or something deferent ?
No members have liked this post.
|
#123
|
||||
|
||||
ok got it working the idiots on FB wrote the wrong code dont know how i did not see it before :-(
they wrote: profile_id=XXXX but its not a profile so if you delete the "profile" and stay with id=XXXX than it works perfect :-) this is the corect code to use (you need to change the XXXXXXXX to the page id):
you can see an example at my site :-) No members have liked this post.
Last edited by gyaronn; 05 May 2010 at 22:41. |
#124
|
||||
|
||||
Awesome!
I hate facebook but soo many use it. Its free SEO!! Thanks<33 edit does not work on Albums even with the changed code
As soon as i click it it shows my image than bang a second later its gone No members have liked this post.
Last edited by Xencored; 07 May 2010 at 03:53. |
#125
|
|||
|
|||
Originally Posted by ericgtr
Thanks but it still isn't working in CMS or blog.![]()
It's fine and dandy in the forum No members have liked this post.
|
#126
|
|||
|
|||
The code linked above works fine on CMS
No members have liked this post.
|
#127
|
||||
|
||||
When we see the on and off (sporadic) behavior it could have to do with FB being overloaded and not loading. That's one of the benefits of iframe, it lets the rest of the page load around it.
No members have liked this post.
|
#128
|
|||
|
|||
Originally Posted by ericgtr
I see but it works fine everytime on say forums![]()
not albums /blog No members have liked this post.
|
#129
|
||||
|
||||
Okay, just a couple of basics just to double check things. First we want to make sure you are sure the template is for the style you are using (even I overlook this sometimes) what I like to do is just type in "test" or something that will stick out where you would normally put that code and see if it displays.
No members have liked this post.
|
#130
|
||||
|
||||
Originally Posted by ericgtr
Album code![]()
I added it here because is shows alot better facebook album.png And it is now working on my blogs ![]() No members have liked this post.
|
#131
|
||||
|
||||
Firstly this is a great mod - my members love it already and I'm expecting to pick a lot of traffic up from it so thank you
![]() Secondly I can't get it working on albums. Using the {vb:raw page_URL} in the href attribute results in the following error from Facebook
No members have liked this post.
Last edited by Cadellin; 08 May 2010 at 23:50. |
#132
|
||||||||
|
||||||||
Originally Posted by ericgtr
OK I tried it with "test" and it showed up fine. Then I tried the code and nothing.![]()
Then I tried the code with the vb:if and it works.
Maybe I missed it before in the CMS because it is positioned at the bottom of the article. I now have the code at the top of the article, after
No members have liked this post.
|
#133
|
|||
|
|||
I can now get it to show in a blog by using the code without the "vb:if etc", but when you click on it the link in Facebook is going to a thread in the forum instead.
No members have liked this post.
|
#134
|
|||
|
|||
Hi,
I tried option 2, but it doesn;t show up... I have VB .3 and also edited the postbit with the code and added it, but still doesn't show up.. What am I doing wrong ? Thanks. No members have liked this post.
|
#135
|
|||
|
|||
Originally Posted by BiZiMDiYaR
In Postbit (or legacy) ![]()
Which ever you are using you edit No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 11:04.