Awaken Solutions Inc.
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Restrict] Permission for postsThis plugin is only for pages. We’ve not had the time or resources to extend it to posts. But the code is available for anyone who’d like to do so.
Forum: Plugins
In reply to: [Simple Restrict] Automatic permissions for usersSorry for the delay in my reply. I saw it had been marked as resolved and didn’t realize it had been re-posted right after.
You would need to add the custom meta to the new user profile field. As you mentioned, my previous reply explains how to do this: https://wordpress.org/support/topic/automatic-assigning-of-permission?replies=4
As for how this might be applied to buddypresss in particular, I’ve not done it myself but this page seems to explain how it could be done: https://buddypress.org/support/topic/how-to-add-custom-usermeta-to-registration/
Hope this helps
Forum: Plugins
In reply to: [RSVP and Event Management] Great plugin. Some issues encountered.Excellent, thanks for your help in updating the plugin so quickly!
Forum: Plugins
In reply to: [Simple Restrict] What about BBpress?Hi Max, this plugin is only built for WordPress pages. We do not currently have the time or resources to build it for BBpress.
Forum: Plugins
In reply to: [Simple Restrict] automatic assigning of PermissionGreat, happy to hear it. If you have a moment to please post a review for the plugin, it would help it grow. Thanks.
Forum: Plugins
In reply to: [Simple Restrict] automatic assigning of PermissionAfter you’ve created the user with wp_insert_user, it returns the user ID of the newly-created user.
Use this in the update_user_meta function to add the permission meta to the user:
update_user_meta( $user_id, $meta_key, $meta_value)It is important to note that our plugin prepends “simple-restrict-” to the page permission slug and to the user meta (to avoid conflicts with other user metas).
Therefore, you would run something like this:
update_user_meta( $user_id, ‘simple-restrict-bigkahuna’, ‘yes’ )Let us know if you run into trouble.
Forum: Plugins
In reply to: [Simple Restrict] Menu RestrictionMy pleasure.
If you do go that route, note that our plugin prepends “simple-restrict-” to the page permission slug, and uses this as the new user meta (we do this to avoid conflicts with other user metas).
So, for example, if you created a permission with a slug of “gold-subscriber”, the newly available user meta is actually called “simple-restrict-gold-subscriber”.
Forum: Plugins
In reply to: [Simple Restrict] Menu RestrictionHi Bob,
Looking into your question further, one way to automate the hiding of a menu item based on the current user’s permissions would be to use the plugin “If Menu”:
https://wordpress.org/plugins/if-menu/It allows you to show menu items only if certain conditions are met and, importantly, allows you to write your own custom condition functions. So you could write a custom function that verifies if the user’s permission matches the permissions of the page that the menu item is linking to. If it does, you show the menu item. If not, you don’t.
Forum: Plugins
In reply to: [Simple Restrict] Restrict User rather than Allow userHere is a link that shows how to bulk edit page properties. The page permissions are editable in this same way.
https://premium.wpmudev.org/blog/bulk-editing-page-post-details/
Forum: Plugins
In reply to: [Simple Restrict] Restrict User rather than Allow userI assume you also want those pages to be restricted to the general public, correct?
If so, then you could assign a permission to all your pages (you can do so with bulk edit), and then assign that permission to all your users except those few users.
Thanks for your positive input and don’t be shy to review the plugin (as a new plugin, this can help it grow).
Forum: Plugins
In reply to: [Simple Restrict] Restrict User rather than Allow userHi valuser,
You are correct in your description. The plugin requires you to choose what pages the user has permission to see.
To restrict a page from a user as you suggest, you would need to ensure that the page has a permission set, and that the user does not have that permission assigned to their profile.
There is no current plan to code the plugin in the way you described, but if you could please let me know your particular use case, I could help suggest how this plugin could do that as easily as possible.
All the best.
Forum: Plugins
In reply to: [Simple Restrict] Menu RestrictionHi Bob, sorry for the delay in my reply. No, it does not automatically hide any menu items that link to that page.
Forum: Plugins
In reply to: [UpdraftCentral Dashboard] Great idea, small issues and some suggestionsThanks David. I will check the console next time I add a site.
The theme I use is Salient.
Thanks for the link to the suggestions forum, I will take a look!
Keep up the great work.
Forum: Plugins
In reply to: Translating a plugin, importing .mo/.poThanks Mika. That URL helped a lot.
Forum: Everything else WordPress
In reply to: Cannot postThanks esmi, that was the 3rd try but showed the same white page afterwards so I assumed it hadn’t worked like the other tries. Looks like it did.
Thanks again.