Apologies, I missed that one, bbPress uses the same smileys as WordPress
The full list can be found here: https://codex.wordpress.org/Using_Smilies
I currently am using this:
https://kristarella.blog/2013/04/bbpress-forum-icons/
But for speed and looks, I’m trying to use a “font awesome” icon for the forum icon.
My plan was to use some css for each forum, and then style the font icons individually.
I started off with this in stylesheet, but it’s not working:
ul#bbp-forum-9:before {
font-family: FontAwesome;
content: '\f058';
color: #6190C3;
font-size: 30px;
padding-right: 10px;
margin-left: -15px;
position: absolute;
left: -13px;
margin-top: 1px;
}
I’ve tried several variations with no luck.
Any suggestions on how to get this css to work properly?
Thanks for any tips.
Just wondering how the script makes the decision if I’m creating or editing a topic. Because I can’t give the $is_edit variable a value in the bbp_insert_reply and I give a excisting topic_id when insert a reply.. Well, maybe when I’ve more time I will look in to this and post the solution here if I find one. For now I will use your other solution.
Thanks for your help and thoughts Robin!
Try our docs, they are in English but cover most of what you are asking, I think 😉
Getting Started
is the code still in there – I can’t see it and you seem to have gone back to the original center alignment
this css should work
#bbpress-forums div.bbp-topic-content img, #bbpress-forums div.bbp-reply-content img {
max-width: 100%;
display: block;
margin-left: auto;
margin-right: auto;
}
presume your theme has a custom css area you can put this in ?
the quick and dirty solution is to get the topic IP before executing bbp_insert_reply and reset it afterwards
eg (untested)
$reply_data = array('post_parent'=>$post_parent, 'post_content' => $post_content);
$reply_meta = array('forum_id'=>$post_forum_id, 'topic_id' => $post_topic_id);
//get the topic IP so we can reset it later
$ip = get_post_meta( $topic_id, '_bbp_author_ip', false );
bbp_insert_reply($reply_data,$reply_meta);
//reset the topic IP
update_post_meta( $topic_id, '_bbp_author_ip', $ip, false );
I could spend a long time working out a more elegant fix, but hopefully the above will be enough !
ok, I know why it is doing it, I’ll do some digging to see how to get around
your function calls
bbp_insert_reply
this function is in
/includes/replies/functions.php starts line 29
This creates the reply, and then on line 64 it has
// Update the topic
$topic_id = bbp_get_reply_topic_id( $reply_id );
if ( !empty( $topic_id ) ) {
bbp_update_topic( $topic_id );
}
bbp_update_topic is held in
/includes/topics/functions.php starting line 818
has a check to see if you are creating or editing a topic.
if you are not editing a topic, it presumes that you are creating so starting line 884
// Update associated topic values if this is a new topic
if ( empty( $is_edit ) ) {
// Update poster IP if not editing
update_post_meta( $topic_id, '_bbp_author_ip', bbp_current_author_ip(), false );
since at that point your call via bbp_insert_reply and bbp_update_topic is NOT an edit, it assumes it is a new topic and updates with the current user IP as above.
let me think about easiest way to fix.
Hi,
I’ve created a custom module for bbpress to combine all new topics and replies in one overview. From there the moderator can comment on all the incoming messages. This works only i’ve one problem. To add a new reply i use the next code:
reply_data = array('post_parent'=>$post_parent, 'post_content' => $post_content);
$reply_meta = array('forum_id'=>$post_forum_id, 'topic_id' => $post_topic_id);
bbp_insert_reply($reply_data,$reply_meta);
When this is a reply on an other reply everything works fine. But when it is a reply on a new topic then the Topic starter ip-adres is changed to the ip-address of the moderator. I can turn some things off in the core function includes/topics/functions.php
// Update poster IP if not editing
update_post_meta( $topic_id, '_bbp_author_ip', bbp_current_author_ip(), false );
But that isn’t what I prefer of course.
Could someone help me out?
Thanks in advance.
Niels
Hi dear support,
we have installed your plugin on our website and apparently it’s not working properly.
If we use the shortcodes to place it on some page:
Forum TEST
It shows list of forums but once you try accessing some forum it shows empty page:
Muske Carape
Also, the default forum page is not working:
http://jadran.paprikart.rs/forums/
We already tried disabling all the plugins to rest assured that plugin conflict is not making some conflict there and it’s still not working.
WP version 4.9.1.
Can you please take a look at it and advise?
Thanks in advance!
I have looked there but couldn’t find what I was after. I was looking at once bbPress plugin is installed what functionality will it give within the actual editor window to users of the forum. Some things are listed in quicktags ie strong tags that bold words. But what about all the other things not listed in quicktags, emoticons etc. Surely there has to be a complete cheat sheet of what code gives what result.
Thanks for your time.
Try adding this to your custom css:
#bbpress-forums ul.bbp-lead-topic li.bbp-body div.topic {
background-color: #ffe;
border: 1px solid #dd6;
}
and this to your functions.php:
function custom_bbp_show_lead_topic( $show_lead ) {
$show_lead[] = 'true';
return $show_lead;
}
add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
Hi @johnjamesjacoby and team. Like everyone else, I’ve been waiting for the 2.6 release for a few years now. I can see that the last remaining ticket is for the “bump” functions that have been in there for a while.
I’m just curious, are bump functions uniquely challenging to code? Either way, is there anything that I (or anyone) can do to help get this task finished? I have somewhat arbitrarily been waiting for the 2.6 release to make some changes to my site. I’m contemplating updating to the RC5 release. By the way, where can I find the latest RC download link? I dug around but couldn’t find a copy. The RC5 link here (https://wordpress.org/plugins/bbpress/advanced/) is still broken.
Bump. Is there a list of available emoticons and other code options available to users of the bbPress forum?
Also, line 4 of the Vanilla file states:
* Implementation of Vanilla 2.0.18.1 Converter
So I wonder if maybe this importer doesn’t work with recent versions of Vanilla?
SMF to BBPress – error utf8mb4
SMF to BBPress – error utf8mb4
I am getting the same error as this post identifies:
WordPress database error: [Specified key was too long; max key length is 1000 bytes]
CREATE TABLE wp_bbp_converter_translator ( meta_id mediumint(8) unsigned not null auto_increment, value_type varchar(25) null, value_id bigint(20) unsigned not null default '0', meta_key varchar(255) null, meta_value varchar(255) null, PRIMARY KEY (meta_id), KEY value_id (value_id), KEY meta_join (meta_key(191), meta_value(191)) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
But for Vanilla. It looks like an update to the importer is all that it took to fix this,
@netweb , @johnjamesjacoby
Thoughts?
Thanks for your time!!
— sdeeds
WP Version 4.9.1
Vanilla Version 2.3.1
bbPress Version 2.5.14
the shortcode goes in say page content.
so create a page and put
[bbp-single-topic id=$topic_id]
via css try
.has-sidebar:not(.error404) #primary {
width: 100% !important;
}
you can set it to more than 100% if you wish !
The source is available via browser at: https://bbpress.trac.wordpress.org/browser/trunk/src/includes/admin/converters
Or SVN: https://bbpress.svn.wordpress.org/trunk
Or Git: git://bbpress.git.wordpress.org/
try my style pack plugin, it has this + many other features and will save you having to maintain code
bbp style pack
Is there a git repository or something like this where I can checkout your importer? I have no local wordpress installation and only want to see the source code.
In general I (guess I) understood what needs to be inserted into the database comparing the pre- and post-topic-creation-dump, except the serialized array values for key “_bbp_akismet_as_submitted” in postmeta table. Are all the keys and information necessary? I don’t understand why the HOME key is needed related to an anonymous user or how I get the unique id for REDIRECT_REDIRECT_UNIQUE_ID,…
With “are they necessary” I mean, for automatically / imported entries.
Thanks and kind regards,
Dirk
ok, remove the whole line
<?php echo do_shortcode(‘[bbpress_recent_replies_by_topic show =5]’) ?>
then add this to your functions
add_action( 'bbp_template_before_forums_loop', 'call_bbpress_recent_replies_by_topic' );
function call_bbpress_recent_replies_by_topic () {
echo do_shortcode("[bbpress_recent_replies_by_topic show=5]") ;
}
This just hooks to the line after the one you’d added
<?php do_action( ‘bbp_template_before_forums_loop’ ); ?>
so saving you having to amend that template.
This works on my site.
bbpress just uses
posts
post_meta
and for its own settings
options
forums, topics and replies are all post types in wordpress.
go to
Import Forums
for more info including an example importer.
I documented my import from snitz access database when I very first started using bbpress, and you may want to read through that as well in this page
Custom Import
Hello,
I have a new bbpress site with buddypress integrated (bbpress was installed and set up first.) Admins can see all forums, Participants cannot see Hidden forums, unless it is associated with a buddypress group of which they are a member. The site is jingfangacademy.com
Fixes I have tried:
1. Deactivated all plugins one by one.
2. Tried other themes: 2013, 2015, 2016
3. Tools > Forums > ran all tools
4. Changed user role permissions with third-party plugins: User Role Editor, Members
5. WP and all plugins up to date.
I’ve added no CSS to the site. I’m a novice and I don’t own the hosting account, so I’m hoping to fix this without adding code. I’ve tried all the fixes I could find in related threads.
Thanks for any help!