forums/user/test/
is rendering very weirdly:
<div class="entry-content" itemprop="text"><p>Profile Topics Started Replies Created Favorites Subscriptions Edit Profile Forum Role: Keymaster Topics Started: 0 Replies Created: 1</p>
</div>
which looks obviously incorrect because it’s missing html tags in between things.
I tried putting a die; at the bottom of templates\default\bbpress\user-profile.php and the page rendered properly, but all the other profile type pages are still broken. Removing everything from my functions.php doesn’t help either.
What could be going back and stripping out the html tags?
I am developing in a Genesis child theme and installed a bbPress Genesis Extend plugin.
Just wondering if this is possible – I am working on a live project at the moment which is requiring the addition of BuddyPress and bbPress functionality to a membership site running on Wishlist Member. Specs for the site as follows:
WP: 3.6.1
bbPress: 2.4
BuddyPress: 1.8.1
Wishlist Member: 2.71.1747
Site URL: http://www.thelawofattraction.com
The idea is that we are implementing a paid-for membership level managed by WLM and Infusionsoft. At the moment I have set auto role to ‘Blocked’ and reset the assigned bbPress user roles so that all existing (non-paying) members are set to this.
However, I’d like all new members registering as paid-for (Platinum+, platinumplus) to be assigned the Participant role.
I tried like so in my functions.php:
add_filter('bbp_get_user_role_map','custom_bbPress_role_map');
function custom_bbPress_role_map($role_map){
$role_map['platinumplus'] = bbp_get_participant_role();
return $role_map;
}
but although I can echo out the result of bbp_get_user_role_map() and see that this has worked in theory the Platinum+ members remain set as ‘Blocked’.
First time using bbPress so please forgive me if I’ve overlooked anything really obvious here, but any help would be appreciated.
Best,
Iain
Problem is because gdpress signature and adunit go in post with and the adunit plugin add the code before bbp-signature DIV…
We have two way, or add adunit code after bbp-signature DIV, or use another metod to add adunit after reply in the loop… for example, after 1 or 2 or 3 and etcc.. post, but not in one single reply.
For the moment i don’t have solutions, in plugin support page have another thread opened by another user… https://wordpress.org/support/topic/breaks-gd-bbpress-tools-signature-in-topic-between-posts?replies=2
With no reply… 🙁
I have bbpress loaded on my site and have already started creating forums…love it.
however, I created a page for the forum and put the shortcode there, but now my forum url is
http://www.nikkiinstitchescraftacademy.com/forums/forum/month-1-the-background-story/
is there any way to get rid of the double forum in there?
should i have put the shortcode someplace else?
thanks so much for your help!
Wordpress version 3.6.1
bbPress version 2.4
http://www.NikkiInStitchesCraftAcademy.com
Hi, i have a little bug with bbp signature.. if you have signature, these, go after ad unit … i now find a solution for this little issue!!
this is a code:
<div class="bbp-signature">forum signature</div>
You will find your user profiles at the following URL (Swap example.com for your domain)
http://example.com/forums/profile/username/
Also any username prefixed with imported_ eg. imported_username is because the user name username was already taken in WordPress. If both imported_username and username users are the same user go to the WordPress dashboards ‘User Panel’ and when you select the imported_username to be deleted you will be prompted to attribute all existing posts, topics, replies etc to another user, select the user username and now all posts, topics, replies etc will be under the single user username.
By way of an update. Adding a page and using shortcodes seems to have solved this
https://codex.bbpress.org/shortcodes/
The only tables you need are the ones you listed above:
- forum
- thread
- post
- tagcontent
- tag
- user
You may have a table prefix vb_ on your tables and you enter that on the import settings ‘Table Prefix’ field.
https://codex.bbpress.org/import-forums/vbulletin
Hello guys!
I have a specific question about adding forums, threads and replies in Bbpress.
Some times ago i made a script that’s sending data to fill the DB in wordpress – i just send via POST: author, post, title etc via php script, that add it all to DB. It was simple.
Now i have to make it in Bbpress, and there is a problem: besides the ‘wp_posts’ data i see many cells in ‘wp_post_meta’ when i create a forum, topic and a reply such as:
_bbp_topic_count
_bbp_total_reply_count
_bbp_forum_subforum_count
_bbp_reply_count
_bbp_last_active_time
etc
The problem is that I want to do it in the future delayed (this future posts date). And the question is: how do I write this posts and Bbpress helps me and refreshes that data in ‘wp_post_meta’.
I googled my problem and found this functions in functions.php:
function bbp_update_topic_topic_id( $topic_id = 0 ) {
$topic_id = bbp_get_topic_id( $topic_id );
update_post_meta( $topic_id, '_bbp_topic_id', (int) $topic_id );
return apply_filters( 'bbp_update_topic_topic_id', (int) $topic_id );
}
That’s what I’m looking for? I will be happy if Bbpress has some API or xml-rpc method to add a topics and replies, but there is none 🙁
Thank you and sorry for my bad english.
Hi JJJ,
I really appreciate your effort on this forum!
I understand you can’t spend to much time here, but I guess your answers are still quite complicated for most of the bbpress users, an example would be great. I managed to write this with your hints, and some further googling. Thanks!
function user_favorites_link( $args ) {
$args['favorite'] = 'Maak favoriet';
$args['favorited'] = 'geen favoriet meer';
return $args;
}
add_filter( 'bbp_after_get_user_favorites_link_parse_args','user_favorites_link');
Hi jezza, i’ve add your great plugin, it works fine.. Thanks
Is possible in future version to have a css customization for the <div>, possibility to add text in adv in middle topic (where is present the date), and decide where put adv, for example, decide to add adv after, 1 or 2, or 3 etc.. users replies?
Regards…
The solution ended up being really simple. Just create a “recent posts” page (or call it whatever you want” and use the shortcode [ bbp-topic-index ].
Now I know this question has been asked every which way to sunday, but I just can’t figure it out for my particular setup. I’m a little annoyed at myself that i’ve been working w/ bbpress for a couple weeks and can’t figure it out on my own.
Now my home page url is simply mysite.com (id give you a link but its parked). So to clean up the breadcrumbs a bit I made the homepage static so I could use that as the archive/index page. That way breadcrumbs could just be “home > forum-name”.
Now a couple issues which I can’t seem to figure out. If my homepage is simply mysite.com what could I use as the forums slug? Based off of some previous semi-related topics posted here, I could just add the [bbp-topic-index] short code to the homepage in the high hopes it would redirect the “forums” breadcrumb to the homepage.
So the ultimate goal here, 2 breadcrumbs. Make homepage the archive/index page so the forum breadcrumbs would be home > forum-name”
Anyone got any ideas?
I can’t access your site ‘forbidden’
Try resaving your permalinks
https://codex.bbpress.org/faq/#404
Try running the repairs tools (one at a time)
https://codex.bbpress.org/repair-forums/
Check to see if you have a conflict with another WordPress plugin
https://codex.bbpress.org/faq/#plugin-conflicts
The shortcode uses the same setting as ‘Topics per page’ setting.
https://codex.bbpress.org/forum-settings/#per-rss-page
Can you open the bbPress ‘Settings’ -> ‘Forums’ panel in your WordPress dashboard:
eg. http://example.com/wp-admin/options-general.php?page=bbpress
Change a setting eg. Topics from 15 per page to 14 per page click ‘Save Changes’
(It doesn’t really matter what is changed here as we are just forcing bbPress to update its setting in the wp_options table)
Go check your site at eg. http://example.com/forums
Is the issue fixed?
If Yes, go back and change the setting back to its original setting
If not, now go to the ‘Tools’ -> ‘Forums’ panel in your WordPress dashboard:
eg. http://example.com/wp-admin/tools.php?page=bbp-repair
Run each of these individually:
- Recalculate the parent topic for each post
- Recalculate the parent forum for each post
- Recalculate private and hidden forums
- Recalculate last activity in each topic and forum
- Recalculate the sticky relationship of each topic
- Count topics in each forum
- Count replies in each forum
- Count replies in each topic
- Count voices in each topic
- Count spammed & trashed replies in each topic
- Count topics for each user
- Count replies for each user
Again go check your site at eg. http://example.com/forums
Is the issue fixed?
See https://codex.bbpress.org/bbpress-in-your-language/
It looks like %96 of bbPress is already translated to Italian 🙂
Hi, most simple way is to find this line in your bbpress css and add display:none like this:
li.bbp-topic-voice-count {
display: none;
float: left;
text-align: center;
width: 12%;
}
Hi all, and thanks to @koebdb for tricks, but i have a little question, read this:
<?php
echo '<br>Messages: '.bbp_get_user_post_count(bbp_get_reply_author_id());
?>
This function exist in includes/users/options.php, is written to show all messages from one users, but if you use it return 0…. WHY?
This is the function:
/**
* Output a users total post count
*
* @since bbPress (r3632)
*
* @param int $user_id
* @param boolean $integer Optional. Whether or not to format the result
* @uses bbp_get_user_post_count()
* @return string
*/
function bbp_user_post_count( $user_id = 0, $integer = false ) {
echo bbp_get_user_post_count( $user_id, $integer );
}
/**
* Return a users total post count
*
* @since bbPress (r3632)
*
* @param int $user_id
* @param boolean $integer Optional. Whether or not to format the result
* @uses bbp_get_user_id()
* @uses get_user_option()
* @uses apply_filters()
* @return string
*/
function bbp_get_user_post_count( $user_id = 0, $integer = false ) {
// Validate user id
$user_id = bbp_get_user_id( $user_id );
if ( empty( $user_id ) )
return false;
$topics = bbp_get_user_topic_count( $user_id, true );
$replies = bbp_get_user_reply_count( $user_id, true );
$count = (int) $topics + $replies;
$filter = ( true === $integer ) ? 'bbp_get_user_post_count_int' : 'bbp_get_user_post_count';
return apply_filters( $filter, $count, $user_id );
}
Now i have used the second of koendb and it works fine…
<?php
echo '<br>Replies: '.bbp_get_user_reply_count_raw(bbp_get_reply_author_id());
echo '<br>Topics: '. bbp_get_user_topic_count_raw(bbp_get_reply_author_id());
?>
Output:
Replies: 3
Topics: 2
or use
echo 'Messages: ';
echo bbp_get_user_reply_count_raw(bbp_get_reply_author_id()) + bbp_get_user_topic_count_raw(bbp_get_reply_author_id());
Output:
Messages 5
I’m looking fo something that will give me Topic Formats, like Post Formats. I’d like a topic post to be Image, or Audio, etc.
I’ve hunted around and didn’t find anything, is there something I’m missing?
Else, where would I look to code this in?
Hey,
I found the same issue. In my case I patched bbPress to bail if the page isn’t a bbpress page. so in bbpress/includes/common/template.php line 2504 (include bbp_title() function, bbpress 2.4):
if (!is_bbpress()) {
return $title;
}
This must be a bug. Where can I submit a patch for this, or check if it’s a known bug?
Thanks,
Matt
Cool… One day we will get a codex page ourselves 🙂