WPFront
  • Home
  • Plugins
    • Notification Bar Plugin
      • Plugin Ideas
      • Plugin Settings
      • Plugin FAQ
    • Scroll Top Plugin
      • Plugin Settings
      • Plugin FAQ
    • User Role Editor Plugin
      • Plugin Documentation
      • Plugin Settings
      • Plugin FAQ
    • Paddle Gateway Plugin
  • Go Pro
  • Support
    • Documentation
    • FAQ
  • Affiliates
  • Contact
  • Login
  • Cart
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 15 posts - 691 through 705 (of 880 total)
← 1 2 3 … 46 47 48 … 57 58 59 →
  • Author
    Posts
  • August 19, 2015 at 11:14 pm in reply to: Role needs to permit View and Use of Library Media – But NOT Add New Media #14775
    Syam Mohan
    Keymaster

    Hi Steve,

    Does the code work?

    Thanks

    Syam

    August 19, 2015 at 11:12 pm in reply to: If logged in redirect to Login Redirect url? #14773
    Syam Mohan
    Keymaster

    Hi Bratt,

    Does the code work?

    Thanks

    Syam

    August 19, 2015 at 6:08 pm in reply to: Zack Hansen – Turn off view of other posts #14744
    Syam Mohan
    Keymaster

    This history is posted here to give a context to the review written on wordpress.org.

    https://wordpress.org/support/topic/avoid-avoid-avoid-1

    August 17, 2015 at 9:14 am in reply to: Multisite default settings #14549
    Syam Mohan
    Keymaster

    Hi Ian,

    I don’t think I understand your first question. Where do you see the “Domain Mapping” menu? Within the network admin or on individual site admin?

    You can remove Roles capabilities and Roles won’t appear.

    Syncing menus is difficult, because each site can have it’s own menu setup and at this point there is no way to figure it out from the network admin.

    Thanks

    Syam

    August 15, 2015 at 5:49 pm in reply to: If logged in redirect to Login Redirect url? #14462
    Syam Mohan
    Keymaster

    Hi Bratt,

    The reason it was not working because its too late to redirect from a page template.

    function login_page_template_redirect() {
        if(is_page('login')) {
            if(is_user_logged_in()) {
                wp_redirect(apply_filters('login_redirect', '/'));
            } else {
                wp_redirect('/wp-login.php');
            }
            exit();
        }
    }
    add_action( 'template_redirect', 'login_page_template_redirect' );
    

    Try putting the above code within the functions.php.

    Thanks

    Syam

    August 13, 2015 at 6:28 pm in reply to: Role for certain page, hide everything else #14390
    Syam Mohan
    Keymaster

    In your scenario, your role need “read” capability and all the capabilities under “Projects” except publish. Now with “edit_projects” capability user will be able to create new Projects, but they won’t be able to publish. They can submit it for review.

    Now to give only access to Project X, you will have to use Extended Permissions. Using Bulk Edit remove Read/Edit/Delete permission on all Projects for the role. Then edit Project X enable Read/Edit/Delete for the role.

    That configuration should achieve what you are looking for.

    Now to give same permission on Project Y, edit extended permission of Project Y. But if you want to give same permission on a different project for different set of users, then you will have to create a new role and repeat the process.

    Thanks

    Syam

    August 13, 2015 at 6:16 pm in reply to: What's the right steps? #14389
    Syam Mohan
    Keymaster

    Hi Remix,

    To create the roles with right permissions, you need to know what all capabilities are required to handle products and manage Woocommerece. I’m not familiar with Woocommerece. Is it possible for you to ask within the Woocommerece support, what all capabilities are required to manage the functionalities you are looking for?

    Thanks

    Syam

    August 12, 2015 at 8:13 pm in reply to: What's the right steps? #14327
    Syam Mohan
    Keymaster

    You are welcome Remix.

    August 12, 2015 at 8:02 pm in reply to: What's the right steps? #14325
    Syam Mohan
    Keymaster

    Hi Remix,

    I have configured your site the way you want. I created a new role “Test”.

    Take a look into

    1. Capabilities for Test
    2. Menu Editor for Test
    3. Login Redirect for Test

    These are the minimum configuration required.

    Thanks

    Syam

    August 12, 2015 at 6:33 pm in reply to: If logged in redirect to Login Redirect url? #14318
    Syam Mohan
    Keymaster

    Hi Bratt,

    It seems like the caching is still there. I’ll try to do the code on one of my development sites and send it you. It will take me sometime, since I need to setup the testing environment.

    Thanks

    Syam

    August 12, 2015 at 6:16 pm in reply to: Role needs to permit View and Use of Library Media – But NOT Add New Media #14317
    Syam Mohan
    Keymaster
    
    
    
    function wpfront_custom_upload_prefilter( $file ) {
        $roles_not_allowed = array('author', 'editor'); //not allowed role names
    	
    	$user = wp_get_current_user();
    	
    	foreach($roles_not_allowed as $role) {
    		if(in_array($role, $user->roles)) {
    			$file['error'] = 'You are not allowed to upload.';
    			return $file;
    		}
    	}
    
        return $file;
    }
    add_filter( 'wp_handle_upload_prefilter', 'wpfront_custom_upload_prefilter' );
    

    The above code limits any user who belongs to Author or Editor from uploading. Make sure to change the role names to your role names.

    Thanks

    Syam

    August 12, 2015 at 9:11 am in reply to: Role for certain page, hide everything else #14303
    Syam Mohan
    Keymaster

    Hi Michael,

    If there is no specific criteria and it has to be set manually then you will have create as many roles based on how many set of permissions you have. For example if half the users get access to same project and half of them don’t then you need two roles. Or if one third of the users get access to Project A, another one third get access to Project B and no one get access to Project C, then you need three roles.

    You can set the permission through bulk edit, but you still have to create as many roles against each permission set.

    I believe that “Edit Page” link is coming from bbPress and allows you to edit the original topic. I will try to find a way to remove it. For now it will be there but no one will be able to use it. Thanks for reporting it.

    Syam

    August 12, 2015 at 6:58 am in reply to: What's the right steps? #14278
    Syam Mohan
    Keymaster

    Hi Remix,

    Make sure the new role has “read” capability.

    You could also use login redirect to take them to the right dashboard page.

    Thanks

    Syam

    August 12, 2015 at 6:56 am in reply to: If logged in redirect to Login Redirect url? #14277
    Syam Mohan
    Keymaster

    Are you hosting on a shared server or VPS?

    I’ll give it another try since you disabled Wordfence.

    Thanks

    August 12, 2015 at 6:52 am in reply to: Role for certain page, hide everything else #14275
    Syam Mohan
    Keymaster

    Hi Michael,

    What is your criteria for associating a project to a user/role?

    From where did you get the above edit link? That is a wp-admin post edit link and users are not allowed to access wp-admin on wpfront.com for security reasons, hence you get redirected to front end.

    Sorry for the delayed response, I didn’t get a notification on this topic creation.

    Thanks

    Syam

  • Author
    Posts
Viewing 15 posts - 691 through 705 (of 880 total)
← 1 2 3 … 46 47 48 … 57 58 59 →
Log In
Lost Password

Search Topics

Documentation

FAQ
Roles List Add Role Edit Role Delete Role Restore Role Add or Remove Capability Assign/Migrate Users Posts/Pages Extended Permissions Custom Post Type Permissions Navigation Menu Permissions Widget Permissions Admin Menu Editor Media/Attachment File Permissions User Level Permissions Content Restriction Shortcodes Login Redirect Export Roles Import Roles Bulk Edit Settings Multisite Roles List Multisite Add New Role Multisite Edit Role Multisite Delete Role Multisite Restore Role Multisite Sync Roles Multisite Settings WordPress Capabilities Actions and Filters Installation Instructions