I am attempting to write my first plugin. The idea is to display a graphic image for the posters rank. I keep getting this error.
Parse error: parse error, unexpected ‘=’, expecting ‘}’ in /home/brightan/public_html/bbPress/my-plugins/graphic-display-ranks.php on line 82
Here is the function that includes line 82.
function user_rank($id) {
$special_rank = get_special_rank (get_post_author_id());
if ($special_rank>0)
{
switch ($special_rank) {
case 1 :
$display_rank=$path_to_rank_images . $image_for_special_rank_1;
break;
case 2 :
$display_rank=$path_to_rank_images . $image_for_special_rank_2;
break;
}
}
else
{
$rank_count=get_post_count(get_post_author_id());
for ($i=1;$i<$num_ranks;$i++)
{
if ($rank_count<$rank_max[$i])
{$display_rank=$path_to_rank_images . $rank_img[$i];
}
else
{$display_rank="";}
}
}
return $display_rank;
}
What am I not seeing?
If some strings are not translated it’s cause they are missing to be included nto the internationalization functions, and this is a bug, You can open a ticket on trac about untraslated strings so they will be corrects annd included into pot. file.
For info about internationalizion and stuff you can refer to WordPress COdex searching for internationalizazion and localization, the info you will find there arcan be applied to bbpress also.
I have an existent wordpress install. I successfully installed bbpress and have the db pulling from wp install for the users. Now I want to try and wrap my wp around bbpress utilizing my existent header and footer in wordpress.
bbpress – v0.74
wordpress – 2.0.6
I have been searching everywhere looking where to start but alot say I need to set ('WP_BB', true);
in the (bbpress) config.php. In this version of bbpress, it’s not in there. Am I missing something?
Oh nice!! Thanks for the link Michael!
I just manually adjusted the “latest” svn files lastnight, for .80 alpha, which is currently running on my forums now.. I manually implemented the [Resolved] codes back into the files, now I won’t have too!

Thanks again!
spencerp
That works well. The only thing is that people can still manually POST their own data to your root/registration.php file. Just because you don’t link to it anywhere doesn’t mean it’s gone
so1o has already graciously converted the old core code into a plugin. The initial release can be found https://bbpress.org/plugins/topic/16
Hi there,
I just finished the german translation.
Or I assume to, because it doesn’t work at all?! I followed teknoseyir’s steps and uploaded my de_DE.mo
(generated by poEdit) into /bb-includes/languages
, definded BBLANG as de_DE
in my config.php
, but everything is still in english. What’s missing? Running version 0.74.
Greets
Ike
Hahahaha.. I know.. tell me about it lmao..
I told this one guy on GoogleTalk before, I wish someone from Firefox corp, could sneak in as employment for a job in the Microshit Corp building, and some how replace/code in, for the Microshit IE6 upgrade tool.. and have it automatically upgrade them to a latest FF browser(s).. hahaha
spencerp
make it so that when someone is using ie6, it says “upgrade dammit!”
Hahaha.. Ah!! That’s right!! Thanks Trent..
Usually when we talked on GTalk, I was half asleep, and millions of things going on at same time lol..
Thanks again for clarifying this guys..

spencerp
bbPress 0.80 will not have the topic resolution stuff. There will be a plugin to re-implement it for those that want it.
Okay, Is there someone working on one at this present time, or..? I was just wondering, because for those downloading SVN commits of bbPress files.. it would be nice to have this plugin already uploaded and handy..
Especially with a few SVN commits back, that was partly, or totally removed already.. right? Thanks in advanced..

/Me didn’t upload that part of the SVN commit(s), but will apply changes manually if need be..
Well, I could just leave those files alone for my forums, and if any new SVN commits come through, for other code changes within those “specific files”.. I can manually apply the changes.. I just want to keep this for my forums, just incase needed.
spencerp
Nope….bbpress-integration goes in WP and wordpress-integration goes in bbPress! 
Trent
Oh! Okay, the way I heard it, from Trent I believe it was.. that it went in both locations.
Alrighty then, then this changes my whole plan of doing things. YAY!
Well, the theme I made up for the forums now, doesn’t include any WP functional calls, or whatever. But, I’ll release the theme as a normal bbPress theme first. Then, I’ll go back to customizing it like I wanted too!
http://spencerp.net/forums/
Thanks a million mdawaffe (Michael), for clarifying this!

spencerp
–selfish bump–
I coded around this (hack!) to make it work with PHP5, but is anyone seeing the same type of results that I was with PHP5?
I like it, although at the bottom, “fueled with wordpress” that would be fueled with bbpress wouldn’t it?
Thanks Vaelrith.
Yeah, It’s one of those “things” that I need to change up on theme. I’ll fix that up here soon..
Really, I need to fix up the blog theme’s footer too then..
this is a great looking theme, you’ve integrated it nicely with the blog
Are you going to make it a public theme? It’s quite sexy ;p
Thanks skrimpy.
Um, I might release it to the public then, however, at the moment it’s a slopped together type job though sigh. I basically copied/pasted the blog’s style.css informations right into the bbPress stylesheet.. and so forth.
When I get some more time here, hopefully soon, I’ll make a public release of the theme.
As I’m sure others running the WordPress Gathering theme, might want to have it..

Thanks for the nice comments..

spencerp
I’ve cranked out a trac ticket for this, though it’s not clear if the Akismet code is part of the core or not.
this is a great looking theme, you’ve integrated it nicely with the blog
Are you going to make it a public theme? It’s quite sexy ;p
If you look at the top of the default theme’s header (/bb-templates/header.php) you will see:
<link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" />
<?php global $bb_locale; if ( ('rtl' == $bb_locale->text_direction) ) : ?>
<link rel="stylesheet" href="<?php bb_stylesheet_uri( 'rtl' ); ?>" type="text/css" />
<?php endif; ?>
Currently, you have a file called he.mo (is that the right name for Hebrew?) in bbPress’ languages directory.
You should also put a file called he.php in that directory that has the following content.
<?php
$text_direction = 'rtl';
?>
Then, bbPress will know that your language is RTL and should include both the style.css and the style-rtl.css automatically.
But, you’re right. There are a bunch of CSS bugs it looks like. I’ll see what I can do to fix them.
Hi mdawaffe – Thanks for the fast reply.
If I understand you correctly – what you offer is to paste all the content of style-rtl.css, into the file style.css (in the end of it).
Well, I just tried it, and seems that the style.css has some “design conflicts” in it (look at the forum header for example)…
you can see the results at:
http://www.biostatistics.co.il/forums/
Hope you (or someone else) could help
,
Tal.
Yes – that’s a great idea
There’s a plugin for images: https://bbpress.org/plugins/topic/5?replies=14
The <blockquote>
tag is allowed by default.
I’m still in the process of doing things with it, so, if you find things quirky, please be patient…
Anyway, I tried to get the blog’s theme around the forums themselves. I used the blog’s imagery, blog’s style.css codes right in the original bbPress stylesheet.. and so forth. I also used the WordPress.org/support/ user profile layout basically..
Well, what you think?
http://spencerp.net/forums/
Be gentle!!
spencerp
Nevermind, I took out the path to the wp-blog-header.php file now, and adjusted my theme accordingly.
If someone wants to try and figure it out though, feel free.. Might be useful later on sometime..

spencerp