Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Share this Plugin
Avatar
jamie771
Member
Free Members
sp_UserOfflineSmall Offline
May 10, 2013 - 12:56 am

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 10, 2013 - 2:00 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
jamie771
Member
Free Members
sp_UserOfflineSmall Offline
May 10, 2013 - 2:10 am

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 #? 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 10, 2013 - 2:12 am

The 'sp_ShareThisTopicIndexTag' line

andy-signature.png
YELLOW
SWORDFISH
Avatar
jamie771
Member
Free Members
sp_UserOfflineSmall Offline
May 10, 2013 - 3:16 am

Just want to make sure where exactly to put it:

(function_exists(# 'sp_ShareThisTopicIndexTag') ||

or

#(function_exists('sp_ShareThisTopicIndexTag') ||

or?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 10, 2013 - 3:49 am

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

andy-signature.png
YELLOW
SWORDFISH
Avatar
jamie771
Member
Free Members
sp_UserOfflineSmall Offline
May 10, 2013 - 1:24 pm

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. 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 10, 2013 - 1:50 pm

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...

Avatar
jamie771
Member
Free Members
sp_UserOfflineSmall Offline
May 17, 2013 - 1:04 pm

It worked! Thanks! 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 17, 2013 - 6:07 pm

cool. thanks for the update.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625