Solved Topic Icon Permission

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Scam Warning
Post Reply
User avatar
Exclusive
Registered User
Posts: 676
Joined: Mon Jun 25, 2018 1:33 pm

Solved Topic Icon Permission

Post by Exclusive »

Following a reply in this topic: viewtopic.php?t=618675 I was able to add the topic solved icon to my board.

I'm now interested in this reply: viewtopic.php?t=618675#p3429815 Please how do I make the icon (only the solved icon) unavailable to all other users (or user groups) except Admins and Moderators?
Last edited by HiFiKabin on Sun May 19, 2019 9:11 am, edited 1 time in total.
Reason: Moved to Extension Requests
Use Search Button to get Instant Results | Follow Forum Rules
Avoid Spams in the forum to prevent banning the offending account. | ⟿ Visit My Awesome phpBB Forum! ⬳

Best Web Hosting with 99.9% Uptime! | ✔ Buy Cheap Domain Names
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Solved Topic Icon Permission

Post by Lumpy Burgertushie »

that method will not get you what you want.
I found this:
https://github.com/tierra/topicsolved/r ... /tag/2.3.0

it is the latest version for 3.2 of this extension:
https://www.phpbb.com/customise/db/exte ... ic_solved/

lulck,
robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
Exclusive
Registered User
Posts: 676
Joined: Mon Jun 25, 2018 1:33 pm

Re: Solved Topic Icon Permission

Post by Exclusive »

Lumpy Burgertushie wrote: Tue May 14, 2019 8:01 pm that method will not get you what you want.
I found this:
https://github.com/tierra/topicsolved/r ... /tag/2.3.0

it is the latest version for 3.2 of this extension:
https://www.phpbb.com/customise/db/exte ... ic_solved/

lulck,
robert
I don't know if you really know what I want, But lemme give the extension a try.

I just checked, I already have this extension, but I disabled it. This is not what I want.
Last edited by Exclusive on Tue May 14, 2019 9:18 pm, edited 1 time in total.
Use Search Button to get Instant Results | Follow Forum Rules
Avoid Spams in the forum to prevent banning the offending account. | ⟿ Visit My Awesome phpBB Forum! ⬳

Best Web Hosting with 99.9% Uptime! | ✔ Buy Cheap Domain Names
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Solved Topic Icon Permission

Post by Lumpy Burgertushie »

the instructions in the topic you linked to do not have any good way of making apply only for admins/mods.

this extension can do that for you and has nothing to do with the normal topic icons system.


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
Exclusive
Registered User
Posts: 676
Joined: Mon Jun 25, 2018 1:33 pm

Re: Solved Topic Icon Permission

Post by Exclusive »

Lumpy Burgertushie wrote: Tue May 14, 2019 9:09 pm the instructions in the topic you linked to do not have any good way of making apply only for admins/mods.

this extension can do that for you and has nothing to do with the normal topic icons system.


robert
This extension is not an option, It doesn't work on my board! Any other way out?
Use Search Button to get Instant Results | Follow Forum Rules
Avoid Spams in the forum to prevent banning the offending account. | ⟿ Visit My Awesome phpBB Forum! ⬳

Best Web Hosting with 99.9% Uptime! | ✔ Buy Cheap Domain Names
User avatar
EA117
Registered User
Posts: 2158
Joined: Wed Aug 15, 2018 3:23 am
Contact:

Re: Solved Topic Icon Permission

Post by EA117 »

Exclusive wrote: Tue May 14, 2019 7:21 pm I'm now interested in this reply: viewtopic.php?t=618675#p3429815 Please how do I make the icon (only the solved icon) unavailable to all other users (or user groups) except Admins and Moderators?
Maybe this part is already clear to you, but if you are asking literally "what did they mean by that, or how did they do that", they meant that here on phpBB.com/community the phpBB forum Permission "Can use topic/post icons" has only been granted to the group(s) intended to have access.

Meaning they restricted the ability to set any topic icon, not just specifically the "solved" topic icon. Robert is saying "that approach doesn't achieve what you're asking for" because you seem to be asking to restrict only the "solved" topic icon to a specific group.

If you are willing to do things the way phpBB.com/community is setup, then yes, there is "another way out." You can change the forum permissions so that normal Registered Users don't have permission to set topic icons, but your Global Moderators and Administrators groups do have this permission. So that your moderators can change the post to show the "solved" topic icon any time they want, but the normal user cannot.

Otherwise, if you must provide access to Topic Icons even for normal users, then the extension is the way to go.

The fact that "the extension didn't work" doesn't mean the extension is not an option; it means you need to solve why it doesn't work. Either by posting in the extension's support section to get help with the specific issue(s) or errors you see with the extension enabled, and/or to create the style-specific support needed for the extension to work with the customization that has been done to the style on your site.
User avatar
Exclusive
Registered User
Posts: 676
Joined: Mon Jun 25, 2018 1:33 pm

Re: Solved Topic Icon Permission

Post by Exclusive »

EA117 wrote: Sun May 19, 2019 12:10 am Meaning they restricted the ability to set any topic icon, not just specifically the "solved" topic icon.
I thought there is a way of restricting only the "solved" topic icon excluding other topic icons, seems that's not possible?
Use Search Button to get Instant Results | Follow Forum Rules
Avoid Spams in the forum to prevent banning the offending account. | ⟿ Visit My Awesome phpBB Forum! ⬳

Best Web Hosting with 99.9% Uptime! | ✔ Buy Cheap Domain Names
User avatar
EA117
Registered User
Posts: 2158
Joined: Wed Aug 15, 2018 3:23 am
Contact:

Re: Solved Topic Icon Permission

Post by EA117 »

Exclusive wrote: Thu May 23, 2019 7:46 pm I thought there is a way of restricting only the "solved" topic icon excluding other topic icons, seems that's not possible?
That is not possible in phpBB itself. It would definitely require an extension to add per-icon permissions to phpBB. The topic solved extension also provides the ability to restrict the "solved" status to moderators and administrators, but in a way that has nothing to do with the topic icons.

If you would be satisfied with "any administrator" being able to set the "solved" topic icon (but not "any moderator"), then you could probably "hack" a solution into the posting_editor.html style template. To conditionally exclude the "solved" topic icon from the list, unless the ACP link is being shown for the current user (which would mean they have some level of administrator access).

For example, if your "solved" topic icon ID was "4", you could replace the existing BEGIN topic_icon line in the posting_editor.html style template with something like this:

Code: Select all

<!-- BEGIN topic_icon --><!-- IF ( topic_icon.ICON_ID != 4 ) or U_ACP or U_MCP ) --><label for="icon-{topic_icon.ICON_ID}"><input type="radio" name="icon" id="icon-{topic_icon.ICON_ID}" value="{topic_icon.ICON_ID}" {topic_icon.S_ICON_CHECKED} tabindex="1" /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="{topic_icon.ICON_ALT}" title="{topic_icon.ICON_ALT}" /></label><!-- ENDIF --><!-- END topic_icon -->
Note even though it's checking for the U_MCP link, the MCP link isn't actually provided on the posting editor page. So the U_MCP check can't actually detect moderators on this particular page.
Post Reply

Return to “Extension Requests”