What would be the steps if I want to embed only Google +1 button (including +Snippet) in the right upper corner.
Thanks!
X3 Photo Gallery Support Forums
Basically you need to use the code originally posted for the "Social Thing", and then just remove the other items you don't want. Since we cannot build this into Imagevue, our code is just an example of how you might integrate these social modules.Asmin wrote:What would be the steps if I want to embed only Google +1 button (including +Snippet) in the right upper corner.
Thanks!
I am not 100% sure how Google reacts to this, but if you use this:MetAtroN wrote:I managed to 'install' this bar and it's working. But I'm wondering if it's possible to set it in the way that giving a G+ or "Like It" will relate to exact page or image the + was given for. As I went through code you provided there was place to change the links from imagevue demo to my own site, but with my knowledge I was only able to link the main site.
<meta property="og:image" content="<your image link>"/>
<?php
function is_facebook(){
if(stristr($_SERVER["HTTP_USER_AGENT"],'facebook') == TRUE){
return true;
}
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<!-- PAGE -->
<meta charset=utf-8 />
<!-- Facebook -->
<?php if(is_facebook()){?>
<!-- Static Meta -->
<meta property="og:site_name" content="Name of the web site" />
<meta property="fb:admins" content="admin id number" />
<meta property="fb:app_id" content="app id if you got one" />
<meta property="og:type" content="website" />
<!-- Dynamic Meta -->
<meta property="og:image" content="path to the image you want to display" />
<meta property="og:url" content="http://address of the site" />
<meta property="og:title" content="Title of the site" />
<meta property="og:description" content="1 or 2 sentences of description" />
<?php } ?>
</head>
</html>
<meta property="fb:admins" content="XXXXXXXXX" />