@citizenkeith – thanks for the link. I started reading that thread a few days ago and find that the development kinda stop halfway. Although initially the progress is quite strong then it began to die down.
Anyhow, WPMimic v.1 is ready. Visit: http://vietsonnguyen.com/beta/bbpress/
Let me know how it in IE since I have no access to IE.
@citizenkeith – thanks for the link. I started reading that thread a few days ago and find that the development kinda stop halfway. Although initially the progress is quite strong then it began to die down.
Anyhow, WPMimic v.1 is ready. Visit: http://vietsonnguyen.com/beta/bbpress/
Let me know how it in IE since I have no access to IE.
It works perfectly for me, though you can try with some debugging, for example try
echo $counter;
inside the foreach loop to see if you have any loop at all. Check the source code if you have anything there.
It works perfectly for me, though you can try with some debugging, for example try
echo $counter;
inside the foreach loop to see if you have any loop at all. Check the source code if you have anything there.
Greetings all,
Ok, so conceptually, bbPress seems great. However, I’ve used an older version, and know how tentative it can be.
As I can’t find any readily-accessible information about this, I’m asking what might be one of the most frequent questions around here.
Can someone please point out documentation that explains how to integrate WordPress with bbPress? I’m looking to integrate the theme and navigation ONLY – nothing else (since our WP site doesn’t require logins, etc).
Thanks for any info,
–Dave
I’ve figured out that there were some PHP configuration issues with my XAMPP installation, so the error messages are gone now. Sad thing is, your code doesn’t output anything at all.
I’ve figured out that there were some PHP configuration issues with my XAMPP installation, so the error messages are gone now. Sad thing is, your code doesn’t output anything at all.
What errors does it give you?
What errors does it give you?
Well, at first I was trying to do something very similar, but including bb-load.php always gives me errors. Deep integration and all database/cookie connections are working fine, so I’m pretty confused.
Well, at first I was trying to do something very similar, but including bb-load.php always gives me errors. Deep integration and all database/cookie connections are working fine, so I’m pretty confused.
If your wordpress and bbpress share the same database you can simply edit sidebar.php
On the top of the file add:
<?php require_once(ABSPATH."/forum/bb-load.php"); ?>
This will give you access to the bbpress functions. (Edit to the path of your bbpress installation)
Then where you are going to output your latest posts add this:
<?php
global $wpdb;
$query = "SELECT * FROM bbp_topics WHERE topic_status='0' ORDER BY topic_time DESC LIMIT 6";
$topics = $wpdb->get_results($query);
$counter = 0;
?>
This will find the latest posts, I do it this way so it won’t show the same topic several times if many posts have been made in the same topic. Also edit bbp_ to your bbpress db prefix.
Finally to output simply add something similar to this:
<div id="latest-posts" class="border">
<h2>Latest forum posts</h2>
<?php foreach($topics as $topic) : ?>
<div class="<?php echo $counter % 2 ? "gray" : "white"; ?>"><a href="<?php topic_last_post_link($topic->topic_id); ?>"><?php topic_title($post->topic_id); ?></a></div>
<?php $counter++; ?>
<?php endforeach; ?>
</div>
Edit to your preference on html and css.
If your wordpress and bbpress share the same database you can simply edit sidebar.php
On the top of the file add:
<?php require_once(ABSPATH."/forum/bb-load.php"); ?>
This will give you access to the bbpress functions. (Edit to the path of your bbpress installation)
Then where you are going to output your latest posts add this:
<?php
global $wpdb;
$query = "SELECT * FROM bbp_topics WHERE topic_status='0' ORDER BY topic_time DESC LIMIT 6";
$topics = $wpdb->get_results($query);
$counter = 0;
?>
This will find the latest posts, I do it this way so it won’t show the same topic several times if many posts have been made in the same topic. Also edit bbp_ to your bbpress db prefix.
Finally to output simply add something similar to this:
<div id="latest-posts" class="border">
<h2>Latest forum posts</h2>
<?php foreach($topics as $topic) : ?>
<div class="<?php echo $counter % 2 ? "gray" : "white"; ?>"><a href="<?php topic_last_post_link($topic->topic_id); ?>"><?php topic_title($post->topic_id); ?></a></div>
<?php $counter++; ?>
<?php endforeach; ?>
</div>
Edit to your preference on html and css.
I made it work in a way using this:
<?php
/*
Plugin Name: BBTexCode
Description: [tex][/tex] to image
Plugin URI:
Author: Sondre Kjøniksen
Version: 1.00
*/
function bb_tex_replace( $text ) {
$text = preg_replace('/[tex](.*?)[/tex]/ie', "'<img src="/cgi-bin/mathtex.cgi?'.rawurlencode('$1').'" align="middle" />'", $text);
return $text;
}
add_filter('post_text', 'bb_tex_replace');
?>
Though I still have a problem, it seems bbpress strips backslashes when adding the post to the DB. Is it possible to do so bbpress skips stripping backslashes from [tex][/tex] tags? At the moment it works if I write double backslashes like: [tex]\LaTeX \frac12[/tex] But it is kind of annyoing having to type double every time.
I made it work in a way using this:
<?php
/*
Plugin Name: BBTexCode
Description: [tex][/tex] to image
Plugin URI:
Author: Sondre Kjøniksen
Version: 1.00
*/
function bb_tex_replace( $text ) {
$text = preg_replace('/[tex](.*?)[/tex]/ie', "'<img src="/cgi-bin/mathtex.cgi?'.rawurlencode('$1').'" align="middle" />'", $text);
return $text;
}
add_filter('post_text', 'bb_tex_replace');
?>
Though I still have a problem, it seems bbpress strips backslashes when adding the post to the DB. Is it possible to do so bbpress skips stripping backslashes from [tex][/tex] tags? At the moment it works if I write double backslashes like: [tex]\LaTeX \frac12[/tex] But it is kind of annyoing having to type double every time.
There is something wrong with your site, it says fatal error so the plugin is kinda unreachable.
There is something wrong with your site, it says fatal error so the plugin is kinda unreachable.
In fact, bbPress is becoming a WordPress plugin. There has been a LOT of development in the last 4 months. More info here:
https://bbpress.org/forums/topic/bbpress-plugin-updates
In fact, bbPress is becoming a WordPress plugin. There has been a LOT of development in the last 4 months. More info here:
https://bbpress.org/forums/topic/bbpress-plugin-updates
Hi,
I add a bbpress forum to my wordpress site, i share account and other, but i want to share wordpress avatar.
I use this plugin in wordpress “Profile Pic” v.0.9.2
How can i share it?
Thanks
This is not turning out to be a very fruitful venture (installing bbpress and getting it to look like my WP site). Thanks !!!!!!!!!
Mark Clark
http://www.6passengervehicleshq.com
This is not turning out to be a very fruitful venture (installing bbpress and getting it to look like my WP site). Thanks !!!!!!!!!
Mark Clark
http://www.6passengervehicleshq.com
Seems more than likely that this has been covered over and over, though I can not find an answer.
I need to install both Buddy press and a full installation of bbpress (not just the push and play version via the WordPress admin panel.) Why? I need more then one catch forum, or subform… Or whatever you’d like to call it. The one big forum doesn’t work for me.
I’ve been able to get them installed just fine, I just can’t get them to honro each other. the user comes to the home page and logs into buddypress. The bbpress install does not honor this account. How do do this?