Bainternet
Forum Replies Created
-
Sorry it was a theme issue. thanks anyway.
fixed and works now with custom roles as well.
thanks
fixed in version 2.1
latest version 2.1 has a major multisite support update and its fixed.
implemented in version 2.1
last version 2.1 has a new rule system which handles that and much more,
so from this version on 0 will block the user from creating the post.clean install of
WordPress version 3.3.1
Duplicator 0.2.5browser cache cleared and still issue is showing ??
UPDATE
i keep getting the same questions for people so here is a quick solution, the idea is to create a new instance of the plugin and use its filter function something like:<?php //get comments and comment form as a var global $post; $comments = get_comments('post_id='.$post->ID); $com = ''; foreach($comments as $comment) : $com .= '<div class="com_container"> <div class="com_author">'.$comment->comment_author . '</div> <div class="com_content">' . $comment->comment_content.'</div> </div>'; endforeach; ob_start(); comment_form(); $com .= '<div class="com_form">'.ob_get_contents().'</div>'; ob_end_clean(); //here you have two options, either to set the shortcode manually for each page: //$com = '[O_U user_id="1,2,3" blocked_meassage="comments are closed for everyone!"]'. $com .'[/O_U]'; //then run it by the shortcode //echo do_shortcode($com); //or you can create a new instance of the plugin class and let it use the same sattings as the content on that page: $limit_C = new bainternet_U_S_C(); echo $limit_C->User_specific_content_filter($com); ?>
This one actually does show content based on the user id.
user id or user name or user role.
the plugin is named user specific content so its made to work with posts or pages content. You can make it work with anything you want using the shortcode in your template files, or by using the plugins main class and it’s methods.
here is an example of how you can use the plugins class methods in your theme to make comments user specific :
<?php //get comments and comment form as a var global $post; $comments = get_comments('post_id='.$post->ID); $com = ''; foreach($comments as $comment) : $com .= '<div class="com_container"> <div class="com_author">'.$comment->comment_author . '</div> <div class="com_content">' . $comment->comment_content.'</div> </div>'; endforeach; ob_start(); comment_form(); $com .= '<div class="com_form">'.ob_get_contents().'</div>'; ob_end_clean(); //here you have two options, either to set the shortcode manually for each page: //$com = '[O_U user_id="1,2,3" blocked_meassage="comments are closed for everyone!"]'. $com .'[/O_U]'; //then run it by the shortcode //echo do_shortcode($com); //or you can create a new instance of the plugin class and let it use the same sattings as the content on that page: $limit_C = new bainternet_U_S_C(); echo $limit_C->User_specific_content_filter($com); ?>
you can do the same on BuddyPress Activity, Forums, Groups or whatever, you just need to find the right file you your theme to edit.
Forum: Plugins
In reply to: [Advanced Code Editor] [Plugin: Advanced Code Editor] Great Plugin – Awesome!sorry but that’s is way out of this plugin’s functionality scope.
First thanks for the kind words,
Now making it work on a network wide install shouldn’t be that hard and I’ll look into it.
As for running Shortcodes in shortcode, the plugin already does that.all fixed ??
from that screenshot it looks like you are missing an opening
{
at the end of that line it should say:foreach((array)$cpts as $cpt){
ok so i think i got all of it try 1.6.2
and let me know.