Jump to content

Archived

This topic is now archived and is closed to further replies.

mtaus

Admin Priviliedges in DMS Editor

Recommended Posts

mtaus+    5
mtaus

I thought that any admin user could go to the frontend (in Chrome) and edit the DMS theme. But a client just asked for access to the design interface and when I gave his account admin status he was unable to see the viual editor. I logged in using his credentials and indeed his account cannot edit the DMS theme (even thought the WP bar at the top is displaying).

 

Suggestions?

Share this post


Link to post
Share on other sites
Simon    247
Simon

A user needs to have the 'edit_theme_options' role.

Share this post


Link to post
Share on other sites
mtaus+    5
mtaus

Simon_P how do I edit this role?

Share this post


Link to post
Share on other sites
Simon    247
Simon

You dont need to edit the role, the user has to have that role to use the editor. Creating a user and ticking the Administrator checkbox should be enough.

Unless you have been editing the roles/groups or are using some kind of members plugin.

Share this post


Link to post
Share on other sites
mtaus+    5
mtaus

Simon_P thanks... I have no permissions plugin installed and I have not edited permissions manually. WPBackup has permissions, but I've tested variations of that and deactivated the plugin, none of which help.

 

As I mentioned above, this user was an Editor and then I changed the account to Admin.  I've also attempted to create a new admin account and that one does not have permissions either.

Share this post


Link to post
Share on other sites
Simon    247
Simon

I can only suggest finding a user role editor plugin.

 

The default roles work perfectly.

Share this post


Link to post
Share on other sites
mtaus+    5
mtaus

Simon_P I don't believe this relted to core WP permissions. When I login using this account, I am able to access all the edit_theme_options features, including theme selection, editing, etc. 

Share this post


Link to post
Share on other sites
Simon    247
Simon

Right create an admin account for me and PM me the login.

 

Heres the code that enables the editor:

 

if( current_user_can('edit_theme_options') && $state != 'off' && $is_chrome )
return 'draft';
else {
return 'live';
}

Share this post


Link to post
Share on other sites
Simon    247
Simon

You have PL_EDITOR_LOCK defined somewhere.

Share this post


Link to post
Share on other sites
mtaus+    5
mtaus
Simon_P I have no idea how this would happen nor do I know how to change. I've got several DMS site running and never encountered this issue.

Share this post


Link to post
Share on other sites
Simon    247
Simon

in the fil wp-config.php you, or someone else added the EDITOR_LOCK code.

  • Like 1

Share this post


Link to post
Share on other sites
mtaus+    5
mtaus

Simon_P thanks, I was able to edit wp-config.php to open it up. Still nt sure how it got locked.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Somebody must have added that snippet, there is no other way it can be added. DMS doesn't/can't add that line of code to your wp-config.php file.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • pastor.rocklyn
      By pastor.rocklyn+
      I am running Wordpress 4.1 on a site hosted on DreamHost. I have an SSL certificate and have set the site up for SSL. I want to require SSL for logins and admin operations, but I want others interact with the web site via regular HTTP. I am using the Wordpress HTTPS module, so I have both "Force SSL Administration" and "Force SSL Exclusively" checked so that only admin access is forced to go through SSL. Unfortunately, these settings also force the front-end DMS interaction to be non-SSL, so that I can't update the web site unless I uncheck "Force SSL Exclusively".
       
      So far I haven't found a lot of information on the site about how to use SSL. What is the officially recommended way to use Pagelines DMS2 on an SSL site?
       
       
    • respectgb
      By respectgb+
      Hi,
       
      Hopefuly someone here can help me on my quest, I have managed to add an admin panel under the "global options" for my clients to use for extended options and also remove any elements that I don't want them to see based on their user level (all is great so far).
       
      However, what I'm wanting them to be able to edit is the 'blogname' and 'blogdescription' for their sites, I have managed to get the 'blogname' and 'blogdescription' to interact (clear the fields in the dabase - argh!) using the following action, but it doesn't actually take into account the $settings array that I have created.
      add_action( 'pl_sorted_settings_array', 'save_extra_blog_options' ); function save_extra_blog_options( $settings ) { update_option( 'blogname', $_POST['blogname'] ); update_option( 'blogdescription', $_POST['blogdescription'] ); } I have copied and pasted the code that I am using to create the admin panel below:
      add_filter('pl_sorted_settings_array', 'add_global_panel2'); function add_global_panel2($settings){ $settings['privacy'] = array( 'name' => 'Blog Name', 'icon' => 'icon-eye-open', 'opts' => array( // Regular Options Engine array( 'id' => 'blogname', 'type' => 'text', 'label' => 'blog Name', ), // Regular Options Engine array( 'id' => 'blogdescription', 'type' => 'text', 'label' => 'blog description', ), ) ); // Finally we return the new array return $settings; } Really hope you guys can help!!
       
      Thanks in advance!
    • outtareach
      By outtareach
      I have feedwordpress working on a site and its fine on firefox but on chrome when I am logged in I get css error which no css on the page making it hard to edit the sidebar because I cannot find/nor edit the page.  I turned on debug and this is what I get
       
       
       
      Notice: add_option was called with an argument that is deprecated since version 2.3 with no alternative available. in /home/content/75/11763875/html/wp-includes/functions.php on line 3000

      Notice: add_option was called with an argument that is deprecated since version 2.3 with no alternative available. in /home/content/75/11763875/html/wp-includes/functions.php on line 3000

      Notice: add_option was called with an argument that is deprecated since version 2.3 with no alternative available. in /home/content/75/11763875/html/wp-includes/functions.php on line 3000

      Notice: convert_to_screen(), add_meta_box() was called incorrectly. Likely direct inclusion of wp-admin/includes/template.php in order to use add_meta_box(). This is very wrong. Hook the add_meta_box() call into the add_meta_boxes action instead. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/content/75/11763875/html/wp-includes/functions.php on line 3041

      Notice: convert_to_screen(), add_meta_box() was called incorrectly. Likely direct inclusion of wp-admin/includes/template.php in order to use add_meta_box(). This is very wrong. Hook the add_meta_box() call into the add_meta_boxes action instead. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/content/75/11763875/html/wp-includes/functions.php on line 3041

      Warning: Cannot modify header information - headers already sent by (output started at /home/content/75/11763875/html/wp-includes/functions.php:3000) in /home/content/75/11763875/html/wp-content/plugins/woocommerce/classes/class-wc-session-handler.php on line 63
    • souleclipser
      By souleclipser

      Image above: How the forum was bugged and no reply from Simon..
      Hi There,
       
      Please see the image and advice accordingly.
      I bought the developer member, and i went to register with the forum. 
      And it blocked my IP / account with no valid reason. 
      It blocked my whole office IP address, suddenly. I immediate contact the support, no reply after 1 week. 
      Sent again another week, no reply . 

      Nevertheless i went to use a VPN to create another account. 
      I manage to login this time but unable to link to my developer account.

      Man, this is disappointing

      Image below display : Block my Ip address ting...

       
    • levelup
      By levelup
      Is there any nifty way to remove the "Features" admin menu tab for some user roles, editor and author. I thought it might be possible by hooking into the admin loading and unregistering the menu option. But I don't know exactly how.
×