Search Results for '+.+default+.+'
-
AuthorSearch Results
-
July 5, 2014 at 2:06 pm #148757
Robin W
Moderatorlong answer I’m afraid and in two parts
part 1 – setting the user permission to allow delete topic and delete reply
delete is easy, making it only trash is in part 2 !
Basically you’ll need to change a couple of capabilities of the participant role
see
https://codex.bbpress.org/bbpress-user-roles-and-capabilities/
you see the abilities delete topics and delete replies (as distinct from delete others topics and delete others replies)
Whilst you could amend the participant role, I haven’t documented that, so easiest is just for you to create a new role and give it the participant capabilities plus the ‘delete topics’ and ‘delete replies’. This article explains how
add this code to your functions file – see
part 2 – changing the function, so that delete is only shown for keymasters
This code will only allow a keymaster to permanently delete a topic
add the following to your functions file
add_filter ('bbp_get_topic_trash_link', 'topic_dont_delete'); add_filter ('bbp_get_reply_trash_link', 'reply_dont_delete'); function topic_dont_delete( $args = '') { // Parse arguments against default values $r = bbp_parse_args( $args, array( 'id' => 0, 'link_before' => '', 'link_after' => '', 'sep' => ' | ', 'trash_text' => esc_html__( 'Trash', 'bbpress' ), 'restore_text' => esc_html__( 'Restore', 'bbpress' ), 'delete_text' => esc_html__( 'Delete', 'bbpress' ) ), 'get_topic_trash_link' ); $actions = array(); $topic = bbp_get_topic( bbp_get_topic_id( (int) $r['id'] ) ); if ( empty( $topic ) || !current_user_can( 'delete_topic', $topic->ID ) ) { return; } if ( bbp_is_topic_trash( $topic->ID ) ) { $actions['untrash'] = '<a title="' . esc_attr__( 'Restore this item from the Trash', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_topic_trash', 'sub_action' => 'untrash', 'topic_id' => $topic->ID ) ), 'untrash-' . $topic->post_type . '_' . $topic->ID ) ) . '" class="bbp-topic-restore-link">' . $r['restore_text'] . '</a>'; } elseif ( EMPTY_TRASH_DAYS ) { $actions['trash'] = '<a title="' . esc_attr__( 'Move this item to the Trash', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_topic_trash', 'sub_action' => 'trash', 'topic_id' => $topic->ID ) ), 'trash-' . $topic->post_type . '_' . $topic->ID ) ) . '" class="bbp-topic-trash-link">' . $r['trash_text'] . '</a>'; } if ( bbp_is_topic_trash( $topic->ID ) || !EMPTY_TRASH_DAYS ) { if ( bbp_is_user_keymaster()) { $actions['delete'] = '<a title="' . esc_attr__( 'Delete this item permanently', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_topic_trash', 'sub_action' => 'delete', 'topic_id' => $topic->ID ) ), 'delete-' . $topic->post_type . '_' . $topic->ID ) ) . '" onclick="return confirm(\'' . esc_js( __( 'Are you sure you want to delete that permanently?', 'bbpress' ) ) . '\' );" class="bbp-topic-delete-link">' . $r['delete_text'] . '</a>'; } } // Process the admin links $retval = $r['link_before'] . implode( $r['sep'], $actions ) . $r['link_after']; return $retval ; } function reply_dont_delete( $args = '' ) { // Parse arguments against default values $r = bbp_parse_args( $args, array( 'id' => 0, 'link_before' => '', 'link_after' => '', 'sep' => ' | ', 'trash_text' => esc_html__( 'Trash', 'bbpress' ), 'restore_text' => esc_html__( 'Restore', 'bbpress' ), 'delete_text' => esc_html__( 'Delete', 'bbpress' ) ), 'get_reply_trash_link' ); $actions = array(); $reply = bbp_get_reply( bbp_get_reply_id( (int) $r['id'] ) ); if ( empty( $reply ) || !current_user_can( 'delete_reply', $reply->ID ) ) { return; } if ( bbp_is_reply_trash( $reply->ID ) ) { $actions['untrash'] = '<a title="' . esc_attr__( 'Restore this item from the Trash', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_reply_trash', 'sub_action' => 'untrash', 'reply_id' => $reply->ID ) ), 'untrash-' . $reply->post_type . '_' . $reply->ID ) ) . '" class="bbp-reply-restore-link">' . $r['restore_text'] . '</a>'; } elseif ( EMPTY_TRASH_DAYS ) { $actions['trash'] = '<a title="' . esc_attr__( 'Move this item to the Trash', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_reply_trash', 'sub_action' => 'trash', 'reply_id' => $reply->ID ) ), 'trash-' . $reply->post_type . '_' . $reply->ID ) ) . '" class="bbp-reply-trash-link">' . $r['trash_text'] . '</a>'; } if ( bbp_is_reply_trash( $reply->ID ) || !EMPTY_TRASH_DAYS ) { if ( bbp_is_user_keymaster()) { $actions['delete'] = '<a title="' . esc_attr__( 'Delete this item permanently', 'bbpress' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'bbp_toggle_reply_trash', 'sub_action' => 'delete', 'reply_id' => $reply->ID ) ), 'delete-' . $reply->post_type . '_' . $reply->ID ) ) . '" onclick="return confirm(\'' . esc_js( __( 'Are you sure you want to delete that permanently?', 'bbpress' ) ) . '\' );" class="bbp-reply-delete-link">' . $r['delete_text'] . '</a>'; } } // Process the admin links $retval = $r['link_before'] . implode( $r['sep'], $actions ) . $r['link_after']; return $retval ; }I haven’t fully tested this code as my test site is in some disarray whilst I test something else, so you’ll need to check that it works
July 5, 2014 at 10:27 am #148745In reply to: Content Not Showing
Michael Bryner
ParticipantI know you’ve done themes already, but you need to test if it works on a default theme with just twentyfourteen and the bbpress plugin. If it doesn’t then something in your site is screwed up 🙂
I just did that with twentyfourteen, because I don’t have twenty twelve on it, and this is what it says with under that just reply box and buttons with no content, just like avada theme, but avada does not even show the below text.
Your account has the ability to post unrestricted HTML content.
July 5, 2014 at 10:20 am #148744In reply to: Content Not Showing
Robin W
Moderatordid you install any other plugins in between?
try
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, switch to a default theme such as twentytwelve, and see if this fixes.
I know you’ve done themes already, but you need to test if it works on a default theme with just twentyfourteen and the bbpress plugin. If it doesn’t then something in your site is screwed up 🙂
July 5, 2014 at 3:54 am #148736In reply to: Remove Freshness date and Topic count column
Robin W
Moderatorpresume you removing the titles from
wp-content/bbpress/templates/default/bbpress/loop-forums
and renaming as per
https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-3/ section 3
then
wp-content/bbpress/templates/default/bbpress/loop-single-forum
has the content that you’ll want to take out
July 4, 2014 at 12:45 pm #148715Topic: How use diferents page themeplates
in forum Themesfeb992
Participanthello, I am using bbpress in my theme, I have diferents page themeplates, full-width, left-widget-colum…
when I load the bbpress forum in a page, i select the full-width, and it works fine, but, when click in a sub-forum, it load the default page themplate (“left-widget-colum”)
This is the link of the page wher the forum is:
This load in full width
and when I click in the subforum, it redirect to:
http://s454230239.mialojamiento.es/rideanddrift/?forum=testAnd this width the widget bar
How can I modify this?
Thanks
July 3, 2014 at 8:17 pm #148695In reply to: I can't get my forum to functon at all.
thecatholicwoman
ParticipantI am not sure if this helps but when I select bbpress forum index template from the side menu for page templates it does not allow me to put in the side bar and runs full width but the text and coloring matches my theme. When I do it with the page builder in the divi theme and I use the [bbp-forum-index] short code in a text box element and then add a sidebar element on the side, I get the side bar but the forum does not match the theme because I have to use the default template. So it is almost like it is not pulling from the coding in the style.css at all so it may make sense that my altering that file does not change it.
July 2, 2014 at 4:10 pm #148625In reply to: Resizing Avatars
Rescue Themes
ParticipantI was able to locate
bbp_single_user_details_avatar_sizein bbpress/templates/default/bbpress/user-details.php which eventually lead me to the following function that accomplishes what I needed (resizing the avatar):function my_bbp_change_avatar_size($author_avatar, $topic_id, $size) { $author_avatar = ''; if ($size == 14) { $size = 24; } if ($size == 80) { $size = 110; } $topic_id = bbp_get_topic_id( $topic_id ); if ( !empty( $topic_id ) ) { if ( !bbp_is_topic_anonymous( $topic_id ) ) { $author_avatar = get_avatar( bbp_get_topic_author_id( $topic_id ), $size ); } else { $author_avatar = get_avatar( get_post_meta( $topic_id, '_bbp_anonymous_email', true ), $size ); } } return $author_avatar; } /* Add priority (default=10) and number of arguments */ add_filter('bbp_get_topic_author_avatar', 'my_bbp_change_avatar_size', 20, 3); add_filter('bbp_get_reply_author_avatar', 'my_bbp_change_avatar_size', 20, 3); add_filter('bbp_get_current_user_avatar', 'my_bbp_change_avatar_size', 20, 3);July 2, 2014 at 5:22 am #148573In reply to: BBPress conflicts with WP Canvas Gallery plugin
chrissss
ParticipantI narrowed it down to a conflict in /wp-content/plugins/bbpress/templates/default/js/editor.js. When i move this file or deactivate the editor toolbar in the bbpress settings, the gallerys work again.
July 1, 2014 at 6:49 am #148525In reply to: phpBB Import Error(s)
Stephen Edgar
KeymasterForum import – The documentation states that stickies will not be imported, however I after doing the import I have around 20 ‘super-stickies’ which, looking at the old forum, are a mixture of announcements and stickies. I’d rather these weren’t converted to anything, and as far as I’m aware they shouldn’t be (https://bbpress.trac.wordpress.org/ticket/2126)
The above ticket you reference was the ‘issue’ being created to track the changes and progress of implementing this feature.
In comment 12 that is where the ticket was to updated to ‘fixed’ and ‘closed’ via changeset r5170. Trac can be a little daunting at first trying to understand everything that goes on in a ticket 😉
With only your ~20 ‘stcikies’ it shouldn’t take more than a couple of minutes to ‘unstick’ the ones you do not want after your import has finished and the repair tools run.
I have updated the docs to reflect that also https://codex.bbpress.org/import-forums/phpbb/
Stickies – is there a way to ignore stickies during the import? They don’t appear to have come through correctly so it would be nice to simply ignore them (as was previously the case).
How so, could you explaing that a little more please? Do the topics ‘look right’ and are just not ‘stuck’ or something else going on?
User import – During the import, I (the main WordPress admin user) seem to have had quite a lot of forums, topics and replies linked to my user. I wasn’t a user on the previous phpBB forum at all so I’m not sure why I’ve adopted these posts. Or any posts for that matter.
If there is a username match the importer will try to match the posts being imported with any current WordPress user, thus if phpBB has a user named ‘admin’ and you use the default the default WordPress username ‘admin’ that will be the cause.
The best work around for this would be to rename the phpBB username in the database bvefore importing.
Users – looking at the phpbb data, the amount of imported users seemed to match up, but I wonder if I’ve been assigned posts that were previously changed to the ‘Anonymous User’ that phpBB has at user ID 0… the amount of posts don’t seem to match up with that theory but a ‘majority’ of the posts that have been assigned to me seem to match the logic to an extent (ie, posts that have been moved into a ‘moderators only’ forum for further discussion about actions to be taken).
You should notice that you now actually have a WordPress username ‘Anonymous’, so any ‘Anonymous’ posts should be attributed to that user.
Your ‘moderators only’ forum after import you should change the bbPress forum permission to ‘hidden’ and that will make that forum the equiv bbPress ‘moderators only’ forum.
Repair tools – All the repair tasks seem to work ok, except for two:
– Recalculate the position of each reply
– Remap existing users to default forum roles
These two tasks end up white-screening with no status messages at all.What size is the phpBB database your importing? (Approx. Forums, Topics, Posts & Users please 🙂 )
User Login Conversion – User logins are converted correctly when using the standard wordpress login screen but now when using my custom frontend ajax login – does anyone know if there’s a way to get that to work? A seperate topic has been started about that here: https://bbpress.org/forums/topic/user-login-authentication-migrated-phpbb-users/
I’ve pretty much still got the same opinion as I wrote last night here.
User Login – that’s correct – I’m just using the wp-signon method so I guess I’ll need to add some kind of do_action() call or something to trigger the conversion? If you can point me in the right direction, that would be great 🙂
There is nothing to point you to sorry, when a user logs in for the first time after the import their legacy salt and hash password get’s converted to the native WordPress password format. Without knowing each legacy password their is no way to do this programmatically.
bbPress’ login forms actually are hooked into the WordPress login forms, so theoretically it shouldn’t be too difficult for either the plugin you are using to add support for bbPress or possibly look for another similar plugin that already supports bbPress.
Passwords and all their associated algorithms are hard and this an area where I just manage to skate by with the basics, actually doing any of what I mentioned in the previous paragraph is way beyond my skill level and pay grade 😉
July 1, 2014 at 6:23 am #148524In reply to: Convert reply_to parents failed
Stephen Edgar
Keymaster@fasttimes Do you have any custom phpBB custom mods installed that may change some things in the phpBB database? I just tested my phpBB imports and they all worked fine, no errors for ‘reply_to parents’. In fact phpBB does not have ‘threaded replies’ included by default thus the reason I ask.
July 1, 2014 at 4:52 am #148519dzung
Participant@leonyipa, thanks for that but I’ve done it already. “in bbPress setting, the default role is “Participant” I meant I set the auto default role to be Participant.
So here are steps that I do:
– In stall, WP and Go to Dashboard-Setting-General – Set New User Default Role to “Subcriber”
– Install bbPress, go to Dashboard – Setting – Forums – Check the option for Auto Role and set it to “Participant”
– On front end- I create an account for test!– In Dashboard – Users List: The Forum Role of the newly created user is “Participant” – The Site Role value is “Participant” which I expect should be “Subcriber”.
If I un-check/disable the Auto Role in bbPress setting, then when someone create an account the Site Role value of that user would be “none” and the value for Forum Role would still be “Participant” – I don’t know what wrong!
July 1, 2014 at 12:51 am #148509dzung
ParticipantHi,
I have a site with bbPress intalled. I have set the New User Default role in Setting/General to a Custom Role that I made. in bbPress setting, the default role is “Participant”.
The issue is when a new user created their Site role auto set to “Participant”. does anyone know, how to fix this so that new user will have site role as the value set in Setting/General?
June 30, 2014 at 3:46 pm #148501In reply to: new topic doesn't appear in forum
Robin W
Moderatorprobably a theme or plugin problem
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 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, switch to a default theme such as twentytwelve, and see if this fixes.
June 30, 2014 at 2:13 pm #148498Robin W
Moderatorwordpress is post software and has posts and comments
bbpress is forum software, so it has forums, topics and replies
so people will reply to topics, not comment on them !
so I would
1. deactivate buddypress
2. switch to a default theme such as twentytwelve and see if people can now reply to topics, you are only doing this to see if your theme has an issue with replies.
3. let us know whether you are allowing anonymous posting, or whether you onlt want topics/replies from registered users?Also, how do I just let people see the topics and not the forum?
umm, not sure what you mean, either you have a forum or your have posts and comments, you can’t have forum topics with post comments 🙂
June 30, 2014 at 7:41 am #148483Topic: phpBB Import Error(s)
in forum TroubleshootingTom Dyer
ParticipantHi,
After reading the importer
I’ve recently migrated my phpBB forum to bbPress, but I have noted a few issues with the import/repair process. Does anybody have any suggestions as to what’s going wrong with any/all of these:Forum import – The documentation states that stickies will not be imported, however I after doing the import I have around 20 ‘super-stickies’ which, looking at the old forum, are a mixture of announcements and stickies. I’d rather these weren’t converted to anything, and as far as I’m aware they shouldn’t be (https://bbpress.trac.wordpress.org/ticket/2126)
User import – During the import, I (the main WordPress admin user) seem to have had quite a lot of forums, topics and replies linked to my user. I wasn’t a user on the previous phpBB forum at all so I’m not sure why I’ve adopted these posts. Or any posts for that matter.
Repair tools – All the repair tasks seem to work ok, except for two:
– Recalculate the position of each reply
– Remap existing users to default forum roles
These two tasks end up white-screening with no status messages at all.User Login Conversion – User logins are converted correctly when using the standard wordpress login screen but now when using my custom frontend ajax login – does anyone know if there’s a way to get that to work? A seperate topic has been started about that here: http://bbpress.org/forums/topic/user-login-authentication-migrated-phpbb-users/
Any advice on any of these steps would be very much appreciated.
Thanks!June 30, 2014 at 7:30 am #148481In reply to: Convert reply_to parents failed
Stephen Edgar
KeymasterArgh! I missed this original topic, sorry 🙁
phpBB does not actually have ‘threaded replies’ so you should see something more laong the lines of ‘No reply to’s to convert’ it most certainly should not be failing at that 11th step.
Nor should it be ‘white screening’ for either “Recalculate the position of each reply” or “Remap existing users to default forum roles” tasks.
I’m done for the night (9:30pm Local Time) so I’ll take a closer look at this tomorrow 🙂
June 30, 2014 at 7:23 am #148479In reply to: Convert reply_to parents failed
Tom Dyer
ParticipantDid you manage to fix this? I’m experiencing the same issue I think.
Also, I get errors when running two of the ‘Repair Forums’ tasks:
– Recalculate the position of each reply
– Remap existing users to default forum rolesBoth tasks end up white-screening on me 🙁 I wonder if the task errors are related to the forum import failing?
June 30, 2014 at 3:33 am #148473In reply to: bbPress Mods Wishlist
Robin W
Moderatorbbpress has a number of templates which you can alter
these are found in
wp-content/plugins/bbpress/templates/default/bbpress
Start with
content-archive-forum.php
this is the index page.
you will see that it calls other templates
eg
<?php bbp_get_template_part( 'loop', 'forums' ); ?>which calls loop-forums.php
a look through and you should be able to work out what most of it is doing.
If you want to alter any of these, make a new directory in the root of your theme and copy any of these template files to it (only the ones you want to alter)
so for instance if you wanted to alter content-archive-forum.php you’d create a copy to get
wp-content/themes/%your-theme-name%/bbpress/content-archive-forum.phpyou can then alter these copies, and bbpress will use them instead
They will also show you what css is being used, so that you can amend your style.css file with those that you want to change, or you can copy the whole bbpress style file viz https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-2/#5-copyingcreating-a-bbpress-stylesheet-in-your-child-theme
at the finer level you may need to use something like firebug to work out how to say ‘bold’ the forums names to see what css each part is using, so that you can alter it.
Firebug is downloaded to go with the Firefox browser. There are loads of firebug tutorials eg see
June 29, 2014 at 8:44 pm #148462In reply to: I can't get my forum to functon at all.
thecatholicwoman
ParticipantCan you answer a quick question for me. I am using the simplr form plus plugin and I got all of the fields set and the default pages and custom welcome page complete. However the tiny mce icon to dump the registration form into the page is not showing up on my tool bar. Any idea why that might be? I know that this is not bbpress directly but I was wondering if you were by chance familiar with the plugin.
June 28, 2014 at 12:37 pm #148392In reply to: I can't get my forum to functon at all.
thecatholicwoman
Participant@pinkishhue and @robin-w thanks so much. The topic pages should NOT look like that at all. I am not sure why they are defaulting to the forum index. I will try switching the theme and also deactivating all of the plug in and enabling them one by one. I do not know how to flush permalinks or any of that stuff. I am a complete newbie. I had to ask someone to add the theme into the css for me if that give you any clue. I will try these and get back if it does not work r to say thanks if it does. This is a free site and I am just trying to figure out how to get this done without much experience so this means the world to me.
June 28, 2014 at 12:23 pm #148391In reply to: I can't get my forum to functon at all.
Robin W
ModeratorAs @pinkishhue suggests, try
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, switch to a default theme such as twentytwelve, and see if this fixes.
this should get you to a working platform from which you can work out where the issue lies.
June 28, 2014 at 11:43 am #148387In reply to: I can't get my forum to functon at all.
PinkishHue
ParticipantHave you tried switching to the WordPress default theme (or another basic theme)? This will tell you if it’s a theme problem or something else.
It seems like it may be a CSS issue.
June 28, 2014 at 7:24 am #148381In reply to: Forum index
Robkk
Moderatorokay what they did was register a menu which is a whole lot easier
so first put this in your functions.php if you have a child theme
function register_menu() { register_nav_menu('bbmenu', __('bbpress Forum Menu')); } add_action('init', 'register_menu');and now put this above
<?php do_action( 'bbp_template_before_forums_loop' ); ?>
which is inside loop-forums.php inside the bbpress default templates<nav id="subnav" role="navigation"> <?php if ( has_nav_menu( 'bbmenu' ) ) { /* if menu location 'bbmenu' exists then use custom menu */ wp_nav_menu( array( 'theme_location' => 'bbmenu') ); } ?> </nav>now put this in your custom css or plugin
#subnav { background: none; clear: both; display: block; float: left; margin: 0 auto 6px; width: 100%; } #subnav ul { font-size: 13px; list-style: none; margin: 0; } #subnav li { list-style-type: none; display: inline-block; margin: 6px 4px; } #subnav a { text-decoration: none; color: #555; background: #ddd; padding: 2px 8px; border: 1px solid #e4e4e4; } #subnav li a:hover { background: #333; color: #fff; border-color: transparent; text-shadow: none; }tell me if you come into any problems , so i can see if i hadd a problem copy and pasting
June 28, 2014 at 2:47 am #148373In reply to: Help with functions.php mod for bbPress
Robin W
ModeratorOk, thanks and yes we can fix that.
1. the code is missing ‘);’ by mistake, it should read
function mycustom_breadcrumb_options() { // Home - default = true $args['include_home'] = false; // Forum root - default = true $args['include_root'] = false; // Current - default = true $args['include_current'] = true; return $args; } add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options');The extra ‘);’ is right at the end
I’ve fixed the documentation
2. as stated in https://codex.bbpress.org/functions-files-and-child-themes-explained/
you should not be adding code to the end of a main theme’s functions, but should be creating child theme. By all means leave it there and test that it works, but then create a child theme and move it there or you risk losing the change on an update. I’ll try and make this even clearer in the documentation – it is a first version !
Hope that helps you, and please come back with any further issues ! 🙂
June 28, 2014 at 2:43 am #148372Topic: How to enable bbpress breadcrumbs?
in forum Themesgreenhoe
ParticipantI installed bbpress on my site and it is running the default theme currently I”m going to create my own theme over the next few days but I was wondering how do I enable bbpress breadcrumbs? You can see from http://hearthstoneplayers.com/forums/ that no breadcrumbs are showing, is there a setting I need to turn on? Also I use Yoast breadcrumbs from Yoast SEO plugin could that effect the bbpress breadcrumbs?
-
AuthorSearch Results