Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: 1 [2] 3   Go Down

Author Topic: Socialshare Plugin now available (includes facebook and others)  (Read 29431 times)

0 Members and 1 Guest are viewing this topic.

Grayson

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Socialshare Plugin now available (includes facebook and others)
« Reply #20 on: September 11, 2012, 12:12:34 am »

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!
Logged

nowordneeded

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 97
Re: Socialshare Plugin now available (includes facebook and others)
« Reply #21 on: September 11, 2012, 05:03:36 am »

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
Logged
Sometimes my musings are too confusing for someone not inside my brain.

nowordneeded

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 97
Re: Socialshare Plugin now available (includes facebook and others)
« Reply #22 on: September 11, 2012, 05:05:03 am »

Oops, sorry. I thought this was the fix for the OnlineStats problem I had.

NWN
Logged
Sometimes my musings are too confusing for someone not inside my brain.

Deus

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 152
Re: Socialshare Plugin now available (includes facebook and others)
« Reply #23 on: September 17, 2012, 05:07:36 pm »

added stumbledupon
Code: [Select]
http://www.stumbleupon.com/submit?url=<SHAREURL>&t=<SHARETITLE>http://subsig.info/plugins/socialshare/images/stumble.png
Logged
http://www.mess-hall.co.uk/
Gallery, blog/news and PS3 gaming forum

koeppj

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Socialshare Plugin now available (includes facebook and others)
« Reply #24 on: September 19, 2012, 10:34:02 pm »

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.
Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 231
Re: Socialshare Plugin now available (includes facebook and others)
« Reply #25 on: December 29, 2012, 06:59:14 pm »

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
Logged

flapane

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: it
  • Offline Offline
  • Gender: Male
  • Posts: 249
    • Flavio's page
« Last Edit: October 02, 2014, 09:32:54 pm by flapane »
Logged

flapane

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: it
  • Offline Offline
  • Gender: Male
  • Posts: 249
    • Flavio's page
Re: Socialshare Plugin now available (includes facebook and others)
« Reply #27 on: January 13, 2013, 07:11:39 pm »

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.

ericco

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • Horlogerie-Suisse
Re: Socialshare Plugin now available (includes facebook and others)
« Reply #28 on: January 30, 2013, 04:06:54 pm »

hello, for add Pinterest it's possible ? For me, no picture ?!

jeeveser

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Socialshare Plugin now available (includes facebook and others)
« Reply #29 on: February 05, 2013, 03:27:54 am »

I installed this and I'm getting this error. Anyone know why?

Critical error
There was an error while processing a database query
Logged

jmg4life

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Socialshare Plugin now available (includes facebook and others)
« Reply #30 on: February 06, 2013, 11:35:49 pm »

<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:

Code: [Select]
$B['shareurl'] = str_replace('<SHARETITLE>', $A['title'], $B['shareurl']);
to:

Code: [Select]
$B['shareurl'] = str_replace('<SHARETITLE>', $CURRENT_PIC_DATA['filename'], $B['shareurl']);
$CURRENT_PIC_DATA['title'] didn't work for me.
Logged

jeeveser

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Socialshare Plugin now available (includes facebook and others)
« Reply #31 on: February 09, 2013, 06:58:09 am »

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.
Logged

klaas

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Socialshare Plugin now available (includes facebook and others)
« Reply #32 on: March 06, 2013, 07:23:54 am »

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.
Logged

jmcreis

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 36
Re: Socialshare Plugin now available (includes facebook and others)
« Reply #33 on: June 17, 2013, 10:14:37 am »

 :( Sometimes I do not find the thumbnail. Only a yellow ball image. Or several images but none is the correct one. Any help ? Please ?
Logged

Hanna.

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 101
Re: Socialshare Plugin now available (includes facebook and others)
« Reply #34 on: August 11, 2013, 09:17:05 pm »

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/
Logged

computel

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Socialshare Plugin now available (includes facebook and others)
« Reply #35 on: January 25, 2014, 04:57:38 pm »

How do I make the images bigger as they are really small.

Thanks great plugin

Logged

salla74

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Socialshare Plugin now available (includes facebook and others)
« Reply #36 on: May 13, 2014, 01:29:43 pm »

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
        (
           
  • => 1

        )

    [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     


==========================

               
Logged

salla74

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Socialshare Plugin now available (includes facebook and others)
« Reply #37 on: May 15, 2014, 06:22:58 pm »

Can anybody help with this issue, please?
Logged

vikler

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Socialshare Plugin now available (includes facebook and others)
« Reply #38 on: May 19, 2014, 06:40:02 pm »

Can't seem to install the plugin
Critical Error: "There was an error while processing a database query"
Can anyone please help?
Logged

Pino

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Logged
Pages: 1 [2] 3   Go Up
 

Page created in 0.029 seconds with 22 queries.