Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Disabling Social network sharing doesn't work

11 years 3 months ago
  • Marc's Avatar
    Topic Author
  • Marc
  • Offline
  • Fresh Boarder
  • Posts: 23
  • Thank you received: 5
Licenses:
JomSocial Expired

ISSUE SUMMARY:

I have disabled Social Sharing in the Jomsocial backend configuration.
However, on photos and albums the sharing option still shows.
How do we disable sharing and the download links across the entire site?

Attachments:
11 years 3 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Marc,

1. You should modify jomsocial configuration->Site->Social Bookmarking change to No
2. You should modify Photos->Photos Setting->Delete Original Photos change to Yes

thank you

11 years 3 months ago
  • Marc's Avatar
    Topic Author
  • Marc
  • Offline
  • Fresh Boarder
  • Posts: 23
  • Thank you received: 5
Licenses:
JomSocial Expired

Um....no.
Already got those set that way as per the original post.
The problem is that the share buttons don't go away no matter how you set the social booking setting.
I have removed them by overriding the applicable jomsocial template file and hacking the bundle.js, but this isnt a great solution.

11 years 3 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Marc,

I see, this is valid bug.. we will fix it

thank you

11 years 2 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Marc,

this is the patch

1 . open this file components/com_community/controllers/photos.php, add this code after line 1192 :

$json['enablesharing'] = $config->get('enablesharethis') == 1;

Open this file components/com_community/assets/source/js/popups/photo.open.js
2. find this code :
canEdit, canTag, albumName, albumUrl, photoUrl, userId, isRegistered, isOwner, isAdmin, enableDownload, enableReporting;
replace to :
canEdit, canTag, albumName, albumUrl, photoUrl, userId, isRegistered, isOwner, isAdmin, enableDownload, enableReporting, enableSharing;

3. add this code after line 47 :
enableSharing = +json.enablesharing;

4. find this code :
html += '<a href="javascript:" class="joms-popup__btn-share">' + lang.share + '</a>';
replace to :
if ( enableSharing ) {
       html += '<a href="javascript:" class="joms-popup__btn-share">' + lang.share + '</a>';
    }

5. find this code :
html += '<div class="sep"></div>';
replace to :
html += ( enableSharing || enableDownload ? '<div class="sep"></div>' : '' );

thank you

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW