• It seems that every time an Author tries to paste embed code (for a youtube video, for example) the code magically disappears when they save a post.

    What the heck is going on? This problem does not seem to affect editors and administrators who can post you tube videos in posts with no problem.

    Is this normal or maybe related to a plugin?

Viewing 15 replies - 1 through 15 (of 17 total)
  • What tab are they using? HTML or Visual?

    Thread Starter nickaster

    (@nickaster)

    The HTML Tab. I haven’t been running WP long enough to know if it ever worked for them. With editor/admin privileges I’ve never seen a problem with this. But I’ve definitely been able to reproduce the problem by creating a new author and trying to include emded code – bam, it just disappears the second you save a post.

    This may be related to the “role scoper” plugin I installed, but I’ve since disabled it and the problem is still there.

    Try deleting that plugin.

    Thread Starter nickaster

    (@nickaster)

    yeah, I did. Dang problem still persists. it’s totally bizarre. Can you think of anything that might fight with the editor like that? I know, for example, that it strips out iframe code if I try to use that, could something have triggered whatever that filter is to go haywire?

    Did a second set of tests with new Author, bunch of different browsers. It’s definitely a consistent problem.

    Thread Starter nickaster

    (@nickaster)

    this is a serious drag. I’ve seen crazy stuff like this before in drupal. What is the name of the wysiwyg software that WP uses? Is it TinyMCE? Could that be malfunctioning even though I’m in the HTML tab?

    Here’s a clue – there’s an option here to allow “unfiltered html” for some uesrs –

    https://codex.www.ads-software.com/Roles_and_Capabilities#Capabilities

    According to that page “unfiltered HTML” is not allowed by Authors, so maybe this is actually a normal thing. I’m kind of surprised.

    Is there a way to give all Authors this capability without a plugin?

    Thread Starter nickaster

    (@nickaster)

    Crapalicious… so it looks like Role Manager is not supported by 2.8x and the alternative is a hack. I’m wary of reinstalling role scoper. anyone got other ideas?

    Role Scoper seems like waaaaaay too much plugin just to solve this little problem. I’d love to see a solution here.

    Same problem here, never installed Role Manager.
    I’m using WordPress 2.9.1.
    When an author tries to embed youtube video, the code disappears after saving.
    This happens with both HTML and Visual editors.

    Does anybody know why?

    Thanks,
    LB

    Authors have never been able to embed video on my site. I use the EasyTube plugin and it works fine (at least I think so, I can’t remember the last time an author tried to post a YouTube video).
    https://www.paulbain.com/uk-wordpress-developer/wordpress-plugin-development/easytube/

    Any results on this? I’m having this issue too with my Author roles. Seems like a significant problem.

    I am trying to upload videos from VH1 and other channels and using the html tab doesn’t work…it disappears after I save it.

    I had the same exact problem: admin tries to embed video, no problem. Author tries to embed same video (same exact code) and it shows up as a link instead.

    This is because wordpress has the Author user role defined as someone who can only write and edit their own posts AND cannot post javascript or complicated html.

    to change this you have to modify the default user capability. Thankfully, this is easy to do.

    Open up the functions.php file in your theme folder. At the top of this file add the following code:

    // get the "author" role object
    $role = get_role( 'author' );
    
    // add "organize_gallery" to this role object
    $role->add_cap( 'unfiltered_html' );

    Basically, you are just giving the author user role access to post any kind of code they want by adding the ‘unfiltered_html‘ capability. Just make sure that you can trust all of your authors before adding this, because without html filtering, a user could do considerable harm to your site if they decided to post some nasty javascript.

    It’d be nice if the unfiltered_html capability were something you could set, per user, on that user’s Edit page.

    Tony

    Justin Tadlock’s “Members” plugin should let you manipulate it pretty easily:

    https://www.ads-software.com/extend/plugins/members/

    I installed the plugin User Role Editor – https://www.ads-software.com/extend/plugins/user-role-editor/ – that is pretty simple to use. It lists the default WordPress roles and has checkboxes next to all of the actions available (with the default permissions check). You can add or remove permissions by simply clicking or unclicking actions and hitting “Update.”

    Go to Author (or whichever role is having issue) and check the box “unfiltered_html” and update – and voila.

    Thanks!

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Authors Can Not Embed Video???’ is closed to new replies.