I am releasing a new version of the SocialShare plugin that now includes Facebook comments.
You can see an example at http://www.rudebastard.com/coppermine/displayimage.php?album=236&pid=8562#top_display_media (http://www.rudebastard.com/coppermine/displayimage.php?album=236&pid=8562#top_display_media).
See the included docs for setup and App ID creation.
thank you, very nice plugin!
I use the template igames so I have hard to read the black text: Do you know if it's easy to change it to a "dark" version (looked at facebooks development site and they have an option about colorscheme "dark")?
Morgan
SWEDEN
http://echinopsis.eu
To get the dark color scheme edit file codebase.php.
Replace line 300
$html .= '<p><div class="fb-comments" data-href="'.$photo_uri.'" data-num-posts="'.$CONF_SOCIALSHARE_CM['comment_num'].'" data-width="'.$CONF_SOCIALSHARE_CM['comment_width'].'"></div></p>';
with this
$html .= '<p><div class="fb-comments" data-href="'.$photo_uri.'" data-num-posts="'.$CONF_SOCIALSHARE_CM['comment_num'].'" data-width="'.$CONF_SOCIALSHARE_CM['comment_width'].'" data-colorscheme="dark"></div></p>';
Regards,
Greg
Quote from: metamog on November 23, 2011, 02:52:37 AM
I use the template igames so I have hard to read the black text: Do you know if it's easy to change it to a "dark" version (looked at facebooks development site and they have an option about colorscheme "dark")?
Morgan
SWEDEN
http://echinopsis.eu
Thank you very much Greg, that did it! :)
I have an issue with the thumbnail attached to the facebook comment:
Every time I make a comment on my CPG the comment inside my facebook has the wrong thumbnail attached. The chosen thumbnail for the attachment is always the thumbnail one step to the left, in filmstrip.
I've tried to change in config how many thumbs showing but this won't do it.
Is there any possibillity to change what thumbnail is attached by editing the code of this plugin?
Morgan
http://echinopsis.eu
I have tested this on three different sites and can't reproduce the problem. I left a comment on http://echinopsis.eu/displayimage.php?album=lastup&cat=0&pid=5437#top_display_media and it is showing the wrong photo in Facebook. Do you have some other plugins installed?
Quote from: metamog on November 23, 2011, 11:59:23 AM
I have an issue with the thumbnail attached to the facebook comment:
Every time I make a comment on my CPG the comment inside my facebook has the wrong thumbnail attached. The chosen thumbnail for the attachment is always the thumbnail one step to the left, in filmstrip.
I've tried to change in config how many thumbs showing but this won't do it.
Is there any possibillity to change what thumbnail is attached by editing the code of this plugin?
Morgan
http://echinopsis.eu
Thank you for your effort gtGillis!
I have these plugins installed:
(onlinestats): v2.6
(opensearch): v1.4
(usergal_alphatabs): v1.6
(forum): v2.1 BETA
(bbcode_control): v1.9
Morgan
SWEDEN
I've moved this plugin to the top (in plugin admin). I've removed old plugins that were not in use. Can't solve this. I don't know how to search for errors.
Anyone know how to proceed, it would be nice to have this plugin working!
Thanks!
Morgan Larsson
Sweden
http://echinopsis.eu
Hi gtgillis!
Thanks for this plugin. 2 questions to you:
1. Are you going to add Google+ button to list of social networks?
2. Is it possible somehow to inform user/admin about added via facebook comments ?
Quote from: mitko on November 25, 2011, 12:30:21 PM
Hi gtgillis!
Thanks for this plugin. 2 questions to you:
1. Are you going to add Google+ button to list of social networks?
2. Is it possible somehow to inform user/admin about added via facebook comments ?
If I'm not wrong you can add or edit what social networks/what buttons you want to this plugin. There is info inside "docs".
(about my trouble with wrong thumbnail, posted previously in this thread, the trouble occurs occasionally for me and not every time).
Morgan Larsson
Quote from: metamog on November 25, 2011, 01:26:45 PM
If I'm not wrong you can add or edit what social networks/what buttons you want to this plugin. There is info inside "docs".
Unfortunately i couldn't get how to add Google+ using this stuff :(
You can moderate the comments here -> https://developers.facebook.com/tools/comments (https://developers.facebook.com/tools/comments)
I'll have to look at google+ and get back to you.
Quote from: mitko on November 25, 2011, 12:30:21 PM
Hi gtgillis!
Thanks for this plugin. 2 questions to you:
1. Are you going to add Google+ button to list of social networks?
2. Is it possible somehow to inform user/admin about added via facebook comments ?
I dig in the code this weekend and let you know what I find.
Quote from: metamog on November 24, 2011, 12:05:26 AM
I've moved this plugin to the top (in plugin admin). I've removed old plugins that were not in use. Can't solve this. I don't know how to search for errors.
Anyone know how to proceed, it would be nice to have this plugin working!
Thanks!
Morgan Larsson
Sweden
http://echinopsis.eu
Thank you very much gtgillis, it would be real nice to have this plugin showing the proper thumbnail on my gallery!
Morgan Larsson
Quote from: gtgillis on November 25, 2011, 11:16:38 PM
You can moderate the comments here -> https://developers.facebook.com/tools/comments (https://developers.facebook.com/tools/comments)
I'll have to look at google+ and get back to you.
Create a new share and use this ->
https://plusone.google.com/_/+1/confirm?hl=en&url=http://<SHAREURL>
When you click the link you will see the field that says share whats new. Enter some text and the photo will show up then click share. You will have to manually close the window. There may be a better url but I have yet to find it.
Look for logos here
http://www.google.com/search?tbm=isch&hl=en&source=hp&biw=1920&bih=946&q=gppgle+plus+logo&gbv=2&oq=gppgle+plus+logo&aq=f&aqi=&aql=&gs_sm=e&gs_upl=2716l9044l0l9435l16l15l0l4l0l0l234l1727l1.7.3l11l0 (http://www.google.com/search?tbm=isch&hl=en&source=hp&biw=1920&bih=946&q=gppgle+plus+logo&gbv=2&oq=gppgle+plus+logo&aq=f&aqi=&aql=&gs_sm=e&gs_upl=2716l9044l0l9435l16l15l0l4l0l0l234l1727l1.7.3l11l0)
Yep, google+ is working now, thank you!
Re to facebook: it looks like i need to create facebook application first to get access to this comments page. Am i right?
Quote from: mitko on November 26, 2011, 10:17:07 AM
Yep, google+ is working now, thank you!
Re to facebook: it looks like i need to create facebook application first to get access to this comments page. Am i right?
You are right, I've made one.
Morgan
Quote from: mitko on November 26, 2011, 10:17:07 AM
Yep, google+ is working now, thank you!
Re to facebook: it looks like i need to create facebook application first to get access to this comments page. Am i right?
Yes, there are detailed instruction in the plugin docs or you can read theme here ->http://www.rudebastard.com/coppermine/plugins/socialshare/docs/help.htm#_Facebook_app (http://www.rudebastard.com/coppermine/plugins/socialshare/docs/help.htm#_Facebook_app).
Tried to follow this instruction
Created app than enter $CONF_SOCIALSHARE_CM['comment_appid'] and $CONF_SOCIALSHARE_CM['comment_nameid']
Comment page is available at the picture page. But moderation queue in FB still empty. Suspect the problem is simple, but cant understand :)
Quote from: mitko on November 26, 2011, 05:39:59 PM
Tried to follow this instruction
Created app than enter $CONF_SOCIALSHARE_CM['comment_appid'] and $CONF_SOCIALSHARE_CM['comment_nameid']
Comment page is available at the picture page. But moderation queue in FB still empty. Suspect the problem is simple, but cant understand :)
If you had comments before you created and entered your app id and name id you may not be able to moderate those comments on Facebook since they are tied together.
No, i tried to add tests comments after creation of application, but they didn't appear. May be it's the syntax problem? Do i need to keep values after = in ' ' etc ?
Quote from: mitko on November 27, 2011, 08:43:47 AM
No, i tried to add tests comments after creation of application, but they didn't appear. May be it's the syntax problem? Do i need to keep values after = in ' ' etc ?
If your App ID is 123456789123 then you should edit the config file and replace YOUR_APP_ID_GOES_HERE with 123456789123
//Enter your App ID here
$CONF_SOCIALSHARE_CM['comment_appid'] = "123456789123";
When I click on my profile page in Facebook and look at the url I see https://www.facebook.com/greg.gillis. This shows that my facebook ID is greg.gillis. This is the Facebook ID of the person that can moderate the comments. Put your own Facebook ID here.
//Enter your FB account name
$CONF_SOCIALSHARE_CM['comment_nameid'] = "greg.gillis";
Deleted
To force the correct photo will require you to edit two theme files. Theme.php and template.html. I tried doing this in the plugin itself but ran into a few issues. I'll keep looking but for now this works.
Let me know the name of the theme you are using and I can give your more detailed instructions for your theme.
Here are the changes for the theme I am using, mac_ox_x.
edit theme.php and add three FB_META_ lines to $template_vars.
$template_vars = array('{LANG_DIR}' => $lang_text_dir,
'{TITLE}' => $CONFIG['gallery_name'] . ' -- ' . strip_tags(bb_decode($section)),
'{CHARSET}' => $charset,
'{META}' => $meta,
'{GAL_NAME}' => $CONFIG['gallery_name'],
'{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],
'{SYS_MENU}' => theme_main_menu('sys_menu'),
'{SUB_MENU}' => theme_main_menu('sub_menu'),
'{ADMIN_MENU}' => theme_admin_mode_menu(),
'{CUSTOM_HEADER}' => $custom_header,
'{JAVASCRIPT}' => theme_javascript_head(),
'{MESSAGE_BLOCK}' => theme_display_message_block(),
'{FB_META_TITLE}' => $CONFIG['gallery_name'],
'{FB_META_DESC}' => strip_tags(bb_decode($section)),
'{FB_META_IMG}' => $_CONF['site_url'].'/coppermine/'.$CURRENT_PIC_DATA['url']
);
edit template.html. Add three lines
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
<meta name="title" content="{FB_META_TITLE}" />
<meta name="description" content="{FB_META_DESC}" />
<link rel="image_src" href="{FB_META_IMG}" />
Quote from: metamog on November 23, 2011, 11:59:23 AM
I have an issue with the thumbnail attached to the facebook comment:
Every time I make a comment on my CPG the comment inside my facebook has the wrong thumbnail attached. The chosen thumbnail for the attachment is always the thumbnail one step to the left, in filmstrip.
I've tried to change in config how many thumbs showing but this won't do it.
Is there any possibillity to change what thumbnail is attached by editing the code of this plugin?
Morgan
http://echinopsis.eu
Thank you gtgillis!
I'm using the theme "Igames".
Can I use your code anyway?
Morgan Larsson
my theme.php looks nothing like yours code (on macosx).
I've edited the "theme.html" but that didn't make it (no thumbnail at all).
Morgan Larsson
You will need to add the following function to your theme.php. Edit theme.php go to the bottom of the file and insert the following code just before the ?>
function pageheader($section, $meta = '')
{
global $CONFIG, $THEME_DIR, $CURRENT_PIC_DATA, $_CONF;
global $template_header, $lang_charset, $lang_text_dir;
$custom_header = cpg_get_custom_include($CONFIG['custom_header_path']);
$charset = ($CONFIG['charset'] == 'language file') ? $lang_charset : $CONFIG['charset'];
header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
header("Content-Type: text/html; charset=$charset");
// user_save_profile();
$template_vars = array('{LANG_DIR}' => $lang_text_dir,
'{FB_META_TITLE}' => $CONFIG['gallery_name'],
'{FB_META_DESC}' => strip_tags(bb_decode($section)),
'{FB_META_IMG}' => $_CONF['site_url'].'/coppermine/'.$CURRENT_PIC_DATA['url']
);
echo template_eval($template_header, $template_vars);
}
Double check the the top of your template.html looks like this
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
<meta name="title" content="{FB_META_TITLE}" />
<meta name="description" content="{FB_META_DESC}" />
<link rel="image_src" href="{FB_META_IMG}" />
<title>{TITLE}</title>
Quote from: metamog on November 29, 2011, 07:41:27 PM
my theme.php looks nothing like yours code (on macosx).
I've edited the "theme.html" but that didn't make it (no thumbnail at all).
Morgan Larsson
When I did what said in your last message: I've got problem with all my "buttons" top menu. See attachment.
OK. Change the function in theme.php to the following.
function pageheader($section, $meta = '')
{
global $CONFIG, $THEME_DIR, $CURRENT_PIC_DATA, $_CONF;
global $template_header, $lang_charset, $lang_text_dir;
$custom_header = cpg_get_custom_include($CONFIG['custom_header_path']);
$charset = ($CONFIG['charset'] == 'language file') ? $lang_charset : $CONFIG['charset'];
header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
header("Content-Type: text/html; charset=$charset");
// user_save_profile();
$template_vars = array('{LANG_DIR}' => $lang_text_dir,
'{TITLE}' => $CONFIG['gallery_name'] . ' -- ' . strip_tags(bb_decode($section)),
'{CHARSET}' => $charset,
'{META}' => $meta,
'{GAL_NAME}' => $CONFIG['gallery_name'],
'{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],
'{SYS_MENU}' => theme_main_menu('sys_menu'),
'{SUB_MENU}' => theme_main_menu('sub_menu'),
'{ADMIN_MENU}' => theme_admin_mode_menu(),
'{CUSTOM_HEADER}' => $custom_header,
'{JAVASCRIPT}' => theme_javascript_head(),
'{MESSAGE_BLOCK}' => theme_display_message_block(),
'{FB_META_TITLE}' => $CONFIG['gallery_name'],
'{FB_META_DESC}' => strip_tags(bb_decode($section)),
'{FB_META_IMG}' => $_CONF['site_url'].'/coppermine/'.$CURRENT_PIC_DATA['url']
);
echo template_eval($template_header, $template_vars);
}
Quote from: metamog on November 29, 2011, 08:23:10 PM
When I did what said in your last message: I've got problem with all my "buttons" top menu. See attachment.
Thank you gtgillis!
Now it doesn't show up any thumbnail at facebook (tried 2 times).
Morgan Larsson
Make sure that template.html has the following 3 lines just below the <head> tag.
<meta name="title" content="{FB_META_TITLE}" />
<meta name="description" content="{FB_META_DESC}" />
<link rel="image_src" href="{FB_META_IMG}" />
Once you have this and the function added to theme.php it should work.
I also did a view source of the web page below and I see the meta name="title", meta name="description" and link rel="image_src".
http://www.rudebastard.com/coppermine/displayimage.php?album=31&pid=2742#top_display_media
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Pragma" content="no-cache" />
<meta name="title" content="Photo Gallery" />
<meta name="description" content="0012 - 0012-10" />
<link rel="image_src" href="http://www.rudebastard.com/coppermine/../Photographs/0012/normal_0012-10.jpg" />
Quote from: metamog on November 29, 2011, 08:45:55 PM
Thank you gtgillis!
Now it doesn't show up any thumbnail at facebook (tried 2 times).
Morgan Larsson
Same trouble: no thumbnail at facebook comment.
(I've also noticed that people has replied to comments on my CPG, that was not updated to facebook, I never got any hint about people replying until I saw the replies at my CPG)
Morgan Larsson
http://echinopsis.eu
does this use the new styled version of FB comments? the one in the other share/comment plugin uses an old style, I can't remember off the top of my head the difference...
but anyway, what I would really like to see as a feature request:
ability to email admin upon comment
insert comment into CPG DB so comments aren't lost if FB does an update (this is whats about to happen to me since I need to switch it to the new style of FB comments, its going to cause me to lose all the comments that were made since I put in the other plugin)
Two things:
1. Can I turn off the FB comments? I can't see how.
2. Instead of icons under the picture I get text links, like the attachment. Any ideas on what's wrong (keep in mind I'm ungeeky please :-\)
oops, site: http://www.chainsawphotos.co.nz/gallery/index.php
Quote from: Russ_ on March 02, 2012, 12:00:53 AM
Two things:
1. Can I turn off the FB comments? I can't see how.
2. Instead of icons under the picture I get text links, like the attachment. Any ideas on what's wrong (keep in mind I'm ungeeky please :-\)
I would guess that it's related to your theme's CSS. What theme are you using and is it somewhere where I can download it?
It's "curve dark": http://coppermine-gallery.net/demo/cpg15x/?theme=curve_dark
Here: http://sourceforge.net/projects/coppermine/files/Themes/1.5.x/cpg1.5.x_theme_curve_dark_v1.0.zip/download
Thanks.
Quote from: Russ_ on March 04, 2012, 08:29:43 PM
It's "curve dark": http://coppermine-gallery.net/demo/cpg15x/?theme=curve_dark
Here: http://sourceforge.net/projects/coppermine/files/Themes/1.5.x/cpg1.5.x_theme_curve_dark_v1.0.zip/download
Thanks.
I tried the curve_dark theme and did not see any problems there. What plugins do you have installed? Are you running Coppermine bridged with a CMS?
No other plug-ins at all, and no cms.
Maybe I'll try uploading all the theme files again.
Re-uploaded theme and socialshare plug-in, with same result of text only links, not icons.
Totally unchanged theme except picture at the top, which has same dimensions as original.
I haven't left it turned on as it looks a little silly!
Tried changing theme to "curve" (with nothing at all changed in theme, not even top picture)with same result.
Does the old plug-in, before Facebook comments still go okay? maybe I'll just use that, I don't want the FB comments anyway. This one: http://forum.coppermine-gallery.net/index.php/topic,71844.0.html.
Hi.. Your plugin is great! But, I want it to appear below the File Title, Description and the voting.. How can I make that happen?
Benjamin.
Finnish lang file
Updated Finnish lang file!
Should there be place for FB ID and APPID somewhere in configuration. I havent found it.
Anyway, comments seems to work, with wrong thumbnail in a FB posts. Photo is right when you click it.
Template Gin&Tonic
http://www.photorgasm.com (http://www.photorgasm.com)
Great plugin! Just what I needed.
Is there a way you can add a feature so when users post a facebook comment to
a photo then the facebook comment is shown on the Last Comments page?
AWESOME plugin!!
I install this mod but I receive this error message..
Critical error
There was an error while processing a database query
Any suggestion?
Quote from: purepense on July 24, 2013, 11:20:24 AM
I install this mod but I receive this error message..
Critical error
There was an error while processing a database query
Any suggestion?
in scheme.sql
TYPE=MY...
change to
ENGINE=MY.....
how can i remove comments of the users??
Quote from: kutanime.net.ms on July 25, 2013, 01:47:07 AM
in scheme.sql
TYPE=MY...
change to
ENGINE=MY.....
Thank you for your help, it works perfect !!
having the same issues the photo isn't showing up on facebook but all else works