How can I disable a share battons under each post? I only want it to be displayed at the beginning of the topic.
Support Forum
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.
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 #?
Just want to make sure where exactly to put it:
(function_exists(# ‘sp_ShareThisTopicIndexTag’) ||
or
#(function_exists(‘sp_ShareThisTopicIndexTag’) ||
or?
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.
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…