How do I remove the Social NetWork icons?

Permalink
I have Conversations set up (v8) and do not have anything in the main settings for Social Media, but the icons still show up on the block when it's on the page. I would like to remove them.

w2f
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi w2f,

To remove the social links, you can override the conversation message element.
- copy message.php
concrete\elements\conversation\message.php
- paste message.php into application\elements\conversation
application\elements\conversation\message.php
- open message.php
- comment out lines 151-157
<li class="ccm-conversation-social-share"><span class="ccm-conversation-message-divider">|</span></li>
<li class="ccm-conversation-social-share">
    <a class="ccm-conversation-message-control-icon share-popup" href="https://twitter.com/intent/tweet?url=<?php echo $cnvMessageURL?>" title="<?php echo t('Share message URL on Twitter.')?>"><i class="fa fa-twitter"></i></a>
</li>
<li class="ccm-conversation-social-share">
    <a class="ccm-conversation-message-control-icon share-popup" href="http://www.facebook.com/sharer.php?u=<?php echo $cnvMessageURL?>" title="<?php echo t('Share message URL on Facebook.')?>"><i class="fa fa-facebook"></i></a>
</li>
w2f replied on at Permalink Reply
w2f
Thanks so much for replying! :)

I found the first step this way: Concrete/Elements/Conversation/Editor/Markdown/Message.php.
/Plain Text/Message.php
/ Redactor/Message.php
and /Message/add_form.php
/author.php
/pending.php
/topic.php

None of these have lines more than 130.

In the second step I also do not see what you have.... I only have:
Applications/Elements/ ( there are no other folders at this point. Do I need to create it?...once I find the right code in the first step)
MrKDilkington replied on at Permalink Reply
MrKDilkington
@w2f

The file path to message.php is concrete\elements\conversation\message.php.

If the file folders in application do not exist, you will need to create them.
w2f replied on at Permalink Reply 1 Attachment
w2f
The problem that I am running into is that in the first step where you point out to copy the lines of code. I follow: Concrete/Elements/Conversation.

There are 2 folders; Editor and Message.

The Message folder has "add_form" , "author", "pending" and "topic".

In the Editor" folder, there are 3 folders; Markdown, Plain_text and redactor. each one of them have a file "message.php". I can not find a message.php in any of these folders with the lines of code that you are showing. i'll attach a screen shot. thanks for your continued help.
MrKDilkington replied on at Permalink Reply
MrKDilkington
@w2f

The message.php file is in the "conversation" folder, not in the "editor" or "message" folders.
w2f replied on at Permalink Reply
w2f
Thanks so much for the continued conversation. from the screen shot, (in my case) there is no "message.php" in Concrete/Elements/"Conversation". I'm using v8, could that be the difference?
MrKDilkington replied on at Permalink Reply
MrKDilkington
@w2f

Have you tried clicking the "conversation" folder icon in the tree (left) to list the contents in the right panel?
w2f replied on at Permalink Reply
w2f
thank you for your continued guidance! i found it after double clicking on the folder rather than just a single click. so, i'm following now. i copied message.php and then went to applications/elements/conversation (which was empty) and created a file "message.php", then pasted the code there and deleted lines 151-157, but that did not seem to make the block happy now...looking at the block on the page it just spins and says "loading conversation". so maybe i misunderstood when you said "comment out"..... is it the same as deleting or just removing the words "facebook" "twitter" etc? thanks also for your patience!! ps. I reverted back and deleted the pasted, used a different browser, and now it's back to showing the conversation block ok, so if deleting is "commenting out" then I will try it again....maybe it was the browser taking a long time???
MrKDilkington replied on at Permalink Reply 1 Attachment
MrKDilkington
@w2f

I have attached a ZIP file that contains the modified message.php file. Unzip the file and upload message.php into application\elements\conversation.

The file path after uploading should be:
application\elements\conversation\message.php
w2f replied on at Permalink Reply
w2f
i need to change my original note here....at first i thought it solved the issue because i did not see the social media icons....however, when i moused over the area then they reappeared! so the social media links are still happening even after unzipping message.php into applications/elements/conversations/

our site is private, so really do not want the social media links.... what do recommend ?
MrKDilkington replied on at Permalink Reply
MrKDilkington
@w2f

If you want to create an FTP and concrete5 account for me and send the account info by private message, I can take a look.
w2f replied on at Permalink Reply
w2f
i think i just must be missing something. i pasted the code in the right place, but looking at it the links for the social media are still there.... the lines (starting at 151) you initially said to comment out. I am not sure what "comment out" means... and i hope that is my only issue.... do I simply delete those lines? (that seemed to upset the blocks when i did that initially) or does "comment out" mean removing only the social media links in the code? or something else? If you could help me to be clear about that, i can try it and then if that doesn't work i can set up the other accounts for you to take a look at what might be going on. i'm needing to get the site live soon, the other little things i am working through with v8 i can deal with in time, but the social media links are problematic in our case, so it's my priority right now. thanks again for helping me through this.
w2f replied on at Permalink Reply
w2f
thank you very much. it seems to be working now....perhaps just needed to clear the cache or something? the social media links are no longer showing, only the thumbs up/down, a "0" that goes nowhere, and a chain link for message url.... that will work for us great.
allcomm21 replied on at Permalink Reply
I had the same problem. I thought I'd deleted the Social Links, but when I signed out, they were still there. I also had the same problem with a Nav bar that wouldn't go away.

Here's what worked for me: Add a Content block to the place where you think the Social Links block is appearing. In my case it was an "Empty Sitewide" area.

Then, without adding any content, just hit Save. The block changes to "Empty Content Block." Then just delete the block.

Poof! No more Social Links. If that doesn't work, try replacing a different block.

When I deleted the content block, it reverted back to being an "Empty Sitewide" block. Same thing worked for the pesky Nav bar. BTW, I'm using the Fundamental theme, which otherwise is working great.