solved with the following custom CSS
#bbpress-forums div.reply { height: auto; width: inherit !Important; }
Hi there,
Is there a shortcode, plugin or script that will allow me to create a custom change password page?
I have created custom reg, login and lost password pages but can’t find any documentation on the change password page.
Thanks
I fully understand the need for the SMTP plugin, I think we should all use it !
But I meant that if your standard FROM is changed, it probably means that there is another plugin somewhere manipulating it.
I had similar issues in the beginning and that why I switched to the other SMTP plugin mentioned above, but with this code, it should work too.
Pascal.
Hi,
That seems like a CSS issue, but I would need a link to the site to be able to provide you the correct code.
Pascal.
THat code should work ! I used it about 2 years ago for a quick fix.
But if you need this code, it means there is somewhere a plugin that is doing strange things !
So I’ve got
<?php do_action( 'bbp_theme_before_topic_title' ); ?>
<span class="bbp-topic-started-in"><?php printf( __('%2$s', 'bbpress' ), bbp_get_forum_permalink( bbp_get_topic_forum_id() ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></span>
"><?php bbp_topic_title(); ?>
And if the forum id equals 8397, I want to assign a different class to it… <?php if ( bbp_get_topic_forum_id() == 8397 )
But I’m a bit stuck here. Any suggestions?
So I figured out how to do it, now I’m trying to color-code every forum.
Hello,
I found some working code, could you please just check it to make sure it is 100% valid and I am not missing anything?
/*BBPress email fix*/
add_filter( 'wp_mail_from_name', 'email_sent_from_name' );
function email_sent_from_name( $name )
{
return 'SITE NAME';
}
add_filter( 'wp_mail_from', 'email_sent_from' );
function email_sent_from( $email )
{
return 'email@example.com';
}
Yes, I did replace the values with required ones such as the address and send from name.
Thanks.
Hello!
I’m looking to output the forum title inside- and before every topic title. So it would read like:
[Forum 1] Topic title
[Forum 2] Topic title
I want to use the shortcode [bbp-topic-index], but then need to visually separate the topics somehow.
My _very_ basic knowledge of php says to add bbp_forum_title() somewhere around bbp_before_topic_tile(), but I’m not sure how to piece that together into functioning code. Anyone got any ideas or pointers?
P.S. Please don’t laugh if I sound like an idiot, I’m learning very slowly 🙂
Hi,
Something is strange in your theme … Also when I look from it from a smaller screen, everything gets on top of other things.
A quick and dirty patch ?
#bbpress-forums div.bbp-forum-author, #bbpress-forums div.bbp-topic-author, #bbpress-forums div.bbp-reply-author {
width: 25%;
}
But you need more to fix your whole environment.
Pascal.
Hi,
I am trying to use [bbp-topic-form] in a page, but the page does not display the form. The shortcode [bbp-forum-form] works properly but not the topic form.
Please can someone tell me why the page is not displaying the topic form?
Solved it! I had to get the ID of the ‘topic’ custom post type and pass it to bbp_topic_reply_count
<?php if ( 'topic' == get_post_type() ) : ?>
<?php $topic = get_the_ID(); ?>
<article class="bit-4 newsPost grid-sizer grid-item">
<div class="eventInner homePost">
<p class="postLabel">Discussion</p>
<h1 class="eventListTitle"><a href="<?php the_permalink(); ?> "><?php the_title(); ?></a></h1>
<p class="postedOn"><?php the_date('d M Y'); ?>, <?php bbp_topic_reply_count( $topic_id = $topic ); ?></p>
<p><?php echo get_excerpt(); ?></p>
</div>
</article>
<?php endif; ?>
Hi I’m hoping someone can give me some direction. I should start by saying i’m not a big coder or developer so apologies if this is really simple to solve. Every post in BBpress is accompanies by the user date on the left hand side. On the initial post in a topic this user data column is wide enough to contain all of the relevant data.
On subsequent posts the column is indented and becomes too narrow to display everything. For an example of this issue on the site I’m developing view
https://officerofthewatch.co.uk/Officers-Mess/topic/officer-of-the-watch-help-wanted/
You will note on the second post by ‘aquabon’ the ‘send a message’ text is partially cut off.
Is there anyway to increase this column width to match that of the original poster?
Hello,
I still need some code to change these 2 items, if you could help me come up with something, that would be great.
Thanks
Is there a show_topic_ID() or something?
Hello,
I am using this plugin.
https://wordpress.org/plugins/wp-smtp/
I am trying to change the sender name and sender email address for BBPress. I have successfully done this for BuddyPress, but all the code I have tried for BBPress or all the code I have seen in older topics, is not doing it for me.
Can you please recommend some code that I can change the sender name and sender email address?
Thanks.
Hi there,
I am currently working on my first bbPress site and thoroughly enjoying it! I have one issue though…
On my home page I have a list of 8 latest posts on the site. They include news (standard WP posts), events (custom post type) and bbPress topics and are displayed with query_posts().
I am trying to display the reply count of topics but can’t using bbp_topic_reply_count(), it simply returns 0.
<?php if ( 'topic' == get_post_type() ) : ?>
<article class="bit-4 newsPost grid-sizer grid-item">
<div class="eventInner homePost">
<p class="postLabel">Discussion</p>
<h1 class="eventListTitle"><a href="<?php the_permalink(); ?> "><?php the_title(); ?></a></h1>
<p class="postedOn"><?php bbp_topic_reply_count(); ?> comments, starting on<?php the_date('d M Y'); ?></p>
<p><?php echo get_excerpt(); ?></p>
</div>
</article>
<?php endif; ?>
Am I missing something? Can someone help please?
Thanks
Hi guys @robin-w
I really don’t get it.
I changed the <?php bbp_list_forums()?> in to
<?php bbp_list_forums(array (
'show_topic_count' => false,
'show_reply_count' => false,
'separator' => '',
));?>
In the bbpress plugin folder and tried it in the theme folder. Both Didn’t work. What am I doing wrong?
Got it to work in the functions.php
@sidebarissue
The bbPress sidebar that you see having the issue, is from your theme. bbPress does not have code in it for a bbPress specific sidebar.
You haven’t checked and made sure to see if it was in your theme by switching/testing a default theme.
I still haven’t tried switching to the twentytwelve theme because I don’t want to lose all of my settings for my current theme.
You can try your current theme and a WordPress default theme in a local installation on your cpu to see where the sidebar is coming from.
https://codex.bbpress.org/getting-started/testing-your-bbpress-installation/creating-a-test-site/#local-installation
you’ll need to create a role with those capabilities
see
https://codex.bbpress.org/custom-capabilities/
Hi Marc,
I didn’t try any of them, but these are some possibilities:
1) installing bbPress on the us_US and then downloading the nl_NL bbPress translations and adding them in the bbPress folder (https://codex.bbpress.org/getting-started/bbpress-in-your-language/)
OR
2) Go MU and have the main site in us_US and create a subsite in nl_NL
Pascal.
Well not a bbPress specific plugin, but there are a few plugins that can work with custom post types (bbPress uses custom post types).
A plugin I found and tested is called NS Featured Posts, but like I said many other plugins could possibly work too.
After installing the plugin make sure to go to Settings > NS Featured Posts and make sure to add the topic custom post type from bbPress in the plugin’s settings.
Now we can go to Topics > All Topics and see a new column that says Featured. Make sure to click the checkbox near the topic you would want to feature.
Now we are going to make a custom view to display these featured topics in a topic list, and also be able to display them in pages with a shortcode.
Add this php code snippet into your child themes functions.php or insert this snippet into a custom plugin like functionality.
This function displays about 10 featured topics on a single page, change 10 to whatever you want.
function rkk_register_featured_view() {
bbp_register_view( 'featured', __( 'Featured Topics' ), array( 'meta_key' => '_is_ns_featured_post', 'meta_value' => 'yes', 'posts_per_page' => '10', 'max_num_pages' => '1'), false );
}
add_action( 'bbp_register_views', 'rkk_register_featured_view' );
Now in a custom page or widget area that has a widget text area that can handle shortcodes, insert this shortcode.
[bbp-single-view id='featured']`
In MYSQL with phpmyadmin you would be able to do it. If you would need to add e.g. 4 hours, the idea would be :
WARNING: Backup your database before doing things
WARNING: This is just a starting point, not a real query to launch on your DB
UPDATE poststable SET postfield = DATE_ADD(postfield, INTERVAL 4 HOURS)
WHERE postfield < '2016-04-01 08:20:00';
So in the WHERE you need to put the datestamp when you have done the timezone switch.
Pascal.
Hi,
You will have to go with
{
position: relative ;
top : 0px ;
}
Pascal.