[SOLVED] "share" plugin not working in G2

imarefuzor

Joined: 2007-09-09
Posts: 16
Posted: Fri, 2012-08-17 18:07

I'm trying to add Facebook functionality to my website. Found a plugin called "share" loaded it, installed it. Can see that it is active. Tried to activate it in Themes/Blocks and nothing. Not visible. Tried it five ways from Sunday, not visible. Finally checked My log files and everytime i tried to load this it generated this error message: [Notice] Undefined index: photoBlocks2 in file D:\hshome\mikeleac\g2data\smarty\templates_c\%%1038871206\carbon\%%B9^B9E^B9E4A752%%photo.tpl.php on line 126

Here is my info:
Gallery URL = http://bestrockphotos.com/gallery/gallery2/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 4.4.9 cgi-fcgi
Webserver = Microsoft-IIS/6.0
Database = mysql 4.1.20-max-log, lock.system=database
Toolkits = Gd
Acceleration = full/604800, none/0
Operating system = Windows NT IISN309 5.2 build 3790
Default theme = carbon
gettext = enabled
Locale = en_US
Browser = Opera/9.80 (Windows NT 6.1; WOW64; U; Edition United States Local; en) Presto/2.10.289 Version/12.01
Rows in GalleryAccessMap table = 136
Rows in GalleryAccessSubscriberMap table = 7681
Rows in GalleryUser table = 3
Rows in GalleryItem table = 7671
Rows in GalleryAlbumItem table = 460
Rows in GalleryCacheMap table = 33360

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2012-08-17 19:17

Worked for me.
The plugin adds css/javascript to the <head /> and I don't see it on your site.

<style>
html .fb_share_button {
display: -moz-inline-block;
display:inline-block;
padding:1px 20px 0 5px;
height:15px; border:1px solid #d8dfea;
background:url(http://b.static.ak.fbcdn.net/rsrc.php/zAB5S/hash/4273uaqa.gif) no-repeat top right;
}
html .fb_share_button:hover {
color:#fff;
border-color:#295582;
background:#3b5998 url(http://b.static.ak.fbcdn.net/rsrc.php/zAB5S/hash/4273uaqa.gif) no-repeat top right;
text-decoration:none;
}
</style>
<script>
function fbs_click() {
u=location.href;
t=document.title;
window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
return false;
}
if (top.location != location) {
top.location.href = document.location.href;
}
</script>

-s
All New jQuery Minislideshow for G2/G3

 
imarefuzor

Joined: 2007-09-09
Posts: 16
Posted: Sun, 2012-08-19 23:05

Ok, new problem. Can't add "share" globally, but can if I add it one gallery at a time. Problem is after I log out as admin is no longer visible. Guest permissions are "view all versions".

 
imarefuzor

Joined: 2007-09-09
Posts: 16
Posted: Wed, 2012-08-29 14:00

I got it to work finally, had to add "share" one gallery at a time (300 times).