A A A
Forum Scope


Match



Forum Options



Min search length: 3 characters / Max search length: 84 characters
Forum Login
Lost password?
plugins-topic
Share This
Avatar
Michael Walden
72 Posts
(Offline)
1
Nov 25, 2017 - 1:48 am
Print

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

16436 Posts
(Offline)
2
Nov 25, 2017 - 3:23 am
Print

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
72 Posts
(Offline)
3
Nov 25, 2017 - 8:27 am
Print

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

16436 Posts
(Offline)
4
Nov 25, 2017 - 8:46 am
Print

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
72 Posts
(Offline)
5
Nov 25, 2017 - 10:02 am
Print

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
72 Posts
(Offline)
6
Nov 25, 2017 - 10:11 am
Print

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

16436 Posts
(Offline)
7
Nov 25, 2017 - 11:39 am
Print

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!

The following users say thank you to Yellow Swordfish for this useful post:

Michael Walden
andy-signature.png
YELLOW
SWORDFISH
Avatar
Michael Walden
72 Posts
(Offline)
8
Nov 25, 2017 - 1:38 pm
Print

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

16436 Posts
(Offline)
9
Nov 25, 2017 - 3:28 pm
Print

we can certainly talk that over here…

andy-signature.png
YELLOW
SWORDFISH
Avatar
Michael Walden
72 Posts
(Offline)
10
Nov 25, 2017 - 4:55 pm
Print

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: America/New_York
All RSSShow Stats
Administrators: Blues Dancer, Simple Press, SP Community Support
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 630
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Newest Members:
Gary Lee
Glen Stewart
Rodney Pacis
kent black
Robert Meharg
test test
narek amprachamian
Forum Stats:
Groups: 7
Forums: 17
Topics: 10065
Posts: 79362

 

Member Stats:
Guest Posters: 607
Members: 16922
Moderators: 0
Admins: 3

Most Users Ever Online
499
Currently Online
Guest(s)
6
Currently Browsing this Page

1 Guest(s)