Solution found – bb_user_nicename_sanitize()
– needs peer review because of possible side-effects (UTF8 etc.)
<span><?php if ( 1 < get_topic_posts() ) : ?>
<?php printf(__('- <a href="%1$s">Latest reply</a> from '),attribute_escape( get_topic_last_post_link()) ) ?>
<a href="<?php bb_option('uri'); ?>profile.php?id=<?php echo (bb_user_nicename_sanitize(get_topic_last_poster(),50)); ?>"><?php echo get_topic_last_poster(); ?></a>
<?php endif; ?>
</span>
PS: A look into one’s database via phpadmin produces the right insights …
get_user_profile_link( $topic->topic_poster )
, rather than all that sanitize/echo stuff. Can’t check it 100% since my test server is dead, but that should be right I think.
The code developed so far (resembling the buddyPress Forum experience):
...
<span id="topic_posts"><?php topic_posts_link(); ?>, </span>
<span id="topic_voices"><?php printf( '%s voices', bb_get_topic_voices() ); ?></span>
<span><?php if ( 1 < get_topic_posts() ) : ?>
<?php printf(__('- <a href="%1$s">Latest reply</a> from '),attribute_escape( get_topic_last_post_link()) ) ?>
<a href="<?php bb_option('uri'); ?>profile.php?id=<?php echo (sanitize_user(get_topic_last_poster(),true)); ?>"><?php echo get_topic_last_poster(); ?></a>
<?php endif; ?>
</span>
does only generate an “User not found.” error with:
..../profile.php?id=Test%20User
How can I complete the from part with a clickable link to the profile of the latest poster?
34 posts, 2 voices - Latest reply from ...
The user name ist Test User
– it does contain a space.
Oh no… please don’t test it unless you are on 0.8.x!!
It’s definitely not recommended for 0.9 or 1.0… I just linked to it so you could check out the code, in the event that you were interested in adapting it to support more recent bbPress versions!
Thank you John, I’ll test it
Hi all,
I installed Uplad Avatar, but when i clik on “Avatar”, add “Locate Image” and click on “Upload Avatar” the addition does not work.
view image attest :
http://yazhouzhijia.free.fr/images/images_bug/bubbpress.png
My config :
BBpress 1.0 (use table user form wordpress)
Wordpress : 2.8.4
Thank you
@ chrishajer: Here are my active plugins:
Akismet
bb-NoSpamUser
BBcode Buttons Toolbar
BBcode Lite
bbPress signatures
bbPress Smilies
bb Topic Views
Best Answer
Bozo Users
Check For Updates
Enhanced Registration
Human Test for bbPress
Ignore Member
Mass Delete Users
Members Online
Mini Stats
My Views
My Views module – Most/Least Posts
My Views module – Most/Least Views
My Views module – Started/Participated Topics
New User Notification Email
Post Count Plus – Dynamic.Titles & More!
Post Count Plus for WordPress
Related Topics
Reputation (Karma) for bbPress
Skip Akismet
Subscribe to Topic
Topic Icons
Unread Posts
The really strange thing is, the Dashboard shows 18 forums (which is the correct number), but bb-admin/forums.php just won’t display them.
I suppose I can try disabling all plugins, and see if forums.php then displays the forums properly?
I did not even see the code in my front-page.php file of the theme. Below is the code. Can I try to add it to it to play around with the heat map?
Thanks.
?php bb_get_header(); ?>
<?php if($forums) : ?>
<?php if($topics || $super_stickies) : ?>
<div class="breadcrumb section">
<h2 class="section-header"><?php _e('Latest Discussions','rag'); ?></h2>
</div>
<table id="latest">
<tr>
<th class="topic"><?php _e('Topic','rag'); ?> — <?php new_topic(); ?></th>
<th class="posts"><?php _e('Posts','rag'); ?></th>
<th class="last-poster"><?php _e('Last Poster','rag'); ?></th>
<th class="freshness"><?php _e('Freshness','rag'); ?></th>
</tr>
<?php if($super_stickies) : foreach ($super_stickies as $topic) : ?>
<tr<?php topic_class(); ?>>
<td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></td>
<td><?php topic_posts(); ?></td>
<td><?php topic_last_poster(); ?></td>
<td><a href="<?php echo str_replace("&", '&', get_topic_last_post_link()); ?>"><?php topic_time(); ?></a></td>
</tr>
<?php endforeach; endif;?>
<?php if($topics) : foreach($topics as $topic) : ?>
<tr<?php topic_class(); ?>>
<td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
<td><?php topic_posts(); ?></td>
<td><?php topic_last_poster(); ?></td>
<td><a href="<?php echo str_replace("&", '&', get_topic_last_post_link()); ?>"><?php topic_time(); ?></a></td>
</tr>
<?php endforeach; endif; ?>
</table>
<?php endif; ?>
<?php if(bb_forums()) : ?>
<div class="breadcrumb section">
<h2 class="section-header"><?php _e('Forums','rag'); ?></h2>
</div>
<table id="forumlist">
<tr>
<th><?php _e('Forum','rag'); ?></th>
<th><?php _e('Topics','rag'); ?></th>
<th><?php _e('Posts','rag'); ?></th>
</tr>
<?php while(bb_forum()) : ?>
<tr<?php bb_forum_class(); ?>>
<td><?php bb_forum_pad('<div class="nest">'); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description(); ?><?php bb_forum_pad('</div>'); ?></td>
<td><?php forum_topics(); ?></td>
<td><?php forum_posts(); ?></td>
</tr>
<?php endwhile; ?>
</table>
<?php endif; ?>
<?php else : ?>
<?php post_form(); ?>
<?php endif; ?>
<?php bb_get_footer(); ?>
That is it. In this link http://invictatrader.com/bbpress/tags/ you see there a total of 54 tags so far on the big test box on the left. On the right only a maximum of 40 are displayed. How do I change the number of tags to be shown in the box on the right? Like say just 20 or 30 or even 50 if need arises.
Thank you.
Right, I can turn them back on if you would like; and it would help.
I was doing a little compatibility testing last night, and to get it working in IE I had to remove the permalinks…
Yes, I meant the default theme, kakumei.
So, it’s a problem with your theme.
I created an account and posted a test topic. I don’t even see the little X next to the tag to delete it. So, how are you going about deleting tags? Normally, you get a little X next to any tag you use so you can delete your own tags.
Try the other way round, skinning bbPress with your WordPress widgets. Under deep integration, the sidebar functions might work fine. Maybe. bbPress isn’t light enough to just be invoked by a small piece of code in a widget though. That said, there is a WordPress plugin for displaying the latest posts and such from bbPress.
Argh, ASP.NET is an evil possessed devil of a language… anyone got a database dump I can test with?
At first I was like
“open”, then I was all
“ASP.NET”
So yeah, uhh, anyone got a dump of a database for one of these? I don’t even have a test install I can run ASP.NET that I know of…
Edit: Nevermind, Apache can do it. Will look into a conversion script, but it’ll be written in PHP.
Sorry forgot the bbPress version – I’m using the latest version 1.0.2?
WordPress version 2.8.4
The script worked for me last night and this is the second phpbb 2 board I convert. A few tips I can give whoever will try this script:
Follow the steps that come in the given file but make sure to:
1. Install bbPress 0.7 first, then upgrade to 0.8 when you have done the conversion. You can download 0,7 here: https://bbpress.org/forums/topic/download-previous-versions-of-bbpress#post-17770
Then you can go ahead and upgrade to the latest version (1.0.2). Make sure you update the settings in your admin panel (board path, name, etc) as you will need to get rid of your old config.php file when you upgrade to 0.8
2. If you’re hosted on 1and1, switch EXPORT_TO_FILE to false and AUTO_IMPORT_EXPORTED_DATA to true. Also add teh following code to your .htaccess file: AddType x-mapp-php5 .php (not sure if this is necessary but it worked for me).
3. I got an error saying that some query was empty, but it seems that the conversion went without any problems.
Hey Everyone,
What is the easiest way (as of the latest BBPress release) to get the avatars for ‘topic’ authors?
I have avatars showing correctly for ‘posts’ with <?php post_author_avatar_link(); ?>
but it doesn’t seem to work correctly for the first post in topics and on the front page.
I’ve seen some other posts on this, but so far no elegant solutions. Any help?
Thanks!
Changed status back to “not resolved” – My latest idea/post didn’t solve it.
I will help you tomorrow on this. Right now on move..
@kawauso I don’t think you understood my first post.
How can I make it show the actual post?
What I do in my plugin is I fetch what the user has set in the no of “posts per page” option and then calculate where the post will be (which page) and then conditionally add it to the url.