Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Removing share buttons in posts
Avatar
Annamarie Pluhar
Member
Free Members
sp_UserOfflineSmall Offline
Jul 2, 2013 - 1:15 pm

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
                                    #

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 2, 2013 - 2:31 pm

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

andy-signature.png
YELLOW
SWORDFISH
Avatar
Annamarie Pluhar
Member
Free Members
sp_UserOfflineSmall Offline
Jul 2, 2013 - 4:51 pm

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.

 

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 2, 2013 - 5:16 pm

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

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: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625