By Edgar on Saturday, 06 June 2015
Posted in General Issues
Replies 12
Likes 0
Views 891
Votes 0
Hello,

I would like to limit some possibility on profile page :

- How can I remove the number of friends on the banner ? (See "1" on screenshot attached)

- More important, I would like when the members write something on their page that they can only choose "Only me" and nothing else (See "2" on screenshot attached) How can I do that ?

Thanks a lot,

Edouard
Hello Edouard,

I am really sorry for the delay of this reply as it is a weekend for us here. To remove the "friends", you'll need to customize the theme files located in /components/com_easysocial/themes/frosty/profile/default.header.php and remove the codes below:


<a href="<?php echo FRoute::friends( array( 'userid' => $user->getAlias() ) );?>">
<?php echo $user->getTotalFriends();?> <?php echo JText::_( FD::string()->computeNoun( 'COM_EASYSOCIAL_FRIENDS' , $user->getTotalFriends() ) ); ?>
</a>



As for the privacy options, unfortunately it's not possible to turn this off currently.
·
Sunday, 07 June 2015 00:43
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem and thanks for the 1.

The second question is really important for me. Can't we just "hide" the different options ? Or if still not possible, it it possible to remove all the part "Edouard's Feed" ?
I need my members use only the group to discuss.
·
Sunday, 07 June 2015 00:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Not tested, but you could try modifying the options column in the _social_privacy table to only have:
{"options":["only_me"]}


Curious, though. What would be your intention of using the stream if only the user who owns it can see it? Almost seems more practical to gut the stream's function entirely from the template.
·
Sunday, 07 June 2015 09:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Well, I'm using Easy Social for subscription system, points system, trophies, groups, apps but I don't specially need a stream shared with all the members. I would like to keep the stream on the profile page because people can see their trophies and what they have done on the website. That's why I just need to hide the possibility of sharing content.
·
Sunday, 07 June 2015 16:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark wrote:

Hello Edouard,

I am really sorry for the delay of this reply as it is a weekend for us here. To remove the "friends", you'll need to customize the theme files located in /components/com_easysocial/themes/frosty/profile/default.header.php and remove the codes below:


<a href="<?php echo FRoute::friends( array( 'userid' => $user->getAlias() ) );?>">
<?php echo $user->getTotalFriends();?> <?php echo JText::_( FD::string()->computeNoun( 'COM_EASYSOCIAL_FRIENDS' , $user->getTotalFriends() ) ); ?>
</a>





I didn't succeed removing the number of friends. I'm using Wireframe themes and remove the same part of the code but without result. I tried with frosty theme with no more success. I'm probably committing a mistake. I aded my admin details in this post if it's possible for you to check.

Thanks a lots,

Edouard
·
Sunday, 07 June 2015 17:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Edouard,

I'm sorry but I can't access your FTP. By the way, you cannot see the changes is because you are using Wanderers template. In Wanderers there is a template override. You might want to open this file ../templates/wanderers/html/com_easysocial/profile/default.header.php . and remove this codes:


<li>
<a href="<?php echo FRoute::friends( array( 'userid' => $user->getAlias() ) );?>">
<span><?php echo $user->getTotalFriends();?></span>
<span><?php echo JText::_( 'COM_EASYSOCIAL_FRIENDS' );?></span>
</a>
</li>


Hope this helps.
·
Monday, 08 June 2015 13:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Thanks you for your answer. It solved this problem.

However, is there any possibility about the second problem in first post ? Can't we just "hide" the different options ? Or if still not possible, it it possible to remove all the part "Edouard's Feed" ?

Thanks for your help,

Edouard
·
Tuesday, 09 June 2015 06:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Edouard,

Can't we just "hide" the different options ?

I've checked the privacy system and I must say unfortunately it is not possible to hide the specific options with the current system.

it it possible to remove all the part "Edouard's Feed" ?

You can hide it via css hack by applying the following code inside your /templates/wanderers/css/custom.css
body div#fd.es .es-story-privacy {
display: none;
}

body div#fd.es .es-privacy .es-privacy-toggle {
display: none;
}


Hope these help.
·
Tuesday, 09 June 2015 13:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Oh thanks you very much, it's perfect.

Just two last questions :
- How can I modify the title "Edouard Edoual's Feed" (included if I use french traduction).
- How can I modify "Share what's new..." (and about this one is it possible to have a different text when user writes on the profile and when he writes in a group ? )

Thanks for your help,

Edouard
·
Tuesday, 09 June 2015 15:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Edouard,

How can I modify the title "Edouard Edoual's Feed" (included if I use french traduction).
Do you mean the wording from the following screenshot here, http://screen.stackideas.com/2015-06-09_1613.png ? It seems like the language string is hard coded in the /templates/wanderers/html/com_easysocial/profile/default.php at line 27. You can change it from there.

How can I modify "Share what's new..."
You can modify the language string from your /language/xx-XX/xx-Xx.com_easysocial.ini and search the following string:
COM_EASYSOCIAL_STORY_PLACEHOLDER="Share what's new..."
// Replace it with
COM_EASYSOCIAL_STORY_PLACEHOLDER="You custom words here..."


Hope these help.
·
Tuesday, 09 June 2015 16:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you very much. It's almost perfect. I just need one last thing :
I would like that initially when someone write some update profile, it's initially on "Me only".

Thanks a lot,

Edgar
·
Saturday, 13 June 2015 21:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Edgar,

I am sorry for the delay of this reply as it weekends for all of us here.

There are numbers of way to achieve this. You can change it from the privacy settings from the frontend or you can change the default privacy from the backend > easysocial > profile types > your default profile > privacy. You can also change the default privacy globally from your backend > easysocial > privacy > "Who can view my story", http://screen.stackideas.com/2015-06-15_1710.png

Hope these help.
·
Monday, 15 June 2015 17:10
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post