There is no rush on this, enjoy your holidays!
In my tradition of being difficult…
Is there any way to use this plugin but restrict sharing to admins? There is a madness in my method ![]()
There is no rush on this, enjoy your holidays!
In my tradition of being difficult…
Is there any way to use this plugin but restrict sharing to admins? There is a madness in my method ![]()
No built in options to do so but it would be simple to edit the theme templates and wrap a conditional test around the share this display functions.
If this is of interest then you would need to be using the child theme version of your SP theme. Let me know and I can give you the simple code additions needed.
Yes, please. I need to read up on setting up the child theme bit, but I can probably figure it out 
OK. Which SP theme are you using? Need to know so I can best point you in the right direction…
OK. Don’t panic! This looks a lot worse and more difficult than it really is. The downside of making these changes is that they will have to be modified when 5.8 is released but that is some time away yet and we can help there of course.
So – if you have installed the reboot child theme and had a quick read up in our codex – the following lists (a) the templates that will need to be copied across from the parent to the child and (b) all the changes that need to be made. And seriously – the changes are pretty simple. For each change needed I have put the original first and then the modified second. Note that some templates have more then one entry to edit.
So here goes…
TEMPLATE: /templates/desktop/spHeadDesktop.php –
sp_ShareThisTag('tagClass=ShareThisTag spRight');
if (sp_is_forum_admin($spThisUser->ID)) sp_ShareThisTag('tagClass=ShareThisTag spRight');
and –
sp_ShareThisForumTag('tagClass=spRight ShareThisForum');
if (sp_is_forum_admin($spThisUser->ID)) sp_ShareThisForumTag('tagClass=spRight ShareThisForum');
and –
sp_ShareThisTopicTag('tagClass=ShareThisTopic spRight');
if (sp_is_forum_admin($spThisUser->ID)) sp_ShareThisForumTag('tagClass=spRight ShareThisForum');
TEMPLATE: /templates/desktop/spTopicViewDesktop.php –
if (function_exists('sp_ShareThisTopicIndexTag')) sp_ShareThisTopicIndexTag('tagClass=ShareThisTopicIndex spRight');
if (function_exists('sp_ShareThisTopicIndexTag') && sp_is_forum_admin($spThisUser->ID)) sp_ShareThisTopicIndexTag('tagClass=ShareThisTopicIndex spRight');
TEMPLATE: /templates/mobile/spForumViewMobile.php –
if (function_exists('sp_ShareThisForumTag')) sp_ShareThisForumTag('tagClass=spRight ShareThisForum');
if (function_exists('sp_ShareThisForumTag') && sp_is_forum_admin($spThisUser->ID)) sp_ShareThisForumTag('tagClass=spRight ShareThisForum');
TEMPLATE: /templates/mobile/spGroupViewMobile.php –
if (function_exists('sp_ShareThisTag')) sp_ShareThisTag('tagClass=ShareThisTag spRight');
if (function_exists('sp_ShareThisTag') && sp_is_forum_admin($spThisUser->ID)) sp_ShareThisTag('tagClass=ShareThisTag spRight');
TEMPLATE: /templates/mobile/spTopicViewMobile.php –
if (function_exists('sp_ShareThisTopicTag')) sp_ShareThisTopicTag('tagClass=ShareThisTopic spRight');
if (function_exists('sp_ShareThisTopicTag') && sp_is_forum_admin($spThisUser->ID)) sp_ShareThisTopicTag('tagClass=ShareThisTopic spRight');
and –
if (function_exists('sp_ShareThisTopicIndexTag')) sp_ShareThisTopicIndexTag('tagClass=ShareThisTopicIndex spRight');
if (function_exists('sp_ShareThisTopicIndexTag') && sp_is_forum_admin($spThisUser->ID)) sp_ShareThisTopicIndexTag('tagClass=ShareThisTopicIndex spRight');
Sorry to say that this is all untested but I am pretty sure this is all OK! Good luck!
Haha! Not panicking but it does look daunting! I’ll just go step by step after following the child theme documentation…
Just a thought but would it be difficult or even useful to add permissions for this plugin for the future update?
OK, I’ve done most of the work in getting a child theme set up. However, I am unsure about the color overlay files bit. I do not see any overlay options for my child theme in the admin Theme chooser for the forums. Will it pick up the color overlay I had chosen for the original Reboot theme? I doubt I’ll be changing colors, but just curious if I neglected to do, or did something wrong…
It should pick it up from the parent if you don’t create any new ones in the child. So you should be fine…
One more question before I start copying and editing template files. Do the changes you have made assume that the plugin is activated? Just want to be sure before I attempt any testing after I make the changes… If it does assume rather than check, I will just make sure to activate it before I switch to the child theme and test it
D’OH. Never mind… ![]()
I guess you found the answer to that 🙂
A bit worried about you not seeing any overlays in the forum admin theme chooser page because you should see all of the ones from the parent… Is it still empty when you go back to it?
Yes, I only see the “activate theme” & “delete theme buttons.
I am curious. Should the “Parent” line of the sptheme.txt be on a line of its own? Here is how mine looks currently:
Simple:Press Theme Title: RbtOTK Parent: reboot
Version: 1.0.2
Theme URI: http://simple-press.com
Description: OTK Child Theme Based on Reboot
Author: Ike Staines, Andy Staines & Steve Klasen
Author URI: http://simple-press.com
Stylesheet: RbtOTK.css
Screenshot: spTheme.jpg
Simple:Press Versions: 5.5.5 and above