forum.coppermine-gallery.net
Support => cpg1.5 plugins => cpg1.5.x Support => cpg1.5 plugin contributions => Topic started by: gtgillis on March 31, 2011, 08:24:19 pm
-
The Socialshare plugin is now available for Coppermine 1.5.x users.
This plugin is for users that want to share photos on social networking sites. It comes with Facebook and Google bookmarks enabled and 40 more social networking sites to choose from. You can also add new sites that are not on the list. Easy install. Easy to use.
-
I forgot to include my web site addresses.
This plugin is running on a bridged Geeklog site at:
http://www.sillig.com/coppermine
I also have it installed on a test site at:
http://www.rudebastard.com:8080/coppermine/
The plugin is not running here yet as I am about to upgrade my big bridge site that has 8998 files in 239 albums:
http://www.rudebastard.com/coppermine/
-
great plugin.. easy and quick
-
nice one, Thanks!!!
-
Ive downloaded this and tried to install but I have no clue as to what to do. Ive uploaded all the files within the .zip to the required folders. If I try to overwrite my current index.php then my site doesnt work. I then took the index.php and combined it with my current index.php. I go into my admin page but i dont see this plug in as an installed plug-in. Ive tried uploading the .zip directly to the plug-in manager but get the "The file uploaded is not a plugin package." error message. LOL. I have no clue as to what Im doing but Im at least trying ;-) Any help would be appreciated. Thanks.
-
I always d/l a plug-in, unzip it on my local machine and then ftp it into the plug-ins folder in the Coppermine directory on my webserver at my ISP. Then I log-in to my Coppermine gallery and go to Configuration - Plug-in Manager. If you do those 2 things you SHOULD see the plug-in in the "Plug-Ins Not Installed" list. To install it, click on the package with green check mark icon. It will install, you might want to re-arrange its order in the installed list and then configure it.
Try all that and then come back if you are still stuck.
-
Here's the italian lang file
But the plugin gives an error when trying to share on Facebook.
-
Great plugin, many thanks!
Is it possible to add there also Facebook "Like" and Google +1 functions?
-
thanks for program ^^
-
Great work! A few issues that will keep me from using it:
Can't add or modify (Was hoping to add Pinterest.com ). I get the Error:
Fatal error: Call to undefined function: htmlspecialchars_decode() in /usr/local/xxx/vhosts/xxxxxx/webspace/httpdocs/photo/plugins/socialshare/index.php on line 151 (Modified permissions etc. No luck - virtual host issue??)
Doesn't pass validation once installed. (& = '&' ??)
For the FB TITLE it posts "{FB_META_TITLE}" (Could be issue in the Theme I'm using or other plugins installed)
I will check back, and or see if I can correct the validation issues myself.
I will install a tin can heater version of cpg 1.5.20, and run some more tests and post the link.
Anyone else having issues?
-PCK
-
Yeah, I have this installed and it worked good for start, but now it doesn't show up under picture anymore.
-
Have you installed other plugins? Try removing them.
Yeah, I have this installed and it worked good for start, but now it doesn't show up under picture anymore.
-
Yes I have. I had LightBox NotesFor.net (lightbox_notes_for_net): v3.2, Link target (link_target): v1.2 and External tracker (external_tracker): v2.8 installed. I uninstalled those two first and now it seems to work again. And now I tested it with that LightBox-plugin and this socialshare-plugin doesn't work. So problem is with that one.
-
Hi there. How would I add Tumblr to the list of social sites?
Thanks in advance.
NWN
-
look at the plugins help files:
socialshare/docs/help.htm#_Creating_a_share
-
Did I miss something?
I'm installing from the plugin link and getting ....
Critical Error: "There was an error while processing a database query"
-
The only thing I can think of is that the plugin didn't install correctly. I have installed it on one of my gallery sites. Here is a link: http://christopher-meloni.org/gallery/displayimage.php?album=lasthits&cat=0&pid=19017#top_display_media .
Try deactivating the plugin and reinstalling the package then reactivate.
NWN
-
Yep, Tried direct installed with zip file ... nothing. Deactivated, then uploaded files direct .... still nothing.
It shows in the plugin list. I get the error when I try and activate.
-
The same kind of error happens when I activate the OnlineStats on another site I run. I'm sorry I don't have the solution for you.
NWN
-
in schema.sql change TYPE=MyISAM to ENGINE=MyISAM
-
Jeff. that was the ticket. Works like a charm. Thank you for your desire to help others. Thank you gtgillis for a much needed plugin. Works exactly as I desired!
-
Thanks for the help in that. But what happens when I do an upgrade from say 15.2.0 to a 15.2.1. Won't I have to re-edit the file?
NWN
-
Oops, sorry. I thought this was the fix for the OnlineStats problem I had.
NWN
-
added stumbledupon
http://www.stumbleupon.com/submit?url=<SHAREURL>&t=<SHARETITLE>
http://subsig.info/plugins/socialshare/images/stumble.png
-
Great plugin.
My I make a suggestion?
I run CPG behind a firewall with Apache serving as a reverse proxy. This means the CPG is not really running on http://www.koeppster.net/koepppics. I noticed in the code you are using HTTP_HOST to get the FQN of the server. This presents a problem with CPG running behind a proxy because the URL posted on the social site will most likely not be resolvable. How did I resolve?
Step 1 - Hack the code...New code below (this is in codebase.php at line 222) is now getting SERVER_NAME and not HTTP_HOST
$_SERVER['HTTP_HOST'] = $superCase->server->getEscaped('SERVER_NAME')
Step 2 - Updated my Apache config for the site running CPG (not the proxy server). Of HTTP servers will work differently.
ServerName www.koeppster.net
UseCanonicalName On
Voila - Now the plugin will generate a URL to the Proxy Server and not the server running CPG behind the firewall.
-
For some reason al shares with this plugin is without Thumbnail. (it worked before !!)
Cleared al Explorers temp and cookies, but still the same issue.
Any thoughts ?
Greetings,
Edward
-
Hi
<SHARETITLE> doesn't seem to work.
The URL (whose photo has a title and a description): http://www.test.com/gallery/mostra-novita-0-1218-_Gatto_Natale_2012_2_.html#top
Gives empty strings for the title field:
http://www.facebook.com/share.php?u=www.test.com/gallery/mostra-1218-_Gatto_Natale_2012_2_.html&t=
http://www.blogger.com/blog-this.g?n=&u=http://www.test.com/gallery/mostra-1218-_Gatto_Natale_2012_2_.html <--- BLOGGER, made by me, download the attached icon
http://www.google.com/bookmarks/mark?op=edit&bkmk=www.test.com/gallery/mostra-1218-_Gatto_Natale_2012_2_.html&title=&annotation=
http://www.myspace.com/Modules/PostTo/Pages/?u=www.test.com/gallery/mostra-1218-_Gatto_Natale_2012_2_.html&t=
The same things happens in the developer's gallery ( http://www.sillig.com/coppermine/displayimage.php?album=1&pid=2#top_display_media ), so it doesn't seems to be a problem related to my gallery.
Any hints?
Thanks
-
Woops.
I forgot to say that also <SHARETEXT> gives an empty string.
Furthermore, the share buttons seems to appear only when I roll over them, as shown in the attachments.
-
hello, for add Pinterest it's possible ? For me, no picture ?!
-
I installed this and I'm getting this error. Anyone know why?
Critical error
There was an error while processing a database query
-
<SHARETITLE> doesn't seem to work.
You're right. I noticed the same.
What I did (and I know it's not the best solution, but it's a temporary workaround) is to change the title to the filename.
Edit in codebase.php:
$B['shareurl'] = str_replace('<SHARETITLE>', $A['title'], $B['shareurl']);
to:
$B['shareurl'] = str_replace('<SHARETITLE>', $CURRENT_PIC_DATA['filename'], $B['shareurl']);
$CURRENT_PIC_DATA['title'] didn't work for me.
-
Hi
This is a great plugin!
I have just one question:
I installed this plugin and added a Pinterest. For me, the link is working perfectly. However for several other people using IE, the Pinterest link is not working. They get a 404.
I have links to Facebook, Twitter and Google also and they work fine for the IE people. Its just the one that I manually added in the field that isn't working for them, yet it works for me in Firefox and Safari. Is there some programming in the "Add" feature that may not be IE friendly?
I uploaded the Pinterest icon to the images folder and formatted the string into the Add field in admin for the plugin. It showed up properly in the list after I added it and all seems well on back end and front end for me.
Seems like IE people are having issues with it.
Has anyone else noticed this? Does anyone have a fix?
Thanks in advance and God bless.
-
Did I miss something?
I'm installing from the plugin link and getting ....
Critical Error: "There was an error while processing a database query"
I uninstalled the plugin, re-install it and also got this error message. When I checked the database with PhpMyAdmin I saw there was still a socialshare map. After I deleted this file I could re-install the plugin without any errors.
-
:( Sometimes I do not find the thumbnail. Only a yellow ball image. Or several images but none is the correct one. Any help ? Please ?
-
One tip is to have one button called "SHARE THIS" so it grabs all the social medias out there, like here > http://www.kristindaily.org/2013/08/meet-kristin-in-las-vegas/
-
How do I make the images bigger as they are really small.
Thanks great plugin
-
I have been trying several times to install this plugin, but unsuccessful.
I get the attached error message.
Please, help will be much appreciated.
The debug info is as follows:
USER:
------------------
Array
(
[ID] => ac1cf78db445d3773b5ec2cc45994859
[am] => 1
[lang] => english
[liv_a] => Array
(
- => 105
[1] => 7
[2] => 104
[3] => 100
[4] => 107
)
[liv] => Array
(
- => 24504
[1] => 24507
[2] => 24802
[3] => 24414
[4] => 24415
)
[sort] => na
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_name] => admin
[groups] => Array
(
)
[disk_max] => 0
[disk_min] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 1
[can_post_comments] => 1
[can_upload_pictures] => 1
[can_create_albums] => 1
[has_admin_access] => 1
[access_level] => 3
[pub_upl_need_approval] => 0
[priv_upl_need_approval] => 0
[group_name] => Administrators
[can_create_public_albums] => 0
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 1
[allowed_albums] => Array
(
)
)
==========================
Queries:
------------------
Array
(
- => SELECT name, value FROM cpg_config [include/init.inc.php:179] (0.24 ms)
[1] => SELECT * FROM cpg_plugins ORDER BY priority
[include/plugin_api.inc.php:52] (0.09 ms)
[2] => SELECT user_id, time FROM `salla74_gall14`.cpg_sessions WHERE session_id = 'ff48f5b5d4802d73173f593685e44243' [bridge/coppermine.inc.php:267] (0.1 ms)
[3] => SELECT user_id, user_password FROM `salla74_gall14`.cpg_users WHERE user_id = 1 [bridge/coppermine.inc.php:279] (0.08 ms)
[4] => SELECT u.user_id AS id, u.user_name AS username, user_password AS password, u.user_group AS group_id FROM `salla74_gall14`.cpg_users AS u LEFT JOIN `salla74_gall14`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' [bridge/udb_base.inc.php:70] (0.08 ms)
[5] => SELECT user_group_list FROM `salla74_gall14`.cpg_users AS u WHERE user_id='1' AND user_group_list <> '' [bridge/coppermine.inc.php:205] (0.08 ms)
[6] => SELECT MAX(group_quota) AS disk_max, MIN(group_quota) AS disk_min, MAX(can_rate_pictures) AS can_rate_pictures, MAX(can_send_ecards) AS can_send_ecards, MAX(can_post_comments) AS can_post_comments, MAX(can_upload_pictures) AS can_upload_pictures, MAX(can_create_albums) AS can_create_albums, MAX(has_admin_access) AS has_admin_access, MAX(access_level) AS access_level, MIN(pub_upl_need_approval) AS pub_upl_need_approval, MIN( priv_upl_need_approval) AS priv_upl_need_approval FROM cpg_usergroups WHERE group_id in (1) [bridge/udb_base.inc.php:323] (0.09 ms)
[7] => SELECT group_name FROM cpg_usergroups WHERE group_id= 1 [bridge/udb_base.inc.php:327] (0.09 ms)
[8] => SELECT COUNT(*) FROM cpg_categorymap WHERE group_id in (1) [bridge/udb_base.inc.php:340] (0.08 ms)
[9] => SELECT lang_id FROM cpg_languages WHERE enabled='YES' [include/init.inc.php:330] (0.14 ms)
[10] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 [include/init.inc.php:388] (0.13 ms)
[11] => DELETE FROM cpg_banned WHERE expiry < '2014-05-13 07:15:14' [include/init.inc.php:444] (0.31 ms)
[12] => SELECT null FROM cpg_banned WHERE (user_id=1 OR '109.69.4.33' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:460] (0.09 ms)
[13] => SELECT plugin_id FROM cpg_plugins WHERE path = 'socialshare' [include/plugin_api.inc.php:125] (0.08 ms)
[14] => SELECT priority FROM cpg_plugins ORDER BY priority DESC LIMIT 1 [include/plugin_api.inc.php:414] (0.08 ms)
[15] =>
CREATE TABLE `cpg_socialshare` (
`sid` int(10) NOT NULL AUTO_INCREMENT,
`shareorder` mediumint(8) unsigned NOT NULL,
`shareurl` text NOT NULL,
`sharetitle` text NOT NULL,
`shareimage` text NOT NULL,
`is_enabled` tinyint(1) unsigned NOT NULL,
`owner_id` mediumint(8) unsigned NOT NULL,
PRIMARY KEY (`sid`)
) TYPE=MyISAM [plugins/socialshare/codebase.php:696] (0.17 ms)
[16] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' [include/functions.inc.php:4841] (0.18 ms)
[17] => SELECT lang_id, abbr FROM cpg_languages WHERE available='YES' AND enabled='YES' [include/themes.inc.php:2292] (0.08 ms)
)
==========================
GET :
------------------
Array
(
[op] => install
[p] => socialshare
[form_token] => 90b3a2c903e2ecdb70fb44d7acf4e9a0
[timestamp] => 1399979706
)
==========================
POST :
------------------
Array
(
)
==========================
COOKIE :
------------------
Array
(
[__utma] => 62316073.670866044.1399502786.1399769846.1399935535.5
[__utmz] => 62316073.1399502786.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
[035d086ea1528b62c894fc2b195c42ba] => 272949e6897298ef206abdf75615b1ab
[cpg15x_data] => YTo2OntzOjI6IklEIjtzOjMyOiJhYzFjZjc4ZGI0NDVkMzc3M2I1ZWMyY2M0NTk5NDg1OSI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjtzOjU6Imxpdl9hIjthOjU6e2k6MDtpOjEwNTtpOjE7aTo3O2k6MjtpOjEwNDtpOjM7aToxMDA7aTo0O2k6MTA3O31zOjM6ImxpdiI7YTo1OntpOjA7czo1OiIyNDUwNCI7aToxO3M6NToiMjQ1MDciO2k6MjtzOjU6IjI0ODAyIjtpOjM7czo1OiIyNDQxNCI7aTo0O3M6NToiMjQ0MTUiO31zOjQ6InNvcnQiO3M6MjoibmEiO30=
[PHPSESSID] => vi8rgmdf01hf3k4r9pt0dm6co0
)
==========================
SESSION :
------------------
Array
(
[php_captcha] => 209e44ad4045c58512d7548d85cade7f
)
==========================
VERSION INFO :
------------------
PHP version 5.3.28 OK
MySQL version 5.5.36-cll-lve OK
Coppermine version 1.5.28 stable
==========================
Module: GD
------------------
Exact version 2.1.0
GD Version bundled (2.1.0 compatible)
FreeType Support 1
FreeType Linkage with freetype
T1Lib Support 1
GIF Read Support 1
GIF Create Support 1
JPEG Support 1
PNG Support 1
WBMP Support 1
XPM Support 1
XBM Support 1
JIS-mapped Japanese Font Support
==========================
Key config settings
------------------
site_url http://www.tirona-tv.net/gallery/
charset utf-8
allow_private_albums 1
cookie_name cpg15x
cookie_path /
impath /usr/bin/
lang english
main_page_layout breadcrumb/catlist/alblist/random,2/lastup,2
silly_safe_mode 0
smtp_host
theme water_drop
thumb_method gd2
==========================
Plugins
------------------
Name Custom thumbnail
Actions page_start
Filters file_data
--------------
Name Flash Media Player
Actions plugin_install, plugin_uninstall, plugin_cleanup, page_start
Filters html_other_media
--------------
Name Remote Videos
Actions plugin_install, plugin_uninstall
Filters html_other_media
--------------
Name MP4 Player
Actions plugin_install, plugin_uninstall, plugin_cleanup
Filters html_other_media
--------------
Name File replacer
Actions page_start
Filters file_data
--------------
Name SocialShare Plugin
Actions page_start, plugin_install, plugin_uninstall
Filters
--------------
==========================
Server restrictions
------------------
safe_mode
safe_mode_exec_dir
safe_mode_gid
safe_mode_include_dir
sql.safe_mode
disable_functions
file_uploads 1
include_path .:/opt/alt/php53/usr/share/pear:/opt/alt/php53/usr/share/php
open_basedir
allow_url_fopen 1
max_execution_time 30
max_input_time -1
upload_max_filesize 128M
post_max_size 128M
memory_limit 128M
suhosin.post.max_vars
suhosin.request.max_vars
==========================
Page (performance)
------------------
Parameter Current Peak
Memory usage 5.60 MiB 7.12 MiB
Page generation 35.32 ms 35.32 ms
Page query time 2.2 ms 2.2 ms
Page query count 18 18
==========================
-
Can anybody help with this issue, please?
-
Can't seem to install the plugin
Critical Error: "There was an error while processing a database query"
Can anyone please help?
-
I created new for Tumblr.
I entered the code http://www.tumblr.com/share/photo?source=<SHAREURL>&t=<SHARETITLE>, but instead appear correctly https://www.tumblr.com/share/photo?source=http://votalatop.altervista.org/displayimage.php?album=179&pid=5997#top_display_media, looks like this https://www.tumblr.com/share/photo?source=votalatop.altervista.org/displayimage.php#top_display_media&t=
Why?
-
I was able to install this plug-in, and it seems to work...sort of. My problem is my gallery is primarily set up for registered users only. There are some galleries where anyone can see them but most are restricted to registered users only. As long as you are signed into the gallery, the shared picture seems to show on Facebook but it doesn't if not signed in. Is there a way to make the shared pic seen on facebook regardless of whether it's coming from a "registered" album only or is this a loss situation? thanks...
-
Thanks for the plugin but I'm having trouble adding Instagram to it. Anyone know how to do this? I'm using "https://www.facebook.com/share.php?u=<SHAREURL>&t=<SHARETITLE>" as the URL but it doesn't seem to be working? Also, I'd like to add their icon. Thanks