Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Forum: Reviews
    In reply to: [User Role Editor] misuse

    Hi everyone;

    Hope everyone is doing good. eva_log, I do understand where you’re coming from, but at the same time, this is an issue of providing rating of one-star for a product that didn’t deserve it. The plugin is obviously doing what it is intended to do (by keeping people out of certain activity permissions), and you are unfortunately at the mercy of your previous web-developer’s set-up, not the plugin developer.

    It is your website developer that deserves the one-star rating: as an outside-person looking in, I would hope you consider changing your grade for the plugin, and find your developer on Google and give them a one-star rating.

    Roger

    Hi Vladimir;

    Awesome plugin: I use it on almost all websites I develop to customize interfaces for clients.

    Question regarding the above code snippet: I have a site where I created a good amount of custom user-roles (which we now have decided are too much and have just configured some queries to accommodate what we need). I’m having to delete these roles one-by-one and doing it via the front-end interface is time-consuming.

    Would it be ok for me to use the code you supplied above and replace the default ‘roles_to_hide’ values with the user-roles I have created to delete them?

    I believe I used this code before (or something similar) and was successful in ‘removing’ the default ‘subscriber’ level from a website, and it seemed to have ‘deleted’ it, but I am not sure. Would doing this actually ‘delete’ the roles I enter into the code?

    I’d prefer they get deleted vs. just ‘hidden’. Hope that makes sense. I also figured I would ask you before attempting to do so and causing issues on my client site.

    Thanks in advance and have a great day!
    Roger

    Thanks so much for your code LucaRosaldi – This helped a lot when I was wondering what was going on as well.

    Much appreciated!
    Roger Sanchez

    Thread Starter RogerSanchez

    (@rogersanchez)

    Hi everyone;

    Would anyone in the development team have any answer on this? If it’s not possible, that’s ok – I’d just like to know.

    Thanks in advance and have a good day!
    ~Roger

    No problem Robin W – Glad I was able to help out : ) – Have an awesome day!

    Hi Davids1449 – I just recently ran into the issue and have been enabling/disabling various plugins, but am getting nowhere. Would you be able to post what plugin was the conflict?

    Thanks!

    Hi there Bloopie;

    Sorry about the delayed response: I tend to be very busy with clients all the time, but figured if you are

    I haven’t gone into it that far as I don’t really need to change the styling on my end (the default suited just fine for me), but I do know how to do it.

    In simple terms, to change the background image, install a plugin to your site called Lazyest Stylesheet (I put all my custom CSS in this all the time) and paste the following CSS within this stylesheet:

    .login-popup {
    background-color:#YOUR-HEX-COLOR-HERE;
    }

    Put whatever background color you wish where it states ‘YOUR-HEX-COLOR-HERE’ and save. you can refresh your screen to see the changes (in another browser, of course since you will be logged in on one browser and not see the login box until you are logged out – I test in multiple browsers at one time all the time).

    I’m enclosing a link that shows my using FireBug in FireFox to find the CSS I wish to change for your reference – VIEW IMAGE.

    Again, hope this helps you out, have a great day!

    Roger

    Thread Starter RogerSanchez

    (@rogersanchez)

    I should also mention, I cross-browser/platform check my work and your tabs are pretty slick all the way around with no issues thus far for me.

    Thanks!

    This page was very helpful, so thanks all.

    With a couple of sites I’ve been working on, I figured I would outline the instructions step-by-step in one post, as I had to piece together all the (awesome and helpful) information – hope this helps:

    STEP 1 – Open your theme’s functions.php file (possible path for majority: wp-content/themes/(theme-used)/functions.php) and paste the following code within the file:

    /**
    * This custom function is for PLUGIN: WP Modal Login - Hook to implement shortcode logic inside WordPress nav menu items
    * Shortcode code can be added using WordPress menu admin menu in description field
    */
    function shortcode_menu( $item_output, $item ) {
    
    if ( !empty($item->description)) {
    $output = do_shortcode($item->description);
    
    if ( $output != $item->description )
    $item_output = $output;
    }
    
    return $item_output;
    }
    
    add_filter("walker_nav_menu_start_el", "shortcode_menu" , 10 , 2);

    STEP 2 – Save the functions.php file

    STEP 3 – In your WP-Admin, navigate to your theme’s ‘Edit Menus’ page (path: wp-admin ‘Appearance’–>’Menus’ page)

    STEP 4 – When in the ‘Edit Menus’ page (I’m assuming it would be first time in this walk-through), go to top-right corner and click the ‘Screen Options’ tab. From here, tick (checkmark) all boxes (you won’t need all of them, but maybe in the future). They will automatically populate in the ‘Edit Menus’ area below.

    STEP 5 – Add the following field-values to the menu-item you choose for login/logout:

    URL: https:// – or https:// (depending if you have SSL or not) + YourWebsite.com/#login-box (example: https://MyWebsite.com/#login-box)
    Navigation Label: Login/Logout
    Description: [wp-modal-login login_text="Login" logout_text="Logout"]

    STEP 6 – Save the menu by clicking ‘Save Menu’

    This is it: you should now be able to login/logout from here.

    As a sidenote: For my site(s), I have my website entirely front-end for lower-level access users, and back/front end for admin type users via the WP User Frontend Plugin, I then created custom usertypes (using both Justin Tadlock’s method and User Role Editor Plugin), removed default unnecessary fields using Hide User Profile Fields Plugin, then I created custom-content viewable fields/menu items for those different user-types, set private pages viewable by user-type (or individual user, if you prefer) and utilized Adminimize Plugin for minute/granular access to each one of those customized users. I also allowed certain admin-type users the privilege to switch between users in the directory and back again via the User Switching Plugin.

    There are a host of other methods and functions I used to create quite the private website for my clients (users – except admins – cannot view anyone else’s profile, multitude of forms for each user-type, custom functions, etc.), but the above is my preferred method to use when allowing logins/logouts in my WordPress sites that I feel anyone can use to their benefit. I’m only inputting this as an additional method of login/logout that works for me in the hopes it could help anyone else out since this deals with login/logout accessibility.

    I did see in the plugin author’s notes that login/logout redirects are coming in the future: until then, I will keep using the Peter’s Login Redirect Plugin.

    Hope this helps out – have a good day!
    Roger

    I should also mention probably one of the LEAST intrusive ways to go about creating private profiles for individuals that I know of on WordPress. If you are ok with getting your hands wet with PHP and testing within the database, then the following solution is awesome:

    Justin Tadlock’s explanation/method of utilizing your theme’s ‘functions.php‘ file to allow for the creation of functions that make your own unique custom fields for your individual users and your website – this is one of the least intrusive/friendly ways you can add custom profile fields with the least amount of plugin worry/issues.

    In addition to this, you will want to utilize ‘WP User FrontEnd‘ plugin to allow front-end viewing of profiles for specific types of members you have (subscribers, for example). This adds a front-end user profile area where you can simple choose a page where the user info will populate, set it with shortcode, and have a private member area.

    Since everyone will be viewing their profile via front-end, you will want to utilize a front-end login panel. If you’re looking for a decent front-end login plugin, I’d suggest utilizing the plugin ‘Sidebar Login‘ as it works smoothly with the aforementioned settings. Within the simple settings panel that this plugin provides, you’re able to redirect where individuals go upon login and logout and some other extra features – pretty nifty and simple.

    For the most part, the above can work in the most simplest of cases smoothly, but if you’re wanting to add extra buffers, read below (no specifics beyond this point, just providing a synopsis of extra stuff you should/could do):

    To aid in disallowing wp-admin access for the general ‘subscriber’, I tinker with certain functions dealing with directing people to ‘wp-admin.php’ within the ‘wp-login.php’ file located in the root directory of your WP install. This helps keep unnecessary members from easily accessing your wp-admin area whatsoever. If back-end access is NOT a concern for you though, you can skip adding both ‘Sidebar Login widget‘ and skip configuring your ‘wp-login.php‘ file and proceed with Justin Tadlock’s method (above), and utilizing ‘WP User FrontEnd‘ plugin.

    Yet again, this is just a BASIC way of doing this with many configurations you will have to set up/configure/code in addition to the above settings (privatizing content, pages, redirect, ssl if any, etc.), but if you’re determined, you will get the hang of it if you work through it slowly.

    I utilize this method on a couple of websites I’ve developed/designed, and it works great. Do at your own risk though; if you’re unfamiliar with how to tinker with WP CMS structure, you may want to stick with one of the aforementioned solutions in my previous comments.

    I hope one of these three methods works for individuals looking for a type of solution for private member areas.

    I am using all of this without any issue utilizing WP 3.5.1

    Roger Sanchez

    I should also add that a ‘cleaner’ solution to the above (as S2Member can tend to be both very heavy as well as tedious and finicky) would be to utilize the plugins below in unison:
    A: WP User Frontend
    B: User Permissions

    The above will combine to provide with a very similar solution to the above mentioned (my previous reply above) solution. I think you may like this one better as it’s easier as well with less confusion AND the addition of being friendly with other plugins (S2Member is VERY, VERY – did I say ‘VERY’ unfriendly with other plugins for the most part).

    In addition, if you’d like to customize user fields and also get rid of the annoying common WP User Fields (Yahoo Instant Messenger, URL, Biographical Info, etc.) take advantage of using the following plugins as well:
    C: Hide User Profile Fields
    D: Simple User Profile

    I have tested this combo and it works excellent…I hope this additional scenario helps you out if the first solution doesn’t work.

    Roger Sanchez
    DynamicoDesigns.com

    Hi there bsvikss;

    I have been working with a handful of ideas and came to the ultimate conclusion that the single ‘best’ option for my situation (similar to yours) is utilizing S2Member (Just Google S2Member or view the plugin within the www.remarpro.com ‘plugins’ area)…This seems to do the trick for me with a little tweaking.

    Once you install the plugin, you are able to go to the individual user’s profile (via admin), and search for a new field called ‘Custom Capabilities‘ and make up a word here that is unique to the user (like ‘PetShopBoys123‘ or something very unique). Once you have done that, you can navigate to the ‘Posts‘ area and then ‘New Post‘, and from the ‘Create New Post‘ page at the top-right corner, you will now see a new area called ‘S2Member‘ with two new categories explained below:

    1: The first category named ‘Post Level Restriction?‘, enter the actual level of your user (subscriber, author, custom, etc.)

    2: Below that is a field called ‘Require Custom Capabilities?‘; this is where you would place that unique word from the previous paragraph (‘PetShopBoys123‘). From there, you can publish that page for that individual person.

    The unique word ‘PetShopBoys123‘ in my example grants access to ONLY the individual(s) whom have this unique word tied to their user account. You obviously have Admin access of all the unique posts you create as well.

    I hope this helps; it seems to be one of the better solutions for creating ‘member only‘ areas. There are other configurations with other plugins that I’ve used to achieve a similar result of private pages/posts, so if this idea doesn’t work for you, definitely keep playing with other combinations.

    The developer of S2Member publicly states that this process isn’t a normal thing with S2Member, and it wasn’t made for private posts, but he has configured the program to handle it well even without that intention: here’s the video tutorial from him showing you how the private posts configuration is done step-by-step: https://www.s2member.com/videos/716DC24E7E347DC2/

    I hope this helps you out in what you’re looking for.

    Roger Sanchez
    DynamicoDesigns.com

Viewing 12 replies - 1 through 12 (of 12 total)