Forum Replies Created
-
In reply to: Moving bbPress Edit profile forms
Do you have a donation link?
I do, but it’s probably not etiquete to put it on this forum !But when you do find the solution, PLEASE post it back here, so that others searching later can find it !
In reply to: Hello from Japan! How to remove the anchor tag…ok, so
//function to remove the comma
function change_comma_time($output) {
$output = preg_replace( ‘/[,]/’ , ‘ ‘ , $output );
return $output;
}
add_filter( ‘bbp_get_time_since’, ‘change_comma_time’ );
add_filter(‘bp_core_time_since’, ‘change_comma_time’);will take out the commas. You need to add this to your functions file and
‘function custom_get_forum_freshness_link() {
$time_since = bbp_get_forum_last_active_time( $forum_id );
$anchor = $time_since ;
return $anchor ;
}add_filter( ‘bbp_get_forum_freshness_link’, ‘custom_get_forum_freshness_link’ );’
will take out the link
You will need to add these to your functions file.
Come back if you need further help
In reply to: Is bbpress work with custom post type ?‘course are posts for “courses” custom post type.’
That is the part that confuses me.
Bbpress uses three custom post types – forum, topic and reply – none of which would concern you.
If you just want forums for each course, that is out of the box, but a course participant would be able to see other course’s forums – is this an issue?
Otherwise if you want separate private group forums then try adding the following plugin on top of bbpress.
https://wordpress.org/support/plugin/bbp-private-groups
Since I have never used courseware I can’t say how well bbpress would integrate with it
I think you best option is to install bbpress and see how it works for you.
In reply to: Unable to Assign Forum to TopicTry this link and come back if that doesn’t solve it for you
In reply to: bbPress Codexlooks good Stephen, will be interesting to see how that develops !
for plugins, a list of wordpress plugins by what they do rather than what they’re called would be useful, which I’d be happy to work on. At the moment you have to want something and then articulate this in a search. Most newcomers don’t realise what they can do with a few plugins, and a simple list would be great to stimulate the mind.
In reply to: Is bbpress work with custom post type ?I’m not quite sure what you are asking.
do you want a separate forum for each course?
and does each forum need to be private from the others?so
course 1 would have forum 1
course 2 would have forum 2that is do-able, but I am not sure where your question on custom post types comes in?
ok, quick and messy way (based on some code I did elsewhere)
create a directory in your theme root called bbpress
wp-content/themes/%your-theme-name%/bbpress
copy
wp-content/plugins/bbpress/templates/default/bbpress
loop-replies.php
and
loop-single-reply.phpinto this directory
bbpress will now use these files instead
in loop-replies change from line 40 to
<li class="bbp-body"> <?php if ( bbp_thread_replies() ) : ?> <?php bbp_list_replies(); ?> <?php else : ?> <?php global $countr ; $countr=0 ; ?> <?php while ( bbp_replies() ) : bbp_the_reply(); ?> <?php $countr ++ ; <?php bbp_get_template_part( 'loop', 'single-reply' ); ?> <?php endwhile; ?>
This is basically just putting a count into this, so that we can see that the topic is count 0
then in loop-single-reply change line 45 to read
<?php if ($countr !=0) bbp_reply_author_link( array( ‘sep’ => ‘<br />’, ‘show_role’ => true ) ); ?>
I’ve not tested this, but you should be able to get it to work.
In reply to: Moving bbPress Edit profile forms‘I’m sure it’s just a matter of understanding how WordPress or specifically BuddyPress implement PHP forms and the rest should be a cakewalk.’
Absolutely. Most answers are simple once you’ve found them!
I don’t quite know what to suggest next !
In reply to: bbress custom fields, auto-populate topic contentyes I’d seen that question and had a look – like all things it’s possible but not using css (or at least I’m not good enough at css to tell you how !)
I’ll hopefully come back to it shortly when I get a moment !
Great – glad you’re fixed.
In reply to: Newby a little lostI suspect you got to full width by creating a page called forums and putting
[bbp-forum-index] in it.You would then have set this page to full width on the right hand side of the page where it says template !
This plugin does this
https://wordpress.org/support/plugin/bbp-private-forum-visibility
In reply to: Submit and Reply button not working with themeIt’s not listed as one that is known to be compatible with bbpress
http://themeforest.net/collections/2997867-bbpress-compatible-themes
Sorry but you’ll need to contact the theme author for a fix.
In reply to: Missing Topic Intro‘make less of an assumption about the degree of tech literacy us ordinary users have?’
I had assumed because you were able to look at wp-tables, you were techy !
I try hard to match responses to authors, but it’s difficult sometimes to judge the degree of technicality, and I’m just a humble volunteer on this site who does this for nothing and has a day job and family, so please don’t shoot those that are trying (if badly sometimes :-)) to help !
Are you techy enough to edit and ftp .php files, or add code to your functions file? If so then come back and I’ll try to help further
In reply to: Forum styling broken on category viewI haven’t taken a detailed look at your problem but you could try adding this to you 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: Missing Topic IntroWhere in the thread does it say this is a UAM issue?
I did 7 posts ago ! – ‘Anyway one for the plugin author I’m afraid !’
Did you do the checks that Stephen suggested ?
I am pretty sure it is the same problem… If the plugin you are using marks the post ‘private’ (you can confirm this by looking at the post in the wp_posts table, if the post_status for the topic is private then this is the same issue.
Not a definitive guide but if you are logged in and you are the topic author who authored that topic I expect you will find that they can see both the topic content and the follow up reply.
and what results did you get?
In reply to: Missing Topic Introsorry this is an issue with the UAM plugin, so as stated you’d need to refer the issue to them.
In reply to: Setup bbPress as a standalone WP installIntegration is not an option for us, as explained in my original post.
was just trying to help by giving you a test site that you could fix the issue in – only an option 🙂
therefore yes you are doing wp and bbpress on a sub-domain, should work quite easily !
In reply to: bbress custom fields, auto-populate topic contentDo you want me to include the bbpress custom fields code?
yes please !In reply to: Newby a little lost‘Do I have to change the format (ie: NOT full page) in order to see the sidebar?’
Yes !In reply to: Moving bbPress Edit profile formsI’m sorry but I know nothing of buddypress, but I thought you wanted your page to look like the bbp profilepage, and that simply uses code to create the urls hence why I quoted them !!
If you just type these urls in, they work, they don’t need any code.
so what happens if you just rename the form-user-edit.php to settings.php and drop it in the right directory?
In reply to: Sticky thread Issuesthat was quick – glad you’re fixed !
In reply to: Newby a little lostNow you’ve got it full width, you may decide that actually you want a sidebar, but one for your forum that includes logon, register etc.
see
In reply to: Sticky thread Issuesyes,
add this to your functions file
//This function adds the words sticky before the title function bbp_sticky_display () { if(bbp_is_topic_sticky()) { echo '<span class="sticky-display">' ; echo 'Sticky Topic' ; echo '</span>' ; } } add_action ('bbp_theme_before_topic_title', 'bbp_sticky_display') ;
and this to your style.css
#bbpress-forums .sticky-display{ background: none repeat scroll 0 0 #5BB75B; color: #FFFFFF; display: in-line; padding: 5px; }
you can change the words and styling to suit !
In reply to: Moving bbPress Edit profile formsYes, we will get there, but I’m not totally clear on how you are doing your bit, so am struggling to help !
‘I’m not sure what you mean by calling each by their url. ‘
Basically if you hover over the links in the profile page you get
profile http://www.mysite.com/forums/users/%username%/
topics started http://www.mysite.com/forums/users/%username%/topics
replies created http://www.mysite.com/forums/users/%username%/replies
favorites http://www.mysite.com/forums/users/%username%/favorites
subscriptions http://www.mysite.com/forums/users/%username%/subscriptions
edit http://www.mysite.com/forums/users/%username%/editwhere %username% is the username
so if in your coding you already know the username, then you can simply put these usls on your landing page.
alternately you can just call the forum-user-edit.php from your page.
What I still don’t understand is what ‘page’ you are trying to do this one.
is this what you are describing as the template file? and which file is that and is it a php file?
Sorry if I’m sounding thick, but come back and I’ll try and help further