Search Results for '+.+default+.+'
-
AuthorSearch Results
-
October 21, 2014 at 1:43 pm #153649
In reply to: bbpres admin
filiip
ParticipantProbably plugin is too old for the WordPress version I am using.
https://wordpress.org/plugins/bbpress-admin/
Now, I am trying to modify bbpress theme. I am using Arras theme for the page and I would like to make some changes with default bbpress theme. I am new in this waters. But I am learning now. š
October 21, 2014 at 1:21 pm #153648In reply to: How to remove (0,0) in sub forum listings?
kendorama
ParticipantHrmm I’ve tried both methods and neither end up working for me. I’ve also tried it on my theme and one of the default themes. It all makes sense but it doesn’t seem to work for me.
Really appreciate the help Robin, any other ideas?
October 21, 2014 at 1:10 pm #153646In reply to: Forum not Displaying Topics
Robin W
ModeratorIt could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
Come back with the results
October 21, 2014 at 12:02 pm #153626In reply to: Public capabilities on custom post type
Robin W
ModeratorAre you sure it’s just a bbpress issue?
The ‘lastest’ bbpress is quite old now, so if it was an issue, I’m sure it would have been flagged by now.
presume you have
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
October 21, 2014 at 4:20 am #153615In reply to: Disabling topic creation-box
Robin W
Moderatorcreate a directory on your theme called ‘bbpress’
ie wp-content/%your-theme-name%/bbpress
find
wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/%your-theme-name%/bbpress/form-topic.php
bbPress will now use this template instead of the originalI was only suggesting you start with looking at lines 42, I haven’t actually looked seriously at the code, I don’t have time at the moment š
October 21, 2014 at 3:34 am #153610In reply to: Putting the @username below name
Robin W
ModeratorThis worked well for adding the username, so if i can just remove the full name/image, that out to do it.
If you mean the two bits above what you have just added , then the simplest would be
create a directory on your theme called ‘bbpress’
ie wp-content/%your-theme-name%/bbpress
find
wp-content/plugins/bbpress/templates/default/bbpress/loop-single-reply.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/%your-theme-name%/bbpress/loop-single-reply.php
bbPress will now use this template instead of the originalThen simply delete line 45
<?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true ) ); ?>October 20, 2014 at 2:32 pm #153585Topic: Spectators can post but shouldn't
in forum Troubleshootingcryx
ParticipantHi, I’m having a big problem with a client’s site of mine.
Last week there was no problems. His forums are set to be private so only users with the correct roles can read and write. New registered users get assigned to a role I’ve created called “webshop customer” and forum role is Spectator (I created this using a guide I found). So as you know with Private forums a Spectator shouldn’t even get access to it. This worked to maybe 3 days ago for no apparent reason. Now suddenly all users with Spectator role can read and even write(!) in the forums without any barriers.
I fixed this yesterday by reinstalling BBPress and it worked. But the next day the problem was back… I don’t know how to fix this.
If you want admin details or FTP I can send you them. The only file I’ve changed is the “feedback-no-forums.php” inside “bbpress/templates/default/bbpress” to show some info for the Spectator user. I have no idea…
October 19, 2014 at 2:12 pm #153553In reply to: Disabling topic creation-box
jessy
Participant@cubeacid: You want this: Do not allow users to publish new topics, just replies on your topics. Correct?
1, Install plugin: WPFront User Role Editor
2, Go to Roles => All roles => and choose Participant, it has 8 capabilities
3, You need uncheck publish_topics and edit_topics and assign_topic_tags and delete_topic_tags
4, with this plugin you can do it because it is built in role from plugin bbPress
5, But, we can customize it with filter function pasted below
6, Jast paste it into function.php and refresh the page in admin plugin WPFront User Role Editor in Participate role how magicaly capabilities are removed š
7, If the participant or regular registered user will go on topics, they will be message “You cannot create new topics.” and if user click on your own created topic, he can reply šPaste it into functions.php
function my_custom_get_caps_for_role_filter($caps, $role) { /* Only filter for roles we are interested in! */ if ($role == 'bbp_participant' ) $caps = my_custom_get_caps_for_role($role); return $caps; } add_filter('bbp_get_caps_for_role', 'my_custom_get_caps_for_role_filter', 10, 2); function my_custom_get_caps_for_role($role) { switch ($role) { case 'bbp_participant': return array( // Primary caps 'spectate' => true, 'participate' => true, 'moderate' => false, 'throttle' => false, 'view_trash' => false, // Forum caps 'publish_forums' => false, 'edit_forums' => false, 'edit_others_forums' => false, 'delete_forums' => false, 'delete_others_forums' => false, 'read_private_forums' => false, 'read_hidden_forums' => false, // Topic caps 'publish_topics' => false, 'edit_topics' => false, 'edit_others_topics' => false, 'delete_topics' => false, 'delete_others_topics' => false, 'read_private_topics' => false, // Reply caps 'publish_replies' => true, 'edit_replies' => true, 'edit_others_replies' => false, 'delete_replies' => false, 'delete_others_replies' => false, 'read_private_replies' => false, // Topic tag caps 'manage_topic_tags' => false, 'edit_topic_tags' => false, 'delete_topic_tags' => false, 'assign_topic_tags' => false ); break; default: return $role; } }I have try that ad for me it works.
October 19, 2014 at 4:28 am #153523In reply to: bbPress conflict with WooCommerce
Robin W
Moderatoryou may need to rule out other factors, as far as I know bbpress works with woocommerce eg
bbPress WooCommerce Integration: Tutorial on How to setup a Paid Forum on WordPress
bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and woocommerce and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
October 18, 2014 at 10:20 pm #153517In reply to: How do i customize user roles?
esportsstream
ParticipantSo i made a new file called bbpress-functions.php and put this into it
<?php //code to add tutor role function add_apply_role( $bbp_roles ) { /* Add a role called apply */ $bbp_roles['bbp_apply'] = array( 'name' => 'apply', 'capabilities' => custom_capabilities( 'bbp_apply' ) ); return $bbp_roles; } add_filter( 'bbp_get_dynamic_roles', 'add_apply_role', 1 ); function apply_role_caps_filter( $caps, $role ) { /* Only filter for roles we are interested in! */ if( $role == 'bbp_apply' ) $caps = custom_capabilities( $role ); return $caps; } add_filter( 'bbp_get_caps_for_role', 'apply_role_caps_filter', 10, 2 ); function custom_capabilities( $role ) { switch ( $role ) { /* Capabilities for 'apply' role */ case 'bbp_apply': return array( // Primary caps 'spectate' => true, 'participate' => true, 'moderate' => false, 'throttle' => false, 'view_trash' => false, // Forum caps 'publish_forums' => false, 'edit_forums' => false, 'edit_others_forums' => false, 'delete_forums' => false, 'delete_others_forums' => false, 'read_private_forums' => false, 'read_hidden_forums' => false, // Topic caps 'publish_topics' => true, 'edit_topics' => true, 'edit_others_topics' => false, 'delete_topics' => false, 'delete_others_topics' => false, 'read_private_topics' => false, // Reply caps 'publish_replies' => true, 'edit_replies' => true, 'edit_others_replies' => false, 'delete_replies' => false, 'delete_others_replies' => false, 'read_private_replies' => false, // Topic tag caps 'manage_topic_tags' => false, 'edit_topic_tags' => false, 'delete_topic_tags' => false, 'assign_topic_tags' => true, ); break; default : return $role; } }I have no idea where i put this file in my site directory……
October 18, 2014 at 9:16 pm #153514Topic: How do i customize user roles?
in forum Troubleshootingesportsstream
ParticipantI am using bbpress ver 2.5.4
This is my problem. Spectator can not post (want to change this) spectator can not see private forums (which I want to keep the same)
Contributor can post (I do want) Can see private forums (dont want)
This is what i want to do. I want to either make it so a spectator can post and not see private forums or I want to set it up a new default subscriber role that can post in normal forum sections but can not see or post in private sections until I turn them into contributor.
How do I do this? I am using bbpress as a plugin for my wordpress site not on wordpress.org
Thanks
October 18, 2014 at 3:04 am #153490In reply to: Blank topics to normal users
Robin W
ModeratorbbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
October 17, 2014 at 8:51 pm #153483In reply to: Administrator user permissions broken
raulliive
ParticipantFigured out all my issues with bbpress :).
The culprit was that I had hidden a default language in WPML, which broke in bbpress quite some things.
October 17, 2014 at 1:41 pm #153472In reply to: Disabling topic creation-box
Robin W
ModeratorIf I have understood, you would probably need to alter
wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php
copy it to a bbpress directory within the root of your theme and edit it there, and bbpress will use it
probably change line 42/43 to take out the if single forum bit ?
October 17, 2014 at 4:07 am #153442In reply to: All Child Forum – Page Not Found
josuawahyudi
Participanthi robin,
many thanks for your respond.
yes i use default permalinks…i just change it to “postname” and the result: all the parent & child forum cannot work
this is the message i got:
The requested URL ****** was not found on this server
Apache Server at domain.com Port 80looks like i just got to use 1 level forum only?
October 17, 2014 at 3:34 am #153439In reply to: All Child Forum – Page Not Found
Robin W
ModeratorPresuming you have default permalinks (don’t worry if you have no idea what this means) then it is a known issue with wordpress 4.0 and is in the queue for a fix on the next release.
in the meantime you can either
move you child themes up a level
or (better) change your permalinks to ‘pretty’ ones.
see https://codex.wordpress.org/Using_Permalinks for explanation of what a permalink is
go to
Dashboard>settings>permalinks and set them to ‘postname’
October 17, 2014 at 3:27 am #153437In reply to: 404 on Edit my post
Robin W
Moderatorok, if you haven’t already try
dashboard>tools>forums>repair forums run all of them but only one at a time
the run the permalink reset again.Presume you have tried resetting permalinks, have disabled all the plugins and switched to default theme as above?
October 16, 2014 at 3:15 pm #153416In reply to: How do I stop spam registrations
unihead
ParticipantA day has passed and the flood of spam registrations seems to have completely stopped. So far I’m very impressed with Wangguard. For a start, it does one simple thing which the default installation of bbPress should do – it allows me to pose a question to new registrars that has to answered correctly to proceed. Seems so simple, but it took me ages to find something that would allow me to do that.
I really don’t understand why like bbPress doesn’t have basic tools included that can stop the inevitable wave of spam registrations that happen to every new bbPress user. It’s just an endless waste of time for everyone who has to go through the same process of frustration, every time.
October 16, 2014 at 8:27 am #153401In reply to: bbp_setup_current_user
Robin W
ModeratorbbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
October 15, 2014 at 1:27 pm #153365In reply to: "Reply" button
Robin W
ModeratorIf I have understood you correctly you want to change the reply form you’ll be looking at
wp-content/plugins/bbpress/templates/default/bbpress/form-reply.php which sets up the forum and on line 57 calls
bbp_the_contentthis function is in
wp-content/plugins/bbpress\includes\common\template.php
line 1706
you’d probably want to write a filter fro that function
if you’re familiar with wordpress args parsing, bbpress does it in the same way
apply_filter (‘xx’ , ‘bbp_before_get_the_content_parse_args’)
and then write a function xx that adds you initial text to $args[‘before’] should do it
Don’t; have time to write and test it at the mo, but come back if you need further help
October 14, 2014 at 9:02 am #153315Topic: Groups: custom fields for all groups.
in forum Troubleshootingrobertosalemi
ParticipantHi,
iām using Buddypress groups extras plugin for to add custom pages in section of groupI have created manually three page for one group so the administrator can edit them.
But I ask you:
1) can I create this three pages as default for all present groups and future?
2) can I associate a template to these pages?Thanks.
October 14, 2014 at 8:41 am #153314CodingMachine
ParticipantI found Solution…! hope may someone else with same customs…
steps to do display wp_users roles excluding bbpress default role
1) First create a folder in your child theme named wp-content/theme/yourchildtheme/bbpress.
2) Then copy the loop-single-reply.php from wp-content\plugins\bbpress\templates\default\bbpress
3) Go line 47 and replace the linebbp_reply_author_link( array( ‘sep’ => ‘<br />’, ‘show_role’ => false ) );
with
bbp_reply_author_link( array( ‘sep’ => ‘<br />’, ‘show_role’ => false ) );
$reply_author_id = get_post_field( ‘post_author’, bbp_get_reply_id() );
$user = new WP_User( $reply_author_id );if ( !empty( $user->roles ) && is_array( $user->roles ) )
{
foreach ( $user->roles as $role )
{
/*if (preg_match(“/”.$roles.”/i”, “administrator”))
{
echo(“Administrator”);
break;
}
else*/
echo “<div class=’role_custom_bhush’>”.ucfirst($role).”</div>”;
break;
}
}hope anyone find it helpful and can reply for any queries on this
October 14, 2014 at 8:35 am #153313In reply to: Two forum index pages?
lmcookie62
ParticipantHere it is: thanks
<?php get_header(); ?>
<?php
/** Themify Default Variables
* @var object */
global $themify;
?><!– layout-container –>
<div id=”layout” class=”clearfix pagewidth”><?php themify_content_before(); //hook ?>
<!– content –>
<div id=”content” class=”clearfix”>
<?php themify_content_start(); //hook ?><?php
/////////////////////////////////////////////
// 404
/////////////////////////////////////////////
?>
<?php if(is_404()): ?>
<h1 class=”page-title” itemprop=”name”><?php _e(‘404′,’themify’); ?></h1>
<p><?php _e( ‘Page not found.’, ‘themify’ ); ?></p>
<?php endif; ?><?php
/////////////////////////////////////////////
// PAGE
/////////////////////////////////////////////
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id=”page-<?php the_ID(); ?>” class=”type-page” itemscope itemtype=”http://schema.org/Article”><!– page-title –>
<?php if($themify->page_title != “yes”): ?>
<h1 class=”page-title” itemprop=”name”><?php the_title(); ?></h1>
<?php endif; ?>
<!– /page-title –><div class=”page-content entry-content” itemprop=”articleBody”>
<?php the_content(); ?>
<?php wp_link_pages(array(‘before’ => ‘<p>‘.__(‘Pages:’,’themify’).’ ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>
<?php edit_post_link(__(‘Edit’,’themify’), ‘[‘, ‘]’); ?>
<!– comments –>
<?php if(!themify_check(‘setting-comments_pages’) && $themify->query_category == “”): ?>
<?php comments_template(); ?>
<?php endif; ?>
<!– /comments –></div>
<!– /page-content –></div><!– /.type-page –>
<?php endwhile; endif; ?><?php
/////////////////////////////////////////////
// Query Category
/////////////////////////////////////////////
?><?php
///////////////////////////////////////////
// Setting image width, height
///////////////////////////////////////////
if($themify->query_category != “”): ?><?php if(themify_get(‘section_categories’) != ‘yes’): ?>
<?php query_posts( apply_filters( ‘themify_query_posts_page_args’, ‘cat=’.$themify->query_category.’&posts_per_page=’.$themify->posts_per_page.’&paged=’.$themify->paged.’&order=’.$themify->order.’&orderby=’.$themify->orderby ) ); ?>
<?php if(have_posts()): ?>
<!– loops-wrapper –>
<div id=”loops-wrapper” class=”loops-wrapper <?php echo $themify->layout . ‘ ‘ . $themify->post_layout; ?>”><?php while(have_posts()) : the_post(); ?>
<?php get_template_part(‘includes/loop’, ‘query’); ?>
<?php endwhile; ?>
</div>
<!– /loops-wrapper –><?php if ($themify->page_navigation != “yes”): ?>
<?php get_template_part( ‘includes/pagination’); ?>
<?php endif; ?><?php else : ?>
<?php endif; ?>
<?php else: ?>
<?php $categories = explode(“,”,str_replace(” “,””,$themify->query_category)); ?>
<?php foreach($categories as $category): ?>
<?php $category = get_term_by(is_numeric($category)? ‘id’: ‘slug’, $category, ‘category’);
$cats = get_categories( array( ‘include’ => isset( $category ) && isset( $category->term_id )? $category->term_id : 0, ‘orderby’ => ‘id’ ) ); ?><?php foreach($cats as $cat): ?>
<?php query_posts( apply_filters( ‘themify_query_posts_page_args’, ‘cat=’.$cat->cat_ID.’&posts_per_page=’.$themify->posts_per_page.’&paged=’.$themify->paged.’&order=’.$themify->order.’&orderby=’.$themify->orderby ) ); ?>
<?php if(have_posts()): ?>
<!– category-section –>
<div class=”category-section clearfix <?php echo $cat->slug; ?>-category”><h3 class=”category-section-title”>cat_ID) ); ?>” title=”<?php _e(‘View more posts’, ‘themify’); ?>”><?php echo $cat->cat_name; ?></h3>
<!– loops-wrapper –>
<div id=”loops-wrapper” class=”loops-wrapper <?php echo $themify->layout . ‘ ‘ . $themify->post_layout; ?>”>
<?php while(have_posts()) : the_post(); ?><?php get_template_part(‘includes/loop’, ‘query’); ?>
<?php endwhile; ?>
</div>
<!– /loops-wrapper –><?php if ($themify->page_navigation != “yes”): ?>
<?php get_template_part( ‘includes/pagination’); ?>
<?php endif; ?></div>
<!– /category-section –><?php else : ?>
<?php endif; ?>
<?php endforeach; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php endif; ?>
<?php wp_reset_query(); ?><?php themify_content_end(); //hook ?>
</div>
<!– /content –>
<?php themify_content_after() //hook; ?><?php
/////////////////////////////////////////////
// Sidebar
/////////////////////////////////////////////
if ($themify->layout != “sidebar-none”): get_sidebar(); endif; ?></div>
<!– /layout-container –><?php get_footer(); ?>
October 14, 2014 at 5:25 am #153307In reply to: Two forum index pages?
lmcookie62
ParticipantThank you for your reply.
I’ve had a look at the article but unfortunately i’m not much further with this. I only have one page template – the default page.php and i’ve tried creating a bbpress page template as described but this doesnt change anything. I can’t see in my page.php any reference to a different style for the index page.
If feels like i should focus first on sorting out my breadcrumb/structural issue. I can’t understand why my site isnt using the page name in the breadcrumb as appears to be the case on other example bbpress sites. See here.
The example site uses the default slugs whilst the breadcrumb uses the page name – as you’d expect. I’m not clear what to do to get my site working in this way which would get rid of my double index page issue.
October 13, 2014 at 3:44 pm #153290In reply to: Bbpress activated, but doesn't do anything
Robin W
ModeratorbbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
-
AuthorSearch Results