Support Forum
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
“I must stop him from being one of those who call themselves good because they have no claws.” ― Irvin D. Yalom, When Nietzsche Wept
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.
YELLOW
SWORDFISH
|
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!
YELLOW
SWORDFISH
|
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?
“I must stop him from being one of those who call themselves good because they have no claws.” ― Irvin D. Yalom, When Nietzsche Wept
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...
“I must stop him from being one of those who call themselves good because they have no claws.” ― Irvin D. Yalom, When Nietzsche Wept
1 Guest(s)