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.

Remove "Share This"

10 years 3 months ago
Licenses:
JomSocial Active Socialize Expired

I want to remove the "Share This" link from profile pages and replace it with simple Facebook and Google+ buttons.

The "JOOMLA/components/com_community/templates/ [my template]/bookmarks.php" files seems to do absolutely nothing, nor I can found a way to do it at profile.* template files.

Joomla is 3.3.6.
JoomSocial is 3.2.1.5.

10 years 3 months ago
Licenses:

Hi,

if you can changing the links at "share this" popup. you can edit this file:
/components/com_community/libraries/bookmarks.php, after line 25 you can see all those links

$this->add( 'Facebook' , 'facebook' , 'http://www.facebook.com/sharer.php?u={uri}' );

.... etc

and for the button at profile page you can make override for this file ( documentation.jomsocial.com/wiki/Customizing_Template ):
/com_community/templates/default/modules/profile/userinfo.php copy to /templates/[your frontend template]/html/com_community/modules/profile/userinfo.php
at line 151 you can she the code for the button:
<a href="javascript:void(0);" onClick="joms.bookmarks.show('<?php echo CRoute::getExternalURL( 'index.php?option=com_community&view=profile&userid=' . $profile->id ); ?>')"><i class="joms-icon-share"></i><?php echo JText::_('COM_COMMUNITY_SHARE')?></a>

Regards

10 years 3 months ago
Licenses:
JomSocial Active Socialize Expired

I this that editing core JS files is NEVER a good solution.

Anyway, since I intended to remove the "Share" button and replace it with a direct Facebook Like/Share Button , editing the /modules/profile/userinfo.php did that just fine.

Just an additional question:
- you have a

if ($config->get('enablesharethis')  == 1 )
statement, witch indicates there is somewhere an "enable sharethis" configuration we can setup... where is that? I could not find it at JomSocial Backend...

10 years 3 months ago
Licenses:

you can find it at jomsocial backend:
Configuration > Site > Social Bookmarking section

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