Support Forum

Removing share buttons in posts

AP Annamarie Pluhar
Annamarie Pluhar
Member

HI there,

I find the number of share buttons to be a bit over the top. Want to remove the ones in the posts. Found a thread that talked about removing the “template tag” in the pspTopicView.php file.  Found it? or is it something else? I found the code I thought was it. Is this not how to comment it out? It doesn’t seem to be working, so maybe I don’t understand something!

THanks

 

..

                                    # Add Share This and/or Answers Topic to bottom of post content
                                    # ———————————————————————-
                                   /* if (function_exists(‘sp_ShareThisTopicIndexTag’) || function_exists(‘sp_AnswersTopicAnswer’) || function_exists(‘sp_thanks_thanks_for_post’)){
                                        sp_ColumnStart(‘tagClass=spPluginSection spCenter&width=100%&height=40px’);
                                        if (function_exists(‘sp_ShareThisTopicIndexTag’)) sp_ShareThisTopicIndexTag(‘tagClass=ShareThisTopicIndex spLeft’);
                                        if (function_exists(‘sp_AnswersTopicAnswer’)) {
                                            if ($spThisPost->post_index == 1) sp_AnswersTopicSeeAnswer(‘tagClass=spAnswersTopicSeeAnswer spButton spRight’, __sp(‘See Answer’), __sp(‘Go to the post marked as the answer’));
                                            sp_AnswersTopicAnswer(‘tagClass=spRight’, __sp(‘Answers Post’), __sp(‘This post answers the topic’));
                                            sp_AnswersTopicPostIndexAnswer(‘tagClass=spButton spRight’, __sp(‘Mark as Answer’), __sp(‘Mark this post as topic answer’), __sp(‘Unmark as Answer’), __sp(‘Unmark this post as topic answer’));
                                        }
                                        sp_ColumnEnd();
                                        if (function_exists(‘sp_thanks_thanks_for_post’)) {
                                            sp_InsertBreak();
                                            sp_thanks_thanks_for_post();
                                        }
                                        sp_InsertBreak();
                                    }*/
                                    # End Share This and/or Answers Topic addition
                                    #

3 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

You might want to start by simply looking – and setting – at the Share This plugin options in the forum admin.

AP Annamarie Pluhar
Annamarie Pluhar
Member

You mean where I can choose which services and the type of icon? Sure I’ve looked at that and done what I could. I don’t see any options to choose where the share icons display.

 

 

MP Mr Papa
Mr Papa
Member

where they display is governed by the template location with in the template file… put it where you want it to display…

so this one:

if (function_exists(‘sp_ShareThisTopicIndexTag’)) sp_ShareThisTopicIndexTag(‘tagClass=ShareThisTopicIndex spLeft’);

put it where you want the share this stuff to show up… if you dont want it (folks wont be able to share a post then), just remove or comment it out (put # or // in front)…