Forum Replies Created
-
In reply to: Customise 'Create New Topic' form fields
ok,
In your theme create a bbpress directory
wp-content/themes/%yourtheme%/bbpress
where %yourtheme% is your theme name
Then copy the following file to that folder
wp-content/plugins/bbpress/template/default/bbpress/form-topic.php
So you end up with
wp-content/themes/%yourtheme%/bbpress/form-topic.php
You can then edit this file, and bbpress will use this version.
In reply to: Replies section gives 404 error@editor-mike – sorry do you have a problem after deleting 100 replies at a time?
In reply to: Show forum description in forum listI think this should do it. It’s from my library of code and haven’t used it in a while, so come back if it’s not what you want
You’ll need to add it to your functions file
//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' );
In reply to: Url in Meta Title bbpress pagesLive and learn 🙂
Maybe a theme or plugin issue?
with
wp 4.0
bp 2.5.4
theme : twentyten
Yoast SEOI get
In reply to: CSS questionsusually putting #bbpress-forums in front does the trick eg
#bbpress-forums .entry {
background-color: #f4f4f4;
}In reply to: change the postthere is a setting for this
Dashboard>settings>forums
Disallow editing after….
change this to whatever you want
In reply to: Profile Page visible to non-logged-in visitorsOk, I created the changes needed – go to my site and download the changed files – instructions are there
Come back if you have any queries
Are you saying that you get this issue with
wp 4.0
BP 2.5.4
NO plugins apart from bbPress
Twentyfourtenn theme?
ok, there are two issues with wp 4.0
ISSUE 1
The first gives 404 errors with sub forums for users with default permalinks. This is due to a bug in wp4.0, and netweb is on the case to get this fixed in 4.0.1I’m working on patch for bbpress, but otherwise in the meantime there are 3 workarounds
1. Change your permalinks to any of the other settings
Dashboard>settings>permalinks
The most often used is ‘postname’
This will not only fix your issue, but make your links look prettier. However if you have links to your site forums from other sites/emails, these links might break (ie they will come up as 404 errors), but if your choice is between users not accessing, or users complaining that the link in that old email no longer works, then resetting might seem a good idea.
2. revert to 3.9.2
see
for quite a good video on how to do it
3. Move your sub-forums up a level ie make them all main forums
and keep monitoring this site for a solution.
ISSUE TWO
The second hides topics and/or replies with some themes and other plugins. This is due to a change in wp4.0 on how it handles searches.For the second, the patch in either of these plugins may help.
ONLY have one active at a time. The first form some users may show the same topic content against several topics, so fully check several posts to ensure it isn working for you.
If it does, please come back and say
In reply to: Profile Page visible to non-logged-in visitorsThe normal behaviour is to allow anyone to see profiles.
You can limit this to only logged in users by adding some code to a couple of files.
If you have c-panel or ftp access and know how to transfer files, come back and I’ll help you with the changes.
In reply to: Forum link not showing in admin@seojobb – so now you ned to work out which one is causing the conflict by re-enabling one at a time
In reply to: Online Magazine Themeok, save this file as bbpress.php into the root of your theme
ie
wp-content/themes/%yourthemename%/bbpress.php
where %yourthemename% is the name of your theme !! 🙂
Then add a line above the last, so that it now reads
<? get_sidebar(); ?> <?php get_footer(); ?>
bbpress will now use that page as the one for bbpress, and should display a sidebar.
‘tweaks’ should tghen sue this fro your forum sidebar.
Come back if any of that doesn’t work, or you need more explanation
In reply to: Url in Meta Title bbpress pages@vegas778 – I’m just a humble wordpres/bbpress user, and it may well be that I cannot help you, but I’ll try if I can.
I tried googling meta title, but that phrase doesn’t seem to exist.
You have again posted several pages, but I still don’t know which are ‘correct’ and which are ‘wrong’ in your view, and to be frank, which bit the meta title is?
@peterwsterling – which theme are you using?
In reply to: Online Magazine Themecan you post the code for the full width one here please
In reply to: Url in Meta Title bbpress pagesI’m sure there is a question in there somewhere, but I have no idea what it is.
Can you come back and explain
What the issue is
what is currently showing
when or where it is showing it wrongly, and where correctly
and how you would like it to showThaanks
In reply to: pagination not working – one long scrolling page?great – glad you’re fixed
In reply to: BBpress 2.5.4 custom roles troubleimages are doable, but you’d need code that is beyond the free help on here
In reply to: Online Magazine Themeyes, you will need to rename one of your theme pages (the one that has only one sidebar) to bbpress.php and put it into your theme
In reply to: disable Sidebaryes, you will need to rename one of your theme pages (the one that has only one sidebar) to bbpress.php and put it into your theme
In reply to: Forum link not showing in adminIt 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.
In reply to: BBpress 2.5.4 custom roles troubleYes, each of your
['my_custom_role']
needs to be different, otherwise it’s just overwriting each time, which is why only the last one shows
eg my_custom_role1 my_custom_role2giving
$bbp_roles['my_custom_role1>'] = array( 'name' => 'Recruit', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants ); $bbp_roles['my_custom_role2'] = array( 'name' => 'Corporal', 'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants );
In reply to: WordPress 4.0 Broke BBpressGreat – glad you’re fixed !
In reply to: change forum sidebar@martinperreault – hey thanks for that – it’s good to know that advice works, and always nice to be appreciated 🙂
In reply to: Replies section gives 404 errortry running repair
Dashboard>tools>forums>repair forums
and run one at a time