Support Forum

Share this Plugin

JA jamie771
jamie771
Member

How can I disable a share battons under each post? I only want it to be displayed at the beginning of the topic. 

9 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

You can remove or comment out the call to Share This within the template. In this case spTopicView.php in the /templates folder of your SP theme.

Way down you should see the comment:

# Add Share This and/or Answers Topic to bottom of post content

2 or 3 lines under that you will see the call to

sp_ShareThisTopicIndexTag()

Just comment out that line (putting a # in front will do the trick) and you should be fine.

JA jamie771
jamie771
Member

this is what I have:

 

if

(function_exists(‘sp_ShareThisTopicIndexTag’) ||

function_exists(‘sp_AnswersTopicAnswer’) ||

function_exists(‘sp_thanks_thanks_for_post’)){

 

Where do I put #? 

YS Yellow Swordfish
Yellow Swordfish
Member

The ‘sp_ShareThisTopicIndexTag’ line

JA jamie771
jamie771
Member

Just want to make sure where exactly to put it:

(function_exists(# ‘sp_ShareThisTopicIndexTag’) ||

or

#(function_exists(‘sp_ShareThisTopicIndexTag’) ||

or?

YS Yellow Swordfish
Yellow Swordfish
Member

at the very start if the line. So it is the first character.

JA jamie771
jamie771
Member

I am sorry! I don’t mean to be difficult. But it is still not clear. Does it has to be like this?

(function_exists(# ‘sp_ShareThisTopicIndexTag’)

The reason I want to make sure is because last time when I was editing the code and one character was wrong, the whole website crashed. 

MP Mr Papa
Mr Papa
Member

no…  change

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

to

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

and you should be good…