Do it the same way you would for WordPress and use the bbPress custom post types, forum, topic, and reply.
I don’t see anything wrong in either the code you added above or in your post you linked to.
I see that long lines of solid text do not ‘wrap’ but this isn’t really a WordPress/bbPress issue, if you need to support code/content like that you should look at adding a plugin that will format this type of text for you.
Maybe Crayon Syntax Highlighter….
hej,
When someone enters example XML in an anser like:
<Binary>0E02800001000000000000000B0004C003010000000000000000000000082D0000000000000000004EFF140000000000FFFFFFFF0600000058000000000000000000061208000010000000003C0000000000000000000000803A011480FAFFFF0000000000000000B09B741280FAFFFF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</Binary>
There are no more line breaks and the sidebar seems to go over the content area.
or within the code tag:
<Binary>0E02800001000000000000000B0004C003010000000000000000000000082D0000000000000000004EFF140000000000FFFFFFFF0600000058000000000000000000061208000010000000003C0000000000000000000000803A011480FAFFFF0000000000000000B09B741280FAFFFF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</Binary>
it alters somehow the html structure of the page.
Can I somehow fix that?
You can see the falty Topic and answer here:
http://www.apw-wiegand.de/support-forum/topic/apw-und-windows-7/
I’m using bbPress Version 2.5.4 on WordPress 3.9.1
Thanks in advance,
Eric
Is there any Spoiler BBCode plugins available for BBPress?
for no. 1, add this code to your functions file
//display last topic title in freshness for forums
function display_title ($anchor, $forum_id, $time_since, $link_url, $title, $active_id ) {
$anchor = '<ul><li><a href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '">' . esc_html( $title) . '</a></li></ul><a href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '">' . esc_html( $time_since ) . '</a>';
return $anchor ;
}
add_filter ('bbp_get_forum_freshness_link', 'display_title', 10, 6 );
Having coded it, I like the way it displays, and will be adding to the forums on one of the sites I support – one of the reasons I support this forum is that I learn and get ideas from others đ
for no. 2
add
#bbpress-forums div.bbp-forum-title h3, #bbpress-forums div.bbp-topic-title h3, #bbpress-forums div.bbp-reply-title h3, #bbpress-forums a.bbp-forum-title, #bbpress-forums a.bbp-topic-permalink {
color: #666 !important;
font-size: 16px !important;
}
to your style.css
where should I add the code to?
This is one way…
function ntwb_bbp_theme_before_topic_form_notices() {
?>
<div class="bbp-template-notice">
<p>Something here...</p>
<p>Something else...</p>
</div>
<?php
}
add_action( 'bbp_theme_before_topic_form_notices', 'ntwb_bbp_theme_before_topic_form_notices' );
And another is to modify the form-topic.php template.
Quickest way in your child theme remove the nickname form the form-user-edit.php template.
https://codex.bbpress.org/theme-compatibility/
Functions files and child themes – explained !
Hi, I have a question about forum migration. I need to migrate a Drupal 6 forum into BBPress. I see Drupal 7 migration is supported http://codex.bbpress.org/import-forums/. I have some questions:
Can this migration be easily done from Drupal 6?
Can I pay a BBPress professional to do it?
in the meantime, you can move it in your style.css
Layout and functionality – Examples you can use
Yes,
If you have a forum page ie a wordpress page that has [bbp-forum-index] in it, (ie you’ve use method 2 rather than method 1 in this link
Step by step guide to setting up a bbPress forum – Part 1
then go into edit on your forum page
Switch to text from visual and put
Create a new topic before the [bbp-forum-index] to get it at the top or after it to put it at the bottom.
or you could use
[bbp-topic-form] after the [bbp-forum-index]
or
[bbp-topic-form forum_id=$forum_id] to display a single forum topic form.
Lots of possibilities.
If you don’t have a set wordpress forum page, then you can create one, see method 2 in the link above
Do you have any static pages set in Dashboard -> Settings -> Reading (/wp-admin/options-reading.php), if you have a page here for the ‘Home’ and it has long text as it’s title that can cause the issue you see.
I am pretty sure you need to create a bbPress template for your theme, make a copy of page.php and rename it bbpress.php.
It looks like there are some similar questions in the theme support forums but I cannot see the answers as I am not a registered owner of the theme.
http://support.skywarriorthemes.com/search/?q=bbpress
There is two parts to this:
1. The ‘moderator’ role cannot be currently set to only disable moving topics to another forum currently, to change this though a couple of tweaks to the form-topic.php template would achieve this end result.
2. There is also a bug where moderators can move a topic to a group forum that they are not a member of that we are looking into in #2639
Thanks extra sets of eyes with all of this ‘import’ stuff is always handy, boat loads of data all just starts to look the same after a while đ
Indeed, ‘Reset Forums’ will remove everything bbPress, as long as you also check the ‘Delete Imported Users’ they will also be removed.
The wp_bbp_converter_translator is not explicitly required, if your site can create this table bbPress uses it as part of the import process, if not it will just use the ‘out of the box’ WordPress database tables. It also gets deleted when resetting the forums. It also relates to the bugs I found yesterday that I am working on fixing and as I stated above I am pretty sure your imports are not using wp_bbp_converter_translator as if you were you wouldn’t have had any stickies.
As to redirects you shouldn’t need that table for those, depending on your old phpBB permalinks
some simple right up to some advanced .htaccess will get you what you want.
A week or so back whilst messing about with splitting and merging topics I happened upon a WordPress feature for 301 redirection of old URL’s to new URL’s. I am yet to try this as it has only popped into my head as I wrote the previous paragraph that this may be something that could work so that imported topics and replies include full redirect support.
So much so I just gave it a whirl, if I store and old topic slug e.g. viewtopic.php?f=3&t=9 I can query on the fly that topics new post ID and 301 redirect to it’s new permalink e.g. phpbb-v3-standard-topic đ
It still doesn’t quite work though due to some URL weirdness presumably with one or a combination of the .php, ? and & characters, I am quite sure we can do something here though đ
I was wondering where can I find the forum ID’s? Trying to use the single forum shortcode, but dunno where the ID’s are. (Wish they were listed in Forum > All Forums via a ID column).
I was able to locate bbp_single_user_details_avatar_size in bbpress/templates/default/bbpress/user-details.php which eventually lead me to the following function that accomplishes what I needed (resizing the avatar):
function my_bbp_change_avatar_size($author_avatar, $topic_id, $size) {
$author_avatar = '';
if ($size == 14) {
$size = 24;
}
if ($size == 80) {
$size = 110;
}
$topic_id = bbp_get_topic_id( $topic_id );
if ( !empty( $topic_id ) ) {
if ( !bbp_is_topic_anonymous( $topic_id ) ) {
$author_avatar = get_avatar( bbp_get_topic_author_id( $topic_id ), $size );
} else {
$author_avatar = get_avatar( get_post_meta( $topic_id, '_bbp_anonymous_email', true ), $size );
}
}
return $author_avatar;
}
/* Add priority (default=10) and number of arguments */
add_filter('bbp_get_topic_author_avatar', 'my_bbp_change_avatar_size', 20, 3);
add_filter('bbp_get_reply_author_avatar', 'my_bbp_change_avatar_size', 20, 3);
add_filter('bbp_get_current_user_avatar', 'my_bbp_change_avatar_size', 20, 3);
Increase avatar size in bbpress
Two days ago i had an update showing for BBpress, and after I updated my forum page stopped showing. I can get to some of the forums via the ‘recent replies and topics’ on the sidebar, but when clicking on the FORUM link from my main menu, this is all that is showing.
Warning: array_merge(): Argument #2 is not an array in /home/content/p3nexnas05_data01/83/2102083/html/wp-content/plugins/bbpress/includes/common/functions.php on line 1344
WP Version – Version 3.9.1
BBpress Version – Version 2.5.4
ok try
Deactivate bbpress tweaks
Dashboard>plugins>bbpress tweaks>deactivate
Go into widgets
Dashboard>appearance>widgets
And look at the bottom of the left hand side. Youâll see an âinactive sidebarâ, with your entries on
Below this is an âinactive widgetsâ
Drag all the entries from the inactive sidebar to the inactive widgets area.
This then allows wordpress to delete the sidebar
I normally log out and in again at this stage â probably not needed, but Iâve never bothered to check
Then basically reverse the above
Re-enable bbpress tweaks
You see the bbpress sidebar returns
Drag the entries back from the inactive widgets area to the sidebar
As soon as you’ve got the site vaguely going again, you need to STOP !!!! YES STOP!!!!!!!!!!
Then take a breath, and create a test site – you cannot continue to develop your site in live, and you need a child theme. So you’ll need to read.
Functions files and child themes – explained !
https://codex.bbpress.org/creating-a-test-site/
Once you have a test site, you can change things there first and then when you are happy put it into live.
The problem is that there are so many themes out there, all of which do ‘clever’ things with layout that it is impossible to give a set of instructions.
However you are using a paid theme with support, so you need to refer to them.
You question should look like
I’ve just installed bbpress forum software, and I want to use this in a page with a sidebar. To do this I need to copy and rename a theme page template that has a sidebar – basically I need to rename it bbpress.php and put it in my themes folder.
Can you either let me know which template file in your theme has a sidebar, or where within an existing template (having copied and renamed it) I would put something like
<?php get_sidebar(); ?>
ok, put the css in your style.css.
then maybe try this code in your functions.php file
add_action( âbbp_theme_after_reply_author_detailsâ, âmentionname_to_bbpressâ );
function mentionname_to_bbpress () {
$user = get_userdata( bbp_get_reply_author_id() );
if ( !empty( $user->user_nicename ) ) {
$user_nicename = $user->user_nicename;
echo '<ul><li><font class=bbp-user-nicename>' ;
echo â@â.$user_nicename.â</font></li></ul>â ;
}
}
Give this a try:
The following page has two links, one an introduction, the next a bit more detailed.
Theme Compatibility
What you need to do is find the template in your theme that you want to use, typically this is page.php but depending on your theme you may have to look at what other templates are included in your theme.
Essentially make a copy of the page.php file and rename it buddypress.php in your theme folder.
there is a little bug on this
that i could fix in the future
whenever i subscribe to a forum
it shows the menu on subscribed forums in the subscriptions area in your profile
(it showed up on the forums area in my buddypress extended profiles)
easy fix is to turn off subscriptions to forums and topics in bbpress forum settings
ill try to find a css way to fix this , if not ILL look up another way
@netweb i might put this into the codex if i fix all the nooks and crannies