View Single Post
Old 06-14-2011, 06:24 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
ahh ok, didnt know you were doing multisite.

Code:
<?php 

// only admins will be allowed to post iframes or else it will strip them.
// have a peek at http://codex.wordpress.org/Roles_and_Capabilities
// set it to whatever level you want to be able to iframe 

if ( !current_user_can('manage_options') ) { 

function remove_iframe($content) {
    $content = get_the_content();
    $content = apply_filters('the_content', $content);
    $pattern = '/(<iframe.+?>)/';
    $content = preg_replace($pattern, '', $content);
    return $content;
}

add_filter('the_content','remove_iframe');

}
probably something like this without a plugin.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote