Search Results for ' . default . '
-
AuthorSearch Results
-
May 2, 2014 at 3:20 am #145742
In reply to: I think I found a bug in bbp_topic_subscription_link
Mike
ParticipantThanks, but I finished and moved on. I tried and failed with several different approaches like this, but copying and altering 2 functions took less than 2 minutes as the //comments were clear about how to disable the AJAX.
I took me almost 2 weeks part-time to customise the bbpress forum. I spent a lot of time messing with IDs and classes to target CSS changes and trying to figure out the proper code to modify defaults.
For example finding the code to return just an “edit” for replies was a matter of great googling and some luck.
May 2, 2014 at 2:47 am #145738In reply to: Help with forum display
Robin W
Moderatoradd the following to your functions file, and the sub forum descriptions will display
//This function adds descriptions to the sub forums function custom_list_forums( $args = '' ) { // Define used variables $output = $sub_forums = $topic_count = $reply_count = $counts = ''; $i = 0; $count = array(); // Parse arguments against default values $r = bbp_parse_args( $args, array( 'before' => '<ul class="bbp-forums-list">', 'after' => '</ul>', 'link_before' => '<li class="bbp-forum">', 'link_after' => '</li>', 'count_before' => ' (', 'count_after' => ')', 'count_sep' => ', ', 'separator' => ', ', 'forum_id' => '', 'show_topic_count' => true, 'show_reply_count' => true, ), 'list_forums' ); // Loop through forums and create a list $sub_forums = bbp_forum_get_subforums( $r['forum_id'] ); if ( !empty( $sub_forums ) ) { // Total count (for separator) $total_subs = count( $sub_forums ); foreach ( $sub_forums as $sub_forum ) { $i++; // Separator count // Get forum details $count = array(); $show_sep = $total_subs > $i ? $r['separator'] : ''; $permalink = bbp_get_forum_permalink( $sub_forum->ID ); $title = bbp_get_forum_title( $sub_forum->ID ); $content = bbp_get_forum_content($sub_forum->ID) ; // Show topic count if ( !empty( $r['show_topic_count'] ) && !bbp_is_forum_category( $sub_forum->ID ) ) { $count['topic'] = bbp_get_forum_topic_count( $sub_forum->ID ); } // Show reply count if ( !empty( $r['show_reply_count'] ) && !bbp_is_forum_category( $sub_forum->ID ) ) { $count['reply'] = bbp_get_forum_reply_count( $sub_forum->ID ); } // Counts to show if ( !empty( $count ) ) { $counts = $r['count_before'] . implode( $r['count_sep'], $count ) . $r['count_after']; } // Build this sub forums link $output .= $r['before'].$r['link_before'] . '<a href="' . esc_url( $permalink ) . '" class="bbp-forum-link">' . $title . $counts . '</a>' . $show_sep . $r['link_after'].'<div class="bbp-forum-content">'.$content.'</div>'.$r['after']; } // Output the list return $output ; } } add_filter('bbp_list_forums', 'custom_list_forums' );May 1, 2014 at 2:15 pm #145727In reply to: Help with forum display
Robin W
Moderatorah..
I would expect it to look like the second by default. If you take out the starter theme does it revert to that?
May 1, 2014 at 7:38 am #145710In reply to: Forum sort order different when logged out
Robin W
Moderatormaybe theme or plugin related.
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.
May 1, 2014 at 1:25 am #145703In reply to: Forums index vs custom page shorturl
dustinarmstrong
ParticipantI just ran through and did a brand new install of WordPress with Twenty Fourteen as the theme, only plugins are bbPress and BuddyPress. It appears to have worked. I wiped the plugins, and tried again with no luck. Here’s a rundown of my process:
Permalinks set to postname.
bbPress installed first, forum root url set to ‘sound-off-forums’, saved. All other settings left default.
Page created with slug ‘sound-off-forums’, page works, shows forums as expected.
BuddyPress installed, default configuration left alone. ‘http://example.com/sound-off-forums’ fails to load, showing a 404 page.
I have no idea. It sounds like I’ll likely need to scrub the DB any trace of bbpress and buddypress from my environment and start over. Thanks for the help with everything. It must have just been an installation error.
April 30, 2014 at 7:59 am #145676In reply to: text buttons
Robin W
Moderatorcan you post a link?
I’d try switching themes to test if it is a theme issue
Themes
If plugins don’t pinpoint the problem, switch to a default theme such as twentytwelve, and see if this fixes.
April 29, 2014 at 4:34 pm #145662Topic: Forums index vs custom page shorturl
in forum Troubleshootingdustinarmstrong
ParticipantBeen looking into this for a few days, and I can’t find a solution.
By default, bbpress offers two solutions for the index of a forum page:
- Using the default settings, and a customizable ‘forum root’ available in the settings panel
- Using a page with a shortcode to implement the section that you want
However, when you use the shortcode solution, there are two ‘forum root’ urls. The one that is associated with the page you want to use, and the one generated with the ‘forum root’ url.
For example, let’s say that I created the forum using the shortcode on site.com/discuss, and I need to use custom fields to customize the appearance of that page with a header, a hero graphic, and some descriptive text. I can style it, and it looks perfect. However, the site.com/forums url is still present in the forum topic urls (site.com/forums/post, not site.com/disucss/post), and as it’s own page without the custom styling.
While I could customize the page template for bbpress on site.com/forums, there are no methods for displaying fields defined by the client/user in the dashboard on that template, completely eliminating the purpose of using the custom page & shortcode option.
Are there any solutions for this or am I stuck? I’ve yet to find any solutions on this.
April 29, 2014 at 2:09 am #145619In reply to: import database from e107 Forum cms system
Stephen Edgar
KeymasterMake sure you have the settings correct, check the
e107_config.phpfile for the correct seetings:eg.
$mySQLserver = 'localhost'; $mySQLuser = 'my_database_user_name'; $mySQLpassword = 'my_database_password'; $mySQLdefaultdb = 'my_database_name'; $mySQLprefix = 'e107v1_';Stephen Edgar
KeymasterAdd this code to your `themes functions.php file:
add_filter( 'bbp_after_get_the_content_parse_args', 'ntwb_bbp_enable_visual_editor' ); function ntwb_bbp_enable_visual_editor( $args = array() ) { $args['quicktags'] = array( 'buttons' => 'strong,em,block,del,ins,ul,ol,li,code,close' ); return $args; }I have removed the default
linkandimgitems from the list so they do not show.April 27, 2014 at 2:53 am #145551In reply to: How can Participants create topics
Stephen Edgar
KeymasterParticipants can create topics by default:
See the default capabilities here https://codex.bbpress.org/bbpress-user-roles-and-capabilities/
April 25, 2014 at 8:44 pm #145500In reply to: Moderator Unable To Post To Forum: iPhone iPad
tharsheblows
ParticipantAh ha – and hmm, would it still pick up the rest of the defaults, eg img and blockquote and those? The correct answer to this question is “You have a test install, play with it and figure it out yourself.” so I will. Later.
I know what you mean about the amount that can be learned in 12 months. 12 months I was trying and trying to convince a client that they didn’t want a forum! Of course, that was for reasons other than development but it has turned out very well – cheap and easy (ok maybe not cheap and maybe not super simple when you count in moderation and user issues and all that) but an excellent way to get constantly updated content.
April 25, 2014 at 10:36 am #145471In reply to: Problems marking topic as private?
Robin W
Moderatorcould be plugin or theme related
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.
April 25, 2014 at 10:35 am #145470In reply to: Theme Recommendation
Robin W
Moderatorbbpress largely picks up on your wordpress theme, use any of thevdefault ones and you’ll get a great look.
I use twentyten very successfully.
and look at the set up guides
April 25, 2014 at 10:33 am #145469In reply to: Link button not working
Robin W
ModeratorPlugins
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.
April 25, 2014 at 10:25 am #145467In reply to: Forums no longer appear after upgrade, topics do
Robin W
ModeratorMay well be a plugin or theme 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.
April 25, 2014 at 4:47 am #145456Topic: bbcode
in forum Installationww_hoax
ParticipantIs there any simple solution to delete default bbcodes. In which file the default bbcodes defined. Many thnaks for any hint.
April 24, 2014 at 1:51 pm #145443In reply to: change forum sidebar
Robin W
ModeratorJust spotted you post on the wordpress forum :
‘My theme (MH Magazine) has no bbPress template by default, so I copied my full-page-width template and renamed it plugin-bbpress.php. I’ve got the forums page set to this template’
If this is how you have it currently, then it is a sidebar template from your theme that you need, not a full width page one. With a siderbar theme, then wp-tweaks will pick this up and add the forum one to the page.
April 24, 2014 at 11:59 am #145437In reply to: Please help with space after paragraph.
WARTORIOUS
ParticipantTheme: modified portfolio press:
/*
Theme Name: Portfolio Press
Description: Portfolio Press is a responsive theme for showcasing your photography, art, web sites, or other projects. It also works nicely as a regular blog site. An options panel is included for uploading logos and and changing the layout. There’s also support for the image, gallery and quote post formats. Visit the demo site or watch the video screencast for set up instructions.
Author: Devin Price
Author URI: http://wptheming.com/
Theme URI: http://wptheming.com/portfolio-theme/
Version: 1.7
License: GNU General Public License
License URI: license.txt
Tags: white, black, gray, two-columns, left-sidebar, right-sidebar, flexible-width, custom-menu, full-width-template, microformats, post-formats, rtl-language-support, theme-options, translation-readyCredits:
Portfolio was built on the solid foundation of Toolbox:
https://wordpress.org/extend/themes/toolboxReset default browser CSS.
Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/MODERATOR EDIT: I removed the ~1200 lines of code here, use pastebin or a gist on GitHub for big code dumps.
April 23, 2014 at 7:40 pm #145410In reply to: Moderator Unable To Post To Forum: iPhone iPad
Stephen Edgar
Keymasterwould I *only* be allowed to add a tags with a class (no, I don’t know why either but just pretend…) and not able to add the default img, blockquote, etc tags?
Correct, with the example you posted you would only be able to add an
aanchor HTML element with aclassCSS class eg.<a class="my-css-class">description</a>note as you removedhreffrom the allowed tags you wouldn’t be able to use<a href="http://example.com">description</a>I had a similar question last year but never really figured it out – gave up when I decided it didn’t matter: https://bbpress.org/forums/topic/using-wp_filter_kses-filter-for-bbpress-posts/
I fully appreciate this highlights how little I know these things! And thank you. 🙂 This has been a really interesting discussion.
This highlights how little I knew 12 months ago, if I don’t know I don’t answer a question unless I can provide something that IS helpful, we are all constantly learning 🙂
April 23, 2014 at 10:21 am #145393In reply to: bbpress custom user role ?
Robin W
Moderatorok,
so create a file called bbpress-functons.php as above and in to this put
<?php //code to add tutor role function add_tutor_role( $bbp_roles ) { /* Add a role called tutor */ $bbp_roles['bbp_tutor'] = array( 'name' => 'Tutor', 'capabilities' => custom_capabilities( 'bbp_tutor' ) ); return $bbp_roles; } add_filter( 'bbp_get_dynamic_roles', 'add_tutor_role', 1 ); function tutor_role_caps_filter( $caps, $role ) { /* Only filter for roles we are interested in! */ if( $role == 'bbp_tutor' ) $caps = custom_capabilities( $role ); return $caps; } add_filter( 'bbp_get_caps_for_role', 'tutor_role_caps_filter', 10, 2 ); function custom_capabilities( $role ) { switch ( $role ) { /* Capabilities for 'tutor' role */ case 'bbp_tutor': 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' => true, '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' => true, // Reply caps 'publish_replies' => true, 'edit_replies' => true, 'edit_others_replies' => false, 'delete_replies' => false, 'delete_others_replies' => false, 'read_private_replies' => true, // Topic tag caps 'manage_topic_tags' => false, 'edit_topic_tags' => false, 'delete_topic_tags' => false, 'assign_topic_tags' => true, ); break; default : return $role; } }This sets up a role called ‘tutor’ – just change this name everywhere to the one you want, and then edit the capabilities.
the default capabilities for each role are :
https://codex.bbpress.org/bbpress-user-roles-and-capabilities/
you’ll probably want to make delete topics and delete replies true
April 23, 2014 at 9:00 am #145390In reply to: bbpress custom user role ?
tharsheblows
Participantbbpress-functions.php should go in the main theme directory eg /twentythirteen/bbpress-functions.php. It doesn’t go in the /twentythirteen/bbpress/ directory. This is also true for the default bbpress template, bbpress.php.
So for bbpress custom templates, you’ll have eg :
/mytheme/bbpress-functions.php <– custom functions file, overwrites plugin file
/mytheme/bbpress.php <– custom main bbpress index file, overwrites plugin file
/mytheme/bbpress/*.php (eg /mytheme/bbpress/loop-forums.php) <– all the template files you want to overwrite from the plugin folder /bbpress/templates/default/bbpress/April 23, 2014 at 8:38 am #145386In reply to: Moderator Unable To Post To Forum: iPhone iPad
tharsheblows
Participant@netweb – with filters, do they only add or modify the function? I mean, can you only add or modify parameters in them, not delete? Eg if I had this:
add_filter( 'bbp_kses_allowed_tags', 'ntwb_bbpress_custom_kses_allowed_tags' ); function ntwb_bbpress_custom_kses_allowed_tags() { return array( // Links 'a' => array( 'class' => true, ) }would I *only* be allowed to add a tags with a class (no, I don’t know why either but just pretend…) and not able to add the default img, blockquote, etc tags? I guess I’m asking is it like a child functions.php file (which overwrites) or a child css file (which adds to / modifies)? I am hoping I’ve got my analogies right, hmm.
I had a similar question last year but never really figured it out – gave up when I decided it didn’t matter: https://bbpress.org/forums/topic/using-wp_filter_kses-filter-for-bbpress-posts/
I fully appreciate this highlights how little I know these things! And thank you. 🙂 This has been a really interesting discussion.
April 22, 2014 at 11:34 pm #145366In reply to: Suffusion bbpress pack issues
John James Jacoby
KeymasterIt sounds like this theme added bbPress specific templates to both the parent theme, and the child theme, both of which are overriding bbPress’s default template compatibility (because bbPress will yield to those overrides, which is how you can customize bbPress without needing to hack bbPress.)
Can be a bit confusing at first, especially since there’s no real indication of what is being loaded from where.
You could try installing the WordPress Debug Bar plugin, and then install the bbPress Debug Bar extension: https://wordpress.org/plugins/debug-bar-bbpress/
This will give you some information about what bbPress template is loading from where, but it’s still only providing a small window into a somewhat hidden experience.
April 22, 2014 at 6:37 pm #145357In reply to: Avatar Folders (to choose pre-made avvys?)
DietPipsi
ParticipantHello. Thankyou for the reply. The problem with using the Custom Default Avatar plugin is that users cannot choose which avatar from that list that they want to use. They only have two options, one default or upload their own.
I want them to be able to choose from a list of avatars with a drop-down or radio button. Is there a plugin for this or a snippet of code I can put into my child theme to enable this?
Thanks
April 22, 2014 at 1:22 pm #145352In reply to: New users/'Participants' unable to create topics
Robin W
Moderatormaybe a theme or plugin conflict
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.
-
AuthorSearch Results