Okay I added echo and it works <?php echo bb_get_avatar( $topic->topic_last_poster, '16');?>
16 = is the size (in px) of the avatar you want for people who want to know.
Thank you!
bb_get_avatar( $topic->topic_last_poster, '16')
http://bbpress.org/plugins/topic/user-photo-for-bbpress/
Hi, I’m trying to display the avatar of the person who started the forum topic on the mainpage, in the place of the last posters name, in the latest discussions area.
I’ve tried using the way it displays in profiles
<?php if ( $avatar = bb_get_avatar( $member->ID ) ) : ?>
<div id=”useravatar”><?php echo $avatar; ?></div>
<?php unset($avatar); endif; ?>
It does not work. I’ve tried pulling it like in a post
<?php post_author_avatar_link(); ?>
Nothing. One more
<?php
if (function_exists(‘bb_get_photo’))
bb_get_photo($user->ID);
?>
No joy there either. I tried using this function
<img src=”<?php echo USERPHOTO_URL . $profileuser->userphoto_image_file . “?” . rand() ?>” alt=”<?php _e(“Full size image”, ‘user-photo’); ?>” />
and it almost does it…
http://localhost.wordpress.com/wp-content/uploads/userphoto/?29089
but as you can see it does not grab the users avatar, (1.jpg) although it’s pointing to the right place.
has anyone ever gotten avatars showing on the mainpage with the user photo plugin? I am aware other plugins exist for avatars but they do not suit my needs, apart from this one hickup, user photo is the best for wordpress/bbpress shared avatars. The guy who made it has long since left
Maybe I wasn’t clear – basically I have a script that I wrote myself that I have put in header.php so that it gets loaded on every page. However, this script needs the jquery script to load as well or it won’t work. BBPress has jquery built-in but it only loads it on certain pages. I wanted to see what defines where the jquery script that is built into BBpress is called…
But I can use this technique to do the same thing, just the opposite way around, so thanks for the help! I did it like this:
<?php if ( in_array( bb_get_location(), array( 'login-page', 'register-page' ) ) ) echo "<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js'></script>n"; ?>
I tried to use bb_enqueue_script( 'jquery' ); in there but couldn’t get that to work!
@ Gautam… when you are making this kind of plugin?
Can you give me the time frame?
And not.. I’m not one of the pagalguy.com
For everyone having trouble with special characters in forum names and descriptions,
FIND (on or around lines 193 and 194 of the original script)
$forum_name = $row;
$forum_desc = $row;
CHANGE TO (adding the addslashes() function)
$forum_name = addslashes($row);
$forum_desc = addslashes($row);
And that should resolve most of the complaints I’ve seen here about the conversion failing.
There’s no plugin for the time being, but it can be made by doing this:
1) Create an admin page where the admin puts all the ads and keywords
2) preg_match the post_text for the keywords and display the ad.
BTW, are you the one of pagalguy.com?
i-badhani is 100% correct.
My needs have been met by plugins, for the most part, but I am in dire straits when it comes to themes.
I am not able to code fluently, so I hack away at existing themes. Finally found one I like but it is not compatible with IE6 (which some people still use)…
Would LOVE to have an easily tweaked bbpress theme similar to THESIS for WP.
Saving that, an easily-tweaked theme, period.
dear developers,
i need a text advertisement script or plugin.. where i can set some keywords where sponsors want to advertise… suppose if a sponsor want to advertise his site “www.example.org” on a keyword of example .. then every user who write a post and use the keywords example in his post then automatically this keyword (example) make hyperlink with my advertiser’s site..
same as link example
I hope you’ll understand what i want..
Is there any script or plugin exist?
thanks in advance
actually, i’m using it for build a portal so it just for internal office use so there’s no link for outsider who wanna look. 
i’m using IIS not apache…is there any relation with that? I guess not 
ouw, and when i did step #3 and #4, the last 3 didn’t lock as it should be…even i repeated again…
huff…almost frustrating just for this..
Ah neat!
Adding stuff to the standard registration would probably mean the trick wouldn’t work for too long – Invisible Defender used a similar trick but eventually spammers updated their software to bypass the extra fields:
https://wordpress.org/extend/plugins/invisible-defender/
Would love to see this code as a plugin!!
nice theme
http://i40.tinypic.com/8wfhqx.jpg <– look at this image some css problem i think.
im using firefox 3.
Hello,
We’ve been using bbPress for a couple of weeks now, and have been getting a couple dozen automated accounts each day. Now it appears they are coming alive adding spam posts to the forums.
We’re using the instant-password plugin because we don’t want our users to have to wait for e-mail, and I personally despise captcha (see http://www.stopcaptcha.com).
After cleaning out the bot accounts, here is what we did to stop it:
Our registration page: http://www.checkfront.com/community/register.php
Using CSS, we hid the occupation and interest fields (don’t need them). Spam bots will often fill out all the forum fields on a page. If a new registration comes in with one of those filled, we discard it.
We also added a hidden field (potpan) that gets filled with a unique id generated on each page load via javascript. If the potpan id doesn’t match the one in the session, we discard it.
Since we put it in place yesterday, it’s blocked all 35 automated registrations.
If anyone is using the instant-password plug in and would like the modified code, let me know and will zip it up. Perhaps this functionality could make its way into the standard registration.
Cheers,
-J
Thanks buddy! I’ll check it out asap!
Actually, it looks like bb_topic_labels prints both of them on my install… but I’m on 0.9.x:
<div class="posttitle"><?php echo $sticky_label;?><?php bb_topic_labels(); ?><a>"><?php topic_title(); ?></a> <span class="postinfo"> by <?php $topic_author = get_topic_author(); ?> <a>topic_poster ) )) ?>"><?php echo($topic_author) ?></a> <?php echo get_topic_start_time(); ?> ago</div>
There are some known bugs with Support Forum and 1.0… do you see an error like this one?
https://bbpress.org/plugins/topic/support-forum/page/3/#post-1565
If so, there’s a fix posted at that link I believe!
Or if you don’t see an error like that, please let us know exactly what behavior you see when you activate the plugin and then close a topic and change its status using Support Forum. Thanks!
Nice catch! 
I will clean all of them up. Any ideas about the plugin to show preview of bbpress themes?
I’m building a migration script that does migration automatically. As for what bbPress itself evolves into, I’m not sure if it will get easier or more difficult, but I plan on accommodating a reasonable amount of trouble
Umm, the code is committed so it will be in the next release. It’s in the trunk version now, but I don’t recommend running that on a production site.
That’s normal, it’s in the default theme as well.
<?php
$_head_profile_attr = '';
if ( bb_is_profile() ) {
global $self;
if ( !$self ) {
$_head_profile_attr = ' profile="http://www.w3.org/2006/03/hcard"';
}
}
?>
try using Firefox and an addon called FireBug.
It’s something useful to find what part of the site is using what css.
your body tags for WP
body {
color:#444444;
font-family:Arial,Helvetica,Sans-serif;
font-size:0.79em;
margin:0;
padding:0;
text-align:center;
}
Your Body Tags for bbP
body {
background-color:#F9F7F5;
font:62.5% 'Trebuchet MS','Lucida Grande',Arial,Helvetica,Sans-serif;
margin-bottom:50px;
}
you can start by changing your font on bbP to Arial,Helvetica,Sans-serif; and add in font-size… etc etc
Try it!
Hi,
is there any way to list a specific users posts/replys?
Something like: add_filter('get_thread_where', create_function('', 'return "p.poster_id = ' . $specific_author_id . '";'));
I want to create a link on the profile page, under the user name, something like “Show all posts by this user”. This is the easy part for me, but I cant create the page for the posts list.
Any idea how to do this?
Thanks in advance.
In my case, I have not created any plug-ins or templates.
I changed Permissions on ‘my-plugins’ and ‘my-templates’ to 755 (from 750) but I still get the error every time I click on a topic.
The bug seems to be in ‘functions.bb-template.php’ which is exactly as it was downloaded from bbPress.
This is the important part of the error message –
Warning: include() [function.include]: Filename cannot be empty in /home/…/public_html/members/bbpress/bb-includes/functions.bb-template.php on line 45
Can we get a techo from bbPress to checkout the code, particularly, why are the brackets empty?
Thanks
Derek
Notice my “kakumei black” theme:
http://heroesonly.com/heroes/bbpress/
Hi, I have finally converted over from phpBB2. I wanted to do this for a long time, and had done some trial runs in the past, but only now have I committed myself to bbPress. I think it’s for the better. phpBB3 still uses the brain-dead “mod” system of editing the code instead of using a plugin API. (Yes I did write phpBB mods.)
Now I’m hearing all this talk about bbPress going away, etc. etc. I think it’s ridiculous that people are getting worried about this. bbPress is awesome.
I don’t know how to tag this post… any suggestions?
It’s possible to have both… I hacked Support Forums to display whether these user-submitted Ideas were Under Review, Reviewed, or Implemented:
http://ideas.weddingbee.com/
And both the Support Forum “status” and the “closed” label appear… is that what you’re going for? If so let me know, and I can post the code I used to display the labels.
gerikg, I just committed the patch to fix this. I believe bbpress.org is running trunk and it updates on some sort of schedule/cron, so that fix will be present here tomorrow probably. Could you test again tomorrow?
I don’t know when or how the code gets updated here, but I am seeing my changes here a day or two after committing to trac.
Thanks