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
Share This
Avatar
Michael Walden
Member
Free Members
sp_UserOfflineSmall Offline
Nov 25, 2017 - 1:48 am

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 eek

“I must stop him from being one of those who call themselves good because they have no claws.” ― Irvin D. Yalom, When Nietzsche Wept

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 25, 2017 - 3:23 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Michael Walden
Member
Free Members
sp_UserOfflineSmall Offline
Nov 25, 2017 - 8:27 am

Yes, please. I need to read up on setting up the child theme bit, but I can probably figure it out smile

“I must stop him from being one of those who call themselves good because they have no claws.” ― Irvin D. Yalom, When Nietzsche Wept

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 25, 2017 - 8:46 am

OK. Which SP theme are you using? Need to know so I can best point you in the right direction...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Michael Walden
Member
Free Members
sp_UserOfflineSmall Offline
Nov 25, 2017 - 10:02 am

We are using Reboot and thank you!

“I must stop him from being one of those who call themselves good because they have no claws.” ― Irvin D. Yalom, When Nietzsche Wept

Avatar
Michael Walden
Member
Free Members
sp_UserOfflineSmall Offline
Nov 25, 2017 - 10:11 am

Again, there is no rush on this. So if you are vacationing... do so!  laugh

“I must stop him from being one of those who call themselves good because they have no claws.” ― Irvin D. Yalom, When Nietzsche Wept

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 25, 2017 - 11:39 am

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!

andy-signature.png
YELLOW
SWORDFISH
Avatar
Michael Walden
Member
Free Members
sp_UserOfflineSmall Offline
Nov 25, 2017 - 1:38 pm

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 25, 2017 - 3:28 pm

we can certainly talk that over here...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Michael Walden
Member
Free Members
sp_UserOfflineSmall Offline
Nov 25, 2017 - 4:55 pm

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

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: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17351
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10122
Posts: 79609