Hi,
Heres my first plugin which was pretty much copied from the Avatar plugin, but hey, now I can contribute my 2 cents
(Thanks to the guy who made that too)
To install you must open functions.php (in bb-includes, line 1388) and add:
'sig' => array(0, __('Signature'))
to the end (before last closing bracket)
This is the code:
<?php
/*
Plugin Name: Signature
Author: veb
Version: 1.0
*/
function post_sig() { // function to use in page php to get the sig
if ( get_sig( get_post_author_id() ) )
echo get_sig( get_post_author_id() );
}
function get_sig ( $id ) { //function to return sig lfrom database
global $bbdb, $bb_current_user;
$user = bb_get_user( $id );
$profile_info_keys = get_profile_info_keys();
if ( $id && false !== $user )
if ( is_array( $profile_info_keys ) )
foreach ( $profile_info_keys as $key => $label ) {
if ( 'sig' == $key )
return $user->$key;
}
}
?>
Save as bb-signature.php in my-plugins.
Have fun
Table creation is automatic. It should install if you navigate to your domain/pm.php or put the message code on your front page.
Hehe … I think I found the bug. You’ve said, you’re using the latest Trac-Version of bbPress?
Then I think you have to change line 48 of my plugin from
add_action('init', 'online_update');
to
add_action('bb_init', 'online_update');
then … it should work! (for me it did)
Hmm it was part of a larger plugin code, took the part out and put it in the plugins folder and it worked here aswell. Problem must be elswhere with the other plugin code.
This results in a new question. My plugin has this code and works:
<?php
// Get Portal topics
function get_portal_topics() {
global $bbdb;
$pforum_id = 1;
$number_of_topics = 10;
return $bbdb->get_results("SELECT * FROM $bbdb->topics WHERE forum_id = $pforum_id ORDER BY topic_time DESC LIMIT 0,$number_of_topics");
}
?>
But I also want to pull the 1 and the 10 from the database $pforum_id = 1; and $number_of_topics = 10;
are now manually done…
How to do this then?
Ehm … I dont know what’s wrong, I put your code on my site … and it worked. Do all the other plugin-functions work?
changed some things it’s now:
function get_portal_topics() {
global $bbdb, $bb_table_prefix;
return $bbdb->get_results("SELECT * FROM $bbdb->topics WHERE forum_id = 1 ORDER BY topic_time DESC LIMIT 0,10");
}
Still same error when calling using:
<?php $portal_topics = get_portal_topics(); ?>
<?php foreach($portal_topics as $topic) :
Etc etc
Error:
Fatal error: Call to undefined function get_portal_topics()
maybe using $bbdb->get_results()
instead of $bbdb->query()
just an idea…
Hi,
Welltried to make a plugin, but it aint working, why not?
Plugin code:
<?php
function get_portal_topics () {
global $bbdb;
return $bbdb->query("SELECT * FROM $bbdb->topics WHERE forum_id = 1 ORDER BY topic_time DESC LIMIT 0,10");
}
?>
This has to give a list I need, but turning it into my template it get this error:
Warning: Invalid argument supplied for foreach() in /bbpress/bb-templates/portal-page.php on line 33
Template code:
<?php $portal_topics = get_portal_topics() ?>
<?php foreach($portal_topics as $topic) :
$portal_topic_posts = get_thread( $topic->topic_id); ?>
<h1><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></h1>
<?php printf(__('%1$s - <a href="%2$s">%3$s</a>'), get_topic_time(), get_user_profile_link($topic->topic_poster), get_topic_author()) ?><br/>
<?php echo $portal_topic_posts[0]->post_text; ?>
<div align="right"><?php printf(__('<a href="%1$s">Comments (%2$s)</a>'), get_topic_last_post_link(), get_topic_posts()) ?></div><br/>
<?php endforeach; ?>
Or my plugin is all wrong, or how I call it…. or both 
Thx
Cant edit my message 
I mean the tables of all plugins i installed, are not created.
I dont understand why because i thought that is automatic.
That is actually the way it is supposed to be with this template and the default template. It can be changed around by changing the code in front-page.php. I moved it inside for my site, but that is the way I believe it is supposed to be.
Trent
Should it be an exact copy oder do you just want to have the same structure ?
All you would have to do is write menue to the header – put the hottags part from the side to the top – and for the rest – .. that’s how i made it – put an extra div in every php file that gets loaded like forums or topic – it is a bit tricky to find all places where u have to add the div – but i don’t know much about php and i managed it (if the code of my first bbPress template wouldn’t be so messy I’d say u could have a look at how I done it ..
)
was is that what u wanted to know about how to do it ?
if u still need someone to do it for u tell me – i ll do it if it wont get postet and i can find some time for it 
greetings
Also, while looking at this, overflow-x
in the style.css is not valid. It’s an IE specific extension. I moved that line overflow-x: hidden;
from #front-page #hottags
in the style.css to an IE conditional in header.php like this:
<!--[if IE 6]>
<style type="text/css">
#front-page #hottags { overflow-x: hidden; }
</style>
<![endif]-->
That code was placed right after this:
<link rel="stylesheet" href="<?php bb_stylesheet_uri( 'rtl' ); ?>" type="text/css" />
<?php endif; ?>
CSS validates now, and everything appears to still work for IE and FF.
Haha … yes, you deleted me. Donno why I didn’t post yet. I’ll register again sometime … 
btw, this topic is a bit wrong i think, the bug has (i think so) nothing to do with the translation. i cleared my cache in Flock and it worked there, too.
Translating bbPress is a bit difficult … but anyway, I’m almost done .. about 30% left to translate
Oh dang man, did you make a login on my forums and I delete you? I recognize that URL. If you want to remake, try making a post so I know that you’re not a spam bot
Hey 
I started translating bbPress to German and maybe I found a bug, but … at the moment I don’t know how it comes and how to fix it.
All ajax features (tags, favorites …) are no longer working. Thy act as if there is no javascript enabled. Also some of the functions wont work anymore (can’t add/removed favorites …) …
Has somebody any idea why this happens? … Any idea to fix it??
Link to Forum: http://la-school.com/bbpress/
Edit:
Sorry folks … this must have something to do with Flock … in FF it works fine, even in german -.-“
I fixed it quite simple, just add this to your stylesheet:
*html #front-page #discussions {
float: right;
margin-left: 0;
width: 590px;
display: inline;
}
I think I found why mine is different. in bb-templates/header.php, the body tag looks like this when installed:
<body id="<?php bb_location(); ?>">
I modified mine at some point to add some javascript onload stuff, and when I removed that, I removed the id tag altogether (inadvertently.)
so, my body tag now is just <body>
and all my pages look the same (index.php, forum.php, etc.)
I think that was a side effect of playing with the header template, but the tags are across the top instead of down the left side. When I reinsert that bb_location, my display is messed up in IE6 too. Now, to just clear that div and make it work in IE. Then I can put that back to normal. I guess the answer to my question then is that the hot tags are supposed to be down the left side in a 150px wide div.
Here is a hacked version, I have tested it for Chinese and Japanese tags and it works.Basically, it just excludes mutibyte chars(x80-xff) from the stopdata.
function sanitize_with_dashes( $text ) {
$text = strip_tags($text);
$text = remove_accents($text);
$text = strtolower($text);
$text = preg_replace(‘/&(^x80-xff)+?;/’, ”, $text); // kill entities
$text = preg_replace(‘/[^a-z0-9×80-xff _-]/’, ”, $text);
$text = preg_replace(‘/s+/’, ‘-‘, $text);
$text = preg_replace(array(‘|-+|’, ‘|_+|’), array(‘-‘, ‘_’), $text); // Kill the repeats
return $text;
}
Hahaha.. I just seen that crap display problem the other day, and was trying to fix it, but.. like normal, Microshit IE6 is just that, a piece of crap. sigh. I’ll keep working at it though..

spencerp
Anonymous User 96400Inactive
this bug is caused by the function is_tag()
, which both utw and bbpress use, so what i just did right now was search through the utw-plugin-folder with dreamweaver for that tag, found it three times and changed it to is_utwtag()
. no idea if i can just do that without problems appearing later but for now it seems to work.
I’ve installed bbpress with wordpress integration, the database integration works correctly thanks your guide. But… when i try to see my posts i have this error:
(
Parse error: syntax error, unexpected $end in /home/mhd-01/www.alessandropagano.net/htdocs/blog/wp-includes/gettext.php(307) : eval()’d code on line 1
1 post)
you can try to show this at http://www.alessandropagano.net/blog/forum/
I’ve heard that this could be related with language settings… but my config.php have the default setting (define(‘BBLANG’, ”)
Thanks in advance, i hope to hear you soon!
Create a file called test.php and put in it
<?php
phpinfo();
?>
If you get a huge page with something on it with loads of information then you have windows installed. Just looking at your 404 pages show that you have a windows server – low change of having php more likely to be asp.
You need to change all links for bbpress and put bbpress in front of them, so they look like
^bbpress/tags
etc…. and removed
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /bbpress
as you can only ever have one of those in an .htaccess file, and connect it to your wordpress one as well. If you get all of that :X
Ryan, I stand corrected. I have bbpress-post which makes the topics unresolved by default, but any topic created in the forum is marked as mu (not support question). That is not telling you anything new beause you already knew this 
I have created an enhancement ticket in TRAC. Thanks for pointing that out.
Trent