Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Andrew Worsfold

    (@andrewworsfold)

    Hi Ryan, what role/permissions does your user have and which version of Tailor are you using? I’m guessing this is custom post type..

    Thread Starter Ryan Hellyer

    (@ryanhellyer)

    Version 1.2.7 and not a custom post-type, It’s a static page ??

    The role of the user I’m using is network super admin with all permissions possible.

    Thread Starter Ryan Hellyer

    (@ryanhellyer)

    The only plugin I have activated is the Tailor Page Builder plugin.

    Plugin Author Andrew Worsfold

    (@andrewworsfold)

    Interesting. Do other pages work? Are you able to see the “Tailor this Page” on the page list (in the actions menu against each page)?

    Thread Starter Ryan Hellyer

    (@ryanhellyer)

    It only had one page, but I created another to test, and it does not show a new link in the admin bar either.

    I’m not sure which page list you were referring to or what you meant by “the actions menu against each page”.

    Thread Starter Ryan Hellyer

    (@ryanhellyer)

    None of the screenshots show exactly where the new link should be, so perhaps it’s there, but I’m missing it. Without knowing exactly where it should appear, I can’t check though.

    So here’s a screenshot of it:
    https://random.hellyer.kiwi/files/2016/07/tailor-test.png

    Plugin Author Andrew Worsfold

    (@andrewworsfold)

    Hi Ryan,

    The “Tailor this..” link should appear automatically assuming the plugin is activated and pages are supported (assuming it’s a page you’re trying to Tailor) in the admin settings. Links should appear in both the “action menu” (I think that’s what it’s called) in the page list and the Admin Bar.

    Below are screenshots of the admin settings, action menu and Admin Bar links, respectively:

    View post on imgur.com

    If it’s a clean install of WordPress, with no other plugins installed and running the latest version of Tailor there’s no reason why these links shouldn’t be showing. I’d suggest starting there and then re-enabling any custom plugins or code that you have to see what, if anything, is causing the problem. We can then address any plugin conflicts that exist.

    Hope that helps. Let me know how you get on ??

    Andrew.

    Thread Starter Ryan Hellyer

    (@ryanhellyer)

    There are no theme or plugin conflicts, as the only one I’m running is the Tailor plugin ?? And this is a fresh site with no content on it.

    From my perspective, the plugin does not work.

    I’ll try to do some debugging for you and work out what may be triggering this. Perhaps either some of my files are corrupt, or you have made an error in your code somewhere.

    Thread Starter Ryan Hellyer

    (@ryanhellyer)

    I found the problem. There is a bug in your check_user_role() function. It only works for the role of ‘administrator’.

    You need to be doing a permissions check, not a user role check. So something like this would be required:

    if ( current_user_can( 'manage_options' ) ) {}

    Plugin Author Andrew Worsfold

    (@andrewworsfold)

    Hi Ryan – that is actually intentional. The settings page for the plugin allows you to specify the user roles that can “Tailor” pages. I’ve updated the default value for this setting so that editors, authors and contributors (as well as administrators) can Tailor pages out-of-the-box.

    I’m certainly happy to reconsider how this is handled, although it should be possible for administrators to easily manage who has access to Tailor and who does not without having to add custom code to alter user permissions.

    Thread Starter Ryan Hellyer

    (@ryanhellyer)

    I would set it to use a permissions check for a start, then allow users to move away from that and to use a specific role instead.

    With your current setup, even super admins can’t use the plugin. And if someone has removed admins options managing abilities, they may assume that installing your plugin will not work for those users and accidentally give their users more power than they intended to. By using a permissions check for manage_options and then allowing them to selectively choose a specific role if they want, then you could avoid this issue.

    Plugin Author Andrew Worsfold

    (@andrewworsfold)

    Thanks again for your feedback, Ryan.

    I’ve implemented this change in the latest version of Tailor (i.e., manage_options permission check with the option to also allow other roles in the admin settings). Please check it out and let me know if you have any other comments!

    Thread Starter Ryan Hellyer

    (@ryanhellyer)

    Awesome. Thanks ??

    hello i’m experiencing this same issue right now. im not great at troubleshooting php. thanks

    I’m also getting this problem on a fresh install. Default theme. No other plugins active.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘"Tailor this Page" link not present’ is closed to new replies.