Search Results for 'bbpress'
-
AuthorSearch Results
-
February 3, 2011 at 7:45 pm #98996
csabamarosi
MemberAww man, sorry, I made a typo – now everything’s fine, thanks a lot!
February 3, 2011 at 7:40 pm #104324In reply to: bbpress AND buddypress
jwindhall
MemberI’ve used “an existing installation”. Am I inccorect in saying that the above would only give me the default ONE BIG FORUM and not the full bbpress?
February 3, 2011 at 7:40 pm #99224In reply to: bbpress AND buddypress
jwindhall
MemberI’ve used “an existing installation”. Am I inccorect in saying that the above would only give me the default ONE BIG FORUM and not the full bbpress?
February 3, 2011 at 7:38 pm #104280In reply to: WPMimic V.1
Vietson
Member@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.
February 3, 2011 at 7:38 pm #99180In reply to: WPMimic V.1
Vietson
Member@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.
February 3, 2011 at 7:31 pm #104095thebreiflabb
MemberIt 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.
February 3, 2011 at 7:31 pm #98995thebreiflabb
MemberIt 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.
February 3, 2011 at 7:30 pm #37371Topic: Integrating WordPress THEME ONLY with bbPress
in forum Themesdhcrusoe
MemberGreetings 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
February 3, 2011 at 7:25 pm #104094csabamarosi
MemberI’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.
February 3, 2011 at 7:25 pm #98994csabamarosi
MemberI’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.
February 3, 2011 at 7:18 pm #104093thebreiflabb
MemberWhat errors does it give you?
February 3, 2011 at 7:18 pm #98993thebreiflabb
MemberWhat errors does it give you?
February 3, 2011 at 7:05 pm #104092csabamarosi
MemberWell, 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.
February 3, 2011 at 7:05 pm #98992csabamarosi
MemberWell, 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.
February 3, 2011 at 6:37 pm #104091thebreiflabb
MemberIf 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.
February 3, 2011 at 6:37 pm #98991thebreiflabb
MemberIf 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.
February 3, 2011 at 6:04 pm #104275In reply to: Add custom bbcode tags into BBcode lite
thebreiflabb
MemberI 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.
February 3, 2011 at 6:04 pm #99175In reply to: Add custom bbcode tags into BBcode lite
thebreiflabb
MemberI 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.
February 3, 2011 at 5:18 pm #104090csabamarosi
MemberThere is something wrong with your site, it says fatal error so the plugin is kinda unreachable.
February 3, 2011 at 5:18 pm #98990csabamarosi
MemberThere is something wrong with your site, it says fatal error so the plugin is kinda unreachable.
February 3, 2011 at 2:40 pm #104279In reply to: WPMimic V.1
citizenkeith
ParticipantIn fact, bbPress is becoming a WordPress plugin. There has been a LOT of development in the last 4 months. More info here:
February 3, 2011 at 2:40 pm #99179In reply to: WPMimic V.1
citizenkeith
ParticipantIn fact, bbPress is becoming a WordPress plugin. There has been a LOT of development in the last 4 months. More info here:
February 3, 2011 at 1:33 pm #104323In reply to: bbpress AND buddypress
intimez
ParticipantFebruary 3, 2011 at 1:33 pm #99223In reply to: bbpress AND buddypress
intimez
ParticipantFebruary 3, 2011 at 1:04 pm #37368Topic: Shared avatars from WordPress to bbpress
in forum Pluginsrazy69
MemberHi,
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
-
AuthorSearch Results