Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2703)
Switch Permissions
This mod allows admins to switch to permissions of another user on the forum.
In order to switch permissions, you need to click the [Switch Permissions] link on members' profile summary.
-[SiNaN]
Perfectly awesome mod, got me to save a lot of time in my work.
Great Mod [SiNaN]... it's perfect for mod developers... ;)
Nice 1 [SiNaN]
It's interesting and great. Congratulations Sinan! Translation waiting me. :)
Brilliant!
Does something similar exist for the 1.1.11 version or do you plan on extend your mod for that version?? I'd love to have that one for our forum instead creating a "dummy user" for each user group to check what they can in fact see and/or do - that would be a huge help!
Nice mod ;)
Just what I needed!
BTW, if you are using Ultimate Profile, you will have to manually add the switch. Parse the instructions and where it says to find and replace in './Themes/default/Profile.template.php', do that in 'UltimateProfile.template.php' instead.
Nice mod! :D I'm using it since beta version. How can I integrate this into a Ultimate Profile?
Read my last post. Just above yours. :o
This mod is fine with RC4 without any changes. So there won't be any updates.
Extremely usefull. Thanks a lot [SiNaN]
This was very useful. Any plans to update for SMF GOLD?
Quote from: [SiNaN] on December 03, 2010, 06:15:36 AM
This mod is fine with RC4 without any changes. So there won't be any updates.
Same for Final, really.
okay, an older topic... - just a quick question...
does anyone have this running in 2.0.2?
I can install it without any problem, but the 'change permission' dialog is not listed in profile - summary...
Hi Friends,
Sorry for posting in old topic, but it really doesn't seem appropriate to start a new one.
Since it says compatible with 2.0 RC4, I tried installing on SMF 2.04. Appears to install without any problems, but doesn't seem to work. I can't find "Switch Permission" anywhere.
I guess, judging by previous comments, that there's no interest in updating it? But as a first-time admin, building my 1st forum, it surely would be helpful to be able to switch quickly, with logging out and logging in, and logging out and logging in, every time I need to check out what regular members can or can't, see or do. So if it were to spark anyone's interest, I would vote for an update :D
Or is there some alternative trick for this, that I just haven't learned yet? I didn't think it was possible to be logged in to 2 different accounts at the same time. Is there??
Thanks for any comments :)
Quote from: brynn on July 13, 2013, 10:25:04 AM
Hi Friends,
Sorry for posting in old topic, but it really doesn't seem appropriate to start a new one.
Since it says compatible with 2.0 RC4, I tried installing on SMF 2.04. Appears to install without any problems, but doesn't seem to work. I can't find "Switch Permission" anywhere.
I guess, judging by previous comments, that there's no interest in updating it? But as a first-time admin, building my 1st forum, it surely would be helpful to be able to switch quickly, with logging out and logging in, and logging out and logging in, every time I need to check out what regular members can or can't, see or do. So if it were to spark anyone's interest, I would vote for an update :D
Or is there some alternative trick for this, that I just haven't learned yet? I didn't think it was possible to be logged in to 2 different accounts at the same time. Is there??
Thanks for any comments :)
Yes its possible. Use 2 browsers, I mean like Firefox (admin) & Firefox Aurora (test user) like me. :D
Quote from: brynn on July 13, 2013, 10:25:04 AM
Hi Friends,
Sorry for posting in old topic, but it really doesn't seem appropriate to start a new one.
Since it says compatible with 2.0 RC4, I tried installing on SMF 2.04. Appears to install without any problems, but doesn't seem to work. I can't find "Switch Permission" anywhere.
I guess, judging by previous comments, that there's no interest in updating it? But as a first-time admin, building my 1st forum, it surely would be helpful to be able to switch quickly, with logging out and logging in, and logging out and logging in, every time I need to check out what regular members can or can't, see or do. So if it were to spark anyone's interest, I would vote for an update :D
Or is there some alternative trick for this, that I just haven't learned yet? I didn't think it was possible to be logged in to 2 different accounts at the same time. Is there??
Thanks for any comments :)
check the first image on the mod page...
You need to enter to the test account profile page and click in "switch permissions" at the left
Quote from: 4Kstore on July 13, 2013, 10:30:06 PM
check the first image on the mod page...
You need to enter to the test account profile page and click in "switch permissions" at the left
4Kstore, well yes, of course that's where I looked, but it's not there. Let me get a screenshot.... Ok, please see attached. Note that I also tried in a different theme, and even in the default "Curve" theme, without any more luck.
Use an entirely different browser, xPandax? Well, I suppose that's what they call "quick and dirty" huh? :laugh: I guess it's better than nothing though. But it would be nice if this mod were working.
4Kstore, or anyone -- now that you see it's not there, any hints or tips to get it working? Please let me know if there's any technical info I can provide. Or else confirmation that it's not supposed to work in SMF 2.04?
Thanks for your help :)
Quote from: brynn on July 13, 2013, 10:25:04 AM
I can't find "Switch Permission" anywhere.
I've just installed this mod for the first time and it took me a little while to work out how to use it.
Basically what you have to do is view the profile of
another user (eg, a user with standard privileges, a moderator, etc) on your forum - that's when/where you'll see the 'Switch Permissions' option. Once you switch to that user's profile you'll then see the option in a message bar to revert to your own profile.
You know that it will not be visible on your own profile page but only on other profiles?
Quote from: phantomm on July 14, 2013, 07:40:13 AM
You know that it will not be visible on your own profile page but only on other profiles?
Oh, you mean I choose whose profile I want to switch to first, and then click Switch Permission?
Oh ok, yes, there it is! I thought I would click Switch, and then choose which permissions I wanted.
Ok then, problem solved -- yay!
Thank you all very much :)
While I find this modification very limitedin what it can do, it is such a cool idea lol What made you think of this?
Quote from: Liam_michael on July 14, 2013, 10:27:17 AM
While I find this modification very limited in what it can do, it is such a cool idea lol What made you think of this?
Are you kidding? Of course, I didn't make it. But I would have, if I had that kind of knowledge. Don't you often have to log out from your admin account, and log into a regular user account, to see how your forum looks or functions for regular members?
Quote from: brynn on July 14, 2013, 10:34:56 AM
Quote from: Liam_michael on July 14, 2013, 10:27:17 AM
While I find this modification very limited in what it can do, it is such a cool idea lol What made you think of this?
Are you kidding? Of course, I didn't make it. But I would have, if I had that kind of knowledge. Don't you often have to log out from your admin account, and log into a regular user account, to see how your forum looks or functions for regular members?
Yeah, that's what I admire about it. But to defend what I meant, it's a small change, but an effective one. Sorry if anyone misunderstood.
I have a slight problem with this mod... great for testing the site though.
When you switch permissions from the users profile, you cannot view their profile again. It just gives an error message and says you are not allowed to view it.
Quote
An Error Has Occurred!
You are not allowed to access this section
Perhaps their are conflicts distinguishing between admin and switched user accessing profile page but I needed to check newly registered users had access to just the things they need.
I can do it logging in similar accounts but this way using the mod is best.
Hi, folks
The switch permissions mod installed on my forum to allow admins to switch to permissions of another user on the forum. How can enable this feature for my forum moderators? I also want them to be eligible to use the switch permissions. I couldn't find how to enable it in admin panel
many thanks
It's for admins only, mostly useful to test the permission capabilities of less privileged groups.
Why on earth would you want your moderators to be able to do that? Do you understand what the mod actually achieves?
Mr. Shambles who advised me to upload the flag gifs to the mod's /images/flags/ folder and rename them as .png. in ,, New flag installation,,. Sorry but I couldn't your method with renaming gifgs to ,png to work
For sure I understand but just asked if it is possible to do it for the moderator group too
It doesn't confer any extra privileges - at best it reduces them.
Now it is clear
Very nice mod. Only issue I had is it does not have Ultimate Profile support out of the box. To fix this, you can do the following. OP, if you maybe want to drop an update on the mod including this? I tested this on SMF 2.0.13 and it works just fine.
First step is to install it normally with the package manager.
Then apply this code sample in the following place:
In Sources/Profile.php
Look for the "profile_action" array. This array contains all the possible things that can be under the "Action" button in any profile.
Add after the "comment" array:
'switchperms' => array(
'label' => $txt['switch_permissions_button'],
'custom_url' => $scripturl . '?action=switchpermissions;u=' . $context['id_member'] . ';' . $context['session_var'] . '='. $context['session_id'],
'enabled' => !$context['user']['is_owner'] || $context['user']['is_admin'],
'permission' => array(
'own' => 'profile_view_own',
'any' => 'profile_view_any',
),
),
Should look mostly like this (Full size image (https://uploads.linkjay1.com/image_14149332891818.png)):
(https://uploads.linkjay1.com/image_14149332891818.png)
This mod does not add any extra permissions and will only work if you are in the root administrator group (the group that is given all permissions automatically).
The "Switch Permissions" button will now be found under the "Actions" button in any profile:
(https://uploads.linkjay1.com/image_14149332905838.png)
This seriously needs to be upgraded to work with 2.1.1 ... it's one of the most useful mods I had.
Quote from: Steve on April 01, 2022, 05:50:27 PMThis seriously needs to be upgraded to work with 2.1.1 ... it's one of the most useful mods I had.
That tells me the user profile area that shows permissions does a bad job and should be improved.
It's nice to click on a member's name, click 'switch permissions' and see the forum as they see it. Then it's one click to go back to your own permissions.
See, that's the thing, I've literally never found the need to do that - because the page in the user's profile to indicate what they can/can't do was always enough for me...
Anyone interested in updating this for 2.1.3?