Having a really difficult time figuring out a way to output topic reply time stamps in a users local timezone. I have a forum with global users and this is a necessity.
WP version: 4.9.8
bbPress version: 2.5.14
Currently using this plugin: Localize Time (https://wordpress.org/plugins/localize-time/)
I am wrapping the bbp_get_reply_post_date() with the shortcode [localize_time]; however, I cannot alter the format of the output date from the shortcode.
I need an alternate solution.
Testing a link back to this thread.
Only Allow YouTube and Vimeo oEmbeds
On my forum, this would have rendered the post here and not just created the heading.
What is the best way to add login and a register link to “You must be logged in to reply to this topic”
I found this but I realized I cannot edit a code as I am very new to PHP.
Please suggest.
<div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
<div class="bbp-template-notice">
<p><?php is_user_logged_in() ? _e( 'You cannot create new topics.', 'bbpress' ) : _e( 'You must be logged in to create new topics.', 'bbpress' ); ?></p>
</div>
</div>
you should have version 2.5.14 which is the latest authorised release.
Download
When upgrading php version on domain to 7.2, bbpress stopped working.
I made contact with domain company, and they say bbpress have’nt been updated in 3 years, and gave me this info from my site:
wp-content/plugins/bbpress/bbpress.php:
* $Id: bbpress.php 5951 2015-10-28 04:07:50Z netweb $
checked version on site, and it says Versjon 2.6-alpha??
What to do????
ok, take the change above out.
Then find
wp-content/plugins/bbpress/templates/default/bbpress/loop-single-reply.php
Make a copy of this file to your pc
The edit this file to be this
<?php
/**
* Replies Loop - Single Reply
*
* @package bbPress
* @subpackage Theme
*/
?>
<div class='rew-border'>
<div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header">
<div class="bbp-meta">
<span class="bbp-reply-post-date"><?php bbp_reply_post_date(); ?></span>
<?php if ( bbp_is_single_user_replies() ) : ?>
<span class="bbp-header">
<?php _e( 'in reply to: ', 'bbpress' ); ?>
<a class="bbp-topic-permalink" href="<?php bbp_topic_permalink( bbp_get_reply_topic_id() ); ?>"><?php bbp_topic_title( bbp_get_reply_topic_id() ); ?></a>
</span>
<?php endif; ?>
<a href="<?php bbp_reply_url(); ?>" class="bbp-reply-permalink">#<?php bbp_reply_id(); ?></a>
<?php do_action( 'bbp_theme_before_reply_admin_links' ); ?>
<?php bbp_reply_admin_links(); ?>
<?php do_action( 'bbp_theme_after_reply_admin_links' ); ?>
</div><!-- .bbp-meta -->
</div><!-- #post-<?php bbp_reply_id(); ?> -->
<div <?php bbp_reply_class(); ?>>
<div class="bbp-reply-author">
<?php do_action( 'bbp_theme_before_reply_author_details' ); ?>
<?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true ) ); ?>
<?php if ( bbp_is_user_keymaster() ) : ?>
<?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?>
<div class="bbp-reply-ip"><?php bbp_author_ip( bbp_get_reply_id() ); ?></div>
<?php do_action( 'bbp_theme_after_reply_author_admin_details' ); ?>
<?php endif; ?>
<?php do_action( 'bbp_theme_after_reply_author_details' ); ?>
</div><!-- .bbp-reply-author -->
<div class="bbp-reply-content">
<?php do_action( 'bbp_theme_before_reply_content' ); ?>
<?php bbp_reply_content(); ?>
<?php do_action( 'bbp_theme_after_reply_content' ); ?>
</div><!-- .bbp-reply-content -->
</div><!-- .reply -->
</div>
<div class='rew-spacer'><p/> </div>
Then put this in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/loop-single-reply.php
Finally in your theme’s custom css area put
#bbpress-forums ul.bbp-replies {
border : none ;
}
.rew-border {
border: 1px solid #eee;
}
body.reply #bbpress-forums div.reply, #bbpress-forums .bbp-replies div.topic, #bbpress-forums .bbp-replies div.reply {
margin: 0px 0px 40px 0px;
}
This did the work. Thank you.
Hello, everyone. Please, let me know if I should report this anywhere else.
I’ve discovered an issue with having bbp_pre_get_posts_normalize_forum_visibility function attached to pre_get_posts action. It’s messing up a query from All in One SEO’s Sitemap plugin, which is for getting all the posts for its Sitemap generation, making it return only bbPress topics, when the query was asking for posts from several post types (not only forum topics).
The reason is the meta_query that bbp_pre_get_posts_normalize_forum_visibility is adding to the query, in order to exclude private forums. Which ends up making the query to only return posts of type ‘topic’.
The condition it adds should end up turning into a SQL query that doesn’t force all posts to require a meta key ‘bbp_forum_id’. So it should be done in a way that it only limits the posts with that meta key to those that meet the condition, but allows posts without that meta key.
Well, another question.
I have users in double like:
imported-fdsfsdf(at)freee.com
fdsfsdf(at)freee.com
Is there a way to use anly the second one for bbpress and wordpress ?
PS: sorry for my english, I am french…
Well, another question.
I have users in double like:
imported-fdsfsdf@freee.com
fdsfsdf@freee.com
Is there a way to use anly the second one for bbpress and wordpress ?
PS: sorry for my english, I am french…
Hello,
I installed bbpress and used the import function to import a phpbb forum to bbpress.
Everything seems to be fine but I can’t see any post in the forum even if they are counted. The strange thing is that I can read post and reply in the admin area !
Any help would be appreciated as I am getting lost…
Thanks a lot
Eric
ok,
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpress
where %your-theme-name% is the name of your theme
find
wp-content/plugins/bbpress/templates/default/bbpress/loop-replies.php
Make a copy of this file to your pc
The edit this file to add this line after line 50
<div class='rew-spacer'> <p/> </div>
so you end up with
<?php bbp_get_template_part( 'loop', 'single-reply' ); ?>
<div class='rew-spacer'> <p/> </div>
Then put this in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/loop-replies.php
You may need to do some styling to get it how you want it, but I would need to see your site to help on that
no problem, yes this is a sub plugin for bbpress, so install bbpress first, then this
Thank you, Robin, so I’m presuming I have to install bbpress first then this plug-in. sorry if I’m sounding a bit green
you can add visual editor to the bbpress forms in and do many other things using
bbp style pack
once activated go to
dashboard>settings>bbp style pack>Topic/reply form
writersabroad
Participant
@writersabroad 3 seconds ago
I’m moving my writing community site from Spruz to WordPress/Buddypress site. On the current site we have used the forum function to set up various writing activities under a number of categories where members can post work, goals, and various other things using a visual editor… I want to replicate this on the new site. Any advice on the best and easiest way forward? Will the bbpress plug-in allow me to create a forum category with sub categories?
the new site is expatwritersabroad.com but I haven’t completed the set up yet and it’s still under construction.
Thanks in anticipation
bbp_[get]_reply_post_date( bbp_get_topic_id() );
Really the bbp_reply_post_date() function doesn’t analyze post_type so you can give it anything you want, not only with type “reply”.
P.S. Topics (and everything) is bbPress is a post (class WP_Post), and every post has post_date (https://codex.wordpress.org/images/2/25/WP4.4.2-ERD.png).
I think this way is the most elegant and straightforward.
Here are the details:
~ WordPress 4.9.8
~ Travel Eye Pro theme
~ BBPress Version 2.5.14
This issue is with a company Intranet so not accessible from the Internet.
When a new topic is created via the Topic option in the WordPress dashboard subscribers are not notified. When a new Topic is created on the Forum page using the New Topic fields and editor subscribers are notified. I’ve tested this across multiple forums and this behavior is repeatable. I see the new topics in the forums regardless of where they’re entered but subscribers are only notified if the topic is created from the forum webpage. Have I missed a configuration step in WordPress or is this a bug?
Thanks in advance for any help anyone can offer. Happy Monday!
Can a custom (forum) import, import from “any SQL” database or does it have to be an “MySQL” database?
The high level custom import documentation here states “to setup an import from any SQL database”.
And the deeper link here state “to setup an import from any MySQL database.”
the Widget in footer area is:
(bbpress) newest theme
customizing:
max viewed theme: 5
ID higher Forum: any
sort by: newest theme
Heading
bbpress – subforum – Separation-sign
Heading
bbpress – newest Theme – authorization
Hello,
ups. I try in english.
my System WP 4.98 included bbpress.
at the footer we have statistc Information by widget for example “newest theme” .
we have a privat area for admins only. this post only see admins.
now are Posts from this private area are displayed in the footer by “newest Themes”.
when a guest (unlogged user) click by this post a error (ops 404) will apear.
can we customize this, that only authorizated user can see the Posts from the private area in the footer?
thanks
armin
Hallo,
wir haben eine WordPress (4.98) Homepage inkl. bbPress Forum aufgebaut.
In der Fusszeile haben wir einige statistische Informationen über Widgets eingeblendet.
So auch die “neueste Themen”.
Funktioniert auch soweit, nur haben wir für die Admins einen Privatbereich eingerichtet dessen Themen nun hier angezeigt werden, auch wenn man NICHT eingeloggt ist.
Resultat ist ständige Nachfrage von Usern wieso man eine Fehlermeldung (Ops 404) erhält wenn man die Themen anwählt.
Kann man das so einstellen, dass auch nur die die neuesten Themen angezeigt bekommen, die die Berechtigung hierfür haben?
Grüße
Armin