A wonderful plugin that works great so far in my testing
Thanks Milan!
I think i have found a Glitch,
When i log-in and log-out the redirecting script isn’t working correctly at WP MultiSite installs.
It copy-/paste the root directory like this.
(this is after i logged in from the home-page)
http://localhost.sites/example.nl/members/example.nl/members/
(this is my home-page)
http://localhost.sites/example.nl/members/
I think it has something to do with this code: bbp_logged_in_redirect();
Nobody else got this problem on WP Multisite installs?
You have to follow the loop and delete them from multiple files.
Delete this code: <?php bbp_breadcrumb(); ?> (from all files)
If you don’t understand how it works you can also hide this menu by CSS.
Add the following code at the bottom of the /css/bbpress.css stylesheet.
.bbp-breadcrumb { display: none!important; }
It will hide this menu on every page.
EdParticipant
thanks for the reply. I’ve been messing with the one i’ve found here:
ForumConverter
but I’ve not been able to get it working yet. it imports most of the data, but some fields are broken.
I hope either the owner of that, or someone else will come out with a full release soon. BBv2 looks great – but without data to import, I can’t play
We need to make some beer donation to Vietson and ask upgrade to 2.0
We need to make some beer donation to Vietson and ask upgrade to 2.0
Maybe because I’m at a WP MultiSite ?
My homepage (first website) is a slimmed version of this theme.
http://store.informationarchitects.jp/product/ia³-template
I only use the Media Queries (menu) from that template but but it has its own functions.php its not Twenty Ten or something.
Maybe some Avatar calling code is missing that Twenty Ten has in the functions.php?
And my forum (second website) + Multi site, is used as a Child Theme to the first website.
If i create a page in my second website i can still use the template files from the first website like a contact page (template) so that would make me think that the Child Theme setup is down correctly.
===
strange thing is that everything works with this code.
<?php bbp_topic_author_link( array( 'sep' => '
', 'size' => '120' ) ); ?>
But not with this one.
<?php bbp_reply_author_avatar(array('size' => '80')); ?>
I don’t want the author link i only want the Avatar and create my author link at some other position.
WOW!
This is a stunning feature!
I like all those little sexy features, it can make your forum stand out and become a little eye-catcher.
Thank you so much for this.
Btw: someone should make a blog (category) about all those kinda features, i think lots of people would love to do this.
—
@JJJ
Yeah i see it now you said so, <?php bbp_reply_postion(); ?> does the numbering
I am pretty sure there is a function for getting the reply position. If not, one can be created using code from the bbp_get_reply_url() function as an example.
Those functions are spread throughout a lot of the bbpress files. There is no single place that you remove them.
to help out a little, the breadcrumbs are output on the theme via the function.
<?php bbp_breadcrumb(); ?>
If you remove that function from all the template files then the breadcrumbs are gone. You can do that for admin notices as well as forum notices.
I would like to get my theme to look like this:
http://imageshack.us/photo/my-images/836/unledir.jpg/
Instead of looking like this:
http://imageshack.us/photo/my-images/822/unledwc.jpg/
Hard to explain, but hope the picture does justice
Well I gave it a shot using the following code, but for some reason the only user that shows up is my admin account. I’m guessing this has nothing to do with bbpress, but more wp. I think I am missing something somewhere, and will try to find a solution sometime.
*code I was using to add author box to topics
add_action( 'init', 'my_add_author_to_topics' );
function my_add_author_to_topics() {
add_post_type_support( 'topic', 'author' );
}
Just taking a shot at this:
I am guessing that you are talking about the single-topic page which displays the first topic followed by all the replies.
If this is the case:
Add the following line to your functions.php file
add_filter( 'bbp_show_lead_topic', '__return_true' );
What this is going to do is separate out the lead topic from all the replies. It creates a great separation where you can then style the first topic completely different than the replies. Pretty cool actually.
*Make sure to use the default theme to see this in action. You don’t have any of the needed logic in your code above, so your code wont output the separation. You can find the needed logic in the template files.
This is a lot more elegant than counters and it’s built in.
Hope it helps. (there are tons of cool hidden ‘secrets’ like this within the code, thnx JJ!)
I would probably start by finding a good heat map plugin which creates a widget for output. I would then modify the plugin to use topic_tags instead of post_tags. Then it would be a matter of placing the widget into a sidebar and your good to go.
*I am not currently aware of a heat map for bbpress, but modifying one for blog post topics should be just a matter of changing a few lines of code.
== Installation ==
1. Place the ‘bbpress’ folder in your ‘/wp-content/plugins/’ directory.
2. Activate bbPress.
3. Visit ‘Settings > Forums’ and adjust your configuration.
4. Create some forums.
5. View your site.
6. Adjust the CSS of your theme as needed, to make everything pretty.
You have to do plenty more than these steps if you want to install and have some forums up and running on your blog.
I think it’s a bit of a cheat to suggest this is so easy to complete. Absolutely hellish in my experience. 2 days in and still nothing.
You make no mention of setting up pages with the shortcode tags, no mention about issues with sign up conflicts and documentation is non existent if you want to add it to wordpress.
Is this another case of tech people making a great system and then just forgetting that people have to use it?
Where are the wordpress installation instructions?
Please someone just tell me if any exist as I’ll go for another system if not.
Bob
sorry about the garbled code above. I tried to edit it so that it shows up clean, but bbpress won’t let me.
Investigating further, this seems to be a known memory leak in PHP:
http://paul-m-jones.com/archives/262
I see the culprit is in the importer:
<br />
$topics_query = new BB_Query( 'topic', array(<br />
'forum_id' => $forum->forum_id,<br />
'per_page' => -1,<br />
'topic_status' => 'all',<br />
'order_by' => 'topic_start_time',<br />
'order' => 'ASC'<br />
) );<br />
Instead, it should be something like:
<br />
$page=0;<br />
$per_page=50;<br />
$topics_query = new BB_Query( 'topic', array(<br />
'forum_id' => $forum->forum_id,<br />
'per_page' => $per_page,<br />
'page' => $page,<br />
'topic_status' => 'all',<br />
'order_by' => 'topic_start_time',<br />
'order' => 'ASC'<br />
) );<br />
Strange thing is that even when you step through the pages it still doesn’t free the memory. You can test it with:
while (isset($topics_query->results)) {
echo "<p>Mem usage=" . memory_get_usage(true)/1024/1024 . "</p>";
//echo "
"; print_r($topics_query->query); echo "
";
//echo "<p>" . $topics_query->results[0] . "</p>";
$page++;
$topics_query->query = $page;
//thought following might help, but doesn't
//unset($topics_query->results);
$topics_query->query();
}
exit;
I found the solution for this problem. The root cause is the qtranslate plugin which only displays topics marked with <!–:en–> and <!–:–>.
Changing the post_content for all topics fixed my problem. Here’s the SQL code I used to fix this.
UPDATE wp_posts
SET post_content = CONCAT(‘<!–:en–>’,post_content,'<!–:–><!–:nl–>’,post_content,'<!–:–>’)
WHERE post_type = “topic”
AND post_content NOT LIKE “%:en%”
This is my forum layout.
<div id="wrapper">
<header> header stuff </header>
<div id=”content”>
<aside> Topic of Forum info (like a sidebar) </aside>
<section>
<header><h1>Topic title</h1></header>
<hgroup class=”reply-ID” id=”-1″> reply author stuff </hgroup>
<article class=”reply-ID” id=”-1″> reply content </article>
<hgroup class=”reply-ID” id=”-2″> reply author stuff </hgroup>
<article class=”reply-ID” id=”-2″> reply content </article>
<–! repeats of the above code –>
</section>
</div><!– end #content –>
<footer> footer stuff </footer>
</div><!– end #wrapper –>
It would be very helpful to have an (extra) counter on my first <hgroup> and <article> pair of tags. This way i could only style the starting topic content and make it stand out, because the first author always-/most of the time has a question and i would like to make it stand out more from the other replies.
I don’t want a topic or forum ID because those are too unique.
I need something that starts counting by Zero or One on every new topic like a Reply counter 1, 2, 3, 4, 5, I could add them to an ID or Class (shown above) to make it unique.
Something like a WP-comments counter.
You’re right, BJ, and I removed my additional call that I’d placed in there, and it still works. I’d LOVE a tutorial…once I get this finally figured out and down perhaps I’ll try and write one.
I was just getting comfortable using BBPress 1.0 and now it’s a whole new game. 
I already much prefer the plugin though, if only for the unified backend and easier integration of users.
1. How can I show something after the last post?!? You know that the last post has no id to use that. I wanna show the Closed Topic messege after the last post but it come under topic title
http://up8.iranblog.com/images/61frq7cfblw4039p3jvv.png the code is this:
<div id="entry">
<h2<?php topic_class( 'topictitle' ); ?>>
<span id="topic_labels"><?php bb_topic_labels(); ?></span><?php topic_title(); ?> <span id="topic_posts">(<?php topic_posts_link(); ?>)</span>
</h2>
<?php do_action('under_title', ''); ?>
<?php if ($posts) : ?><?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
<?php bb_post_template(); ?>
<?php endforeach; endif; ?>
<?php if ( topic_is_open( $bb_post->topic_id ) ) : ?>
<?php if(bb_is_user_logged_in()) { echo post_form();} ?>
<?php else : ?>
<div id="closed">
<h1>موضوع قفل شدهاست</h1>
<p>شما نمیتوانید به موضوعهای قفلشده پاسخی دهید.</p>
</div>
<?php endif; ?>
</div>
2. How can I fix this problem? http://up8.iranblog.com/images/6z4otkp479qzah6tr5.png
I’ve installed a spoiler plugin which uses html tags as bbpress does not accept shortcodes within posts. The spoiler plugin is called enhanced-ss.
The plugin works fine within WordPress Posts but does not seem to work within bbpress posts. I am using the latest wordpress version, buddypress version and bbpress 2.0.
The code is available here –> http://pastebin.com/AkH7eNJ4
Is there a reason why it does not display within a bbpress post?
I want to use ‘bbPress Topics list’ widget, outside widget.
I’d very happy that someone let me know the code to use it outside widget.
Thank you in advance.
@ Clicknathan,
Did you copy-/paste all files from the plugins (bbPress folder) to your Child Theme folder?
If you did so, you have the functions.php file from bbPress inside the Child Theme folder and i have been looking inside that functions.php file and at line: 120 there is already a code that says:
public function add_theme_support() {
add_theme_support( 'bbpress' );
}
Thats why i didn’t added the add_theme_support code.
Everything seems to work for me but i really have no idea if i’m doing it correct.
If somebody has a tutorial website that explains it better (how to setup a Child Theme bbPRess) post it here.
I would like to learn it the right way, not that i’m telling other people wrong info.