Add Facebook Like Button to Colorbox images Gallery

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
10/5/2012 6:12:01 AM
Gravatar
Total Posts 9

Add Facebook Like Button to Colorbox images Gallery

I try to add a FB Like Button to the colorbox flyout from the Image Gallery.

I would like to add the button "like" and in colorbox but I have also put the url is different for each image so that the "Like" are unique for each photo, and not the URL of the page or all the photos have the same number of like.

In your opinion is it feasible?

For uniqueness url i think to put in the javascript code of FB in the url parameter, the URL of the image clicked, or the URL of the page + id passed as a parameter: eg: Page1.aspx?img=5

Facebook standard code:

<div id="fb-root">
&nbsp;</div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/it_IT/all.js#xfbml=1&appId=xxxx";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-font="verdana" data-href="http://www.mydomain.it/page1.aspx" data-send="false" data-show-faces="true" data-width="225">
&nbsp;</div>

10/6/2012 8:33:54 AM
Gravatar
Total Posts 18439

Re: Add Facebook Like Button to Colorbox images Gallery

I've logged a feature request for this in our project tracker but can't say how soon we will get to it.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.