Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Code Permissions

UserPost

9:02 pm
September 19, 2009


nickaster

Member

nickaster

posts 13

1

Howdy - 2 questions:

1) According to the "Capability vs. Role Table" on this page: http://codex.wordpress.org/Roles_and_Capabilities  the "unfiltered html" option is only available to editors and up.    I really want my authors to be able to post youtube videos (and other "embed" code).    I'm assuming the current restriction (which drives me insane) has something do with this "unfiltered html" option.   Can Role Scoper solve this problem?  how?

2) I've been using another plugin called "Advanced Category Excluder" - http://ace.dev.rain.hu

I've been using it to keep certain categories from appearing on the front page.  Can role scoper do this? how?  I'd love to ditch the other plugin just to keep the clutter down.  


Thanks!!

3:05 pm
September 21, 2009


nickaster

Member

nickaster

posts 13

2

Hey guys - sorry the title of this post may have been bad.  Any answers to the questions above?

9:30 pm
September 21, 2009


Kevin

Admin

posts 2381

3

nickaster said:


1) According to the "Capability vs. Role Table" on this page: http://codex.wordpress.org/Roles_and_Capabilities  the "unfiltered html" option is only available to editors and up.    I really want my authors to be able to post youtube videos (and other "embed" code).    I'm assuming the current restriction (which drives me insane) has something do with this "unfiltered html" option.   Can Role Scoper solve this problem?  how?


If you want your Authors to be able to insert javascript (and other unfiltered html) into any post/page they can edit, just use Capability Manager to add the unfiltered_html capability to the Author role. If you want to give them that ability only for specific page(s), post(s) or categor(ies), stay tuned for the next release of Role Scoper.

9:34 pm
September 21, 2009


Kevin

Admin

posts 2381

4

nickaster said:


… keep certain categories from appearing on the front page.  Can role scoper do this? how? 



From the Usage Guide:

Restricting Read Access by Post Category

  1. Go to WP Admin -> Restrictions -> Category
  2. Scroll down to your category of interest, perhaps using the scroll link at top
  3. Select the "Private Post Reader" checkbox to restrict read access to private posts by anonymous users and WP Subscribers
  4. Optionally, select the "Post Reader" checkbox to restrict read access to non-private posts by anonymous users and WP Subscribers (if the WP Subscriber role has not been modified to include read_private_posts)
  5. Scroll to the top
  6. Note that the adjacent dropdown indicates that the Update action will cause blog-wide assignment of the selected roles to be ignored for posts in the selected category.
  7. Click the Update button

12:15 am
September 22, 2009


nickaster

Member

nickaster

posts 13

5

Thanks a million!

As for the second question - the problem is I don't want the posts to be invisible - I just want them to not appear on the front page. I want them to still appear on their individual pages and on a special category page.   So I guess i"m out of luck and will keep using the other plugin.  No big deal.

8:04 am
September 22, 2009


Kevin

Admin

posts 2381

6

nickaster said:

Thanks a million!

As for the second question - the problem is I don't want the posts to be invisible - I just want them to not appear on the front page. I want them to still appear on their individual pages and on a special category page.   So I guess i"m out of luck and will keep using the other plugin.  No big deal.


I see. That's a bit outside Role Scoper's purpose, but you're not out of luck. If you want to simplify your configuration, just add this to the bottom of you wp-config.php:

function nicks_home_query( &$query ) {
  if ( is_home() )
    $query->query_vars['cat'] = '-10,-17'; // set to your non-visible catIDs
}
add_action( 'pre_get_posts', 'nicks_home_query' );

Just modify the above code with your desired hidden category IDs. And/or include catIDs without a leading negative to specify which categor(ies) posts MUST be in for home page visibility.


About the Agapetry forum

Currently Online:

17 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1181

Posts: 5363

Members:

There are 1173 members

There are 1 guests


Kevin has made 2381 posts

Top Posters:

metal450 - 148

Ragnar - 102

YikYak - 68

whiteorb - 44

Daisy - 35

Administrator: Kevin | Moderators: Kevin