Search Results for 'code'
-
Search Results
-
Getting slashes before quotes/apostrophes in bbPress 1.0-alpha-6 integrated with WP.
Have searched forum for solution, but most seem to be from 2 years ago (what can be found anyway). The core file that needs to be edited (bb-includes/template-functions.php) in those instructions is no longer called that (yes, i know which one it has become), but the code also looks markedly different.
While I have *some* PHP knowledge and can follow most step-by-step stuff, I’m starting out with a different syntax than the instructions, which makes me a little nervous.
Here’s the code I think I may need to change:
‘function get_post_text( $post_id = 0 ) {
$bb_post = bb_get_post( get_post_id( $post_id ) );
return apply_filters( ‘get_post_text’, $bb_post->post_text, $bb_post->post_id );’
and then what about forum titles?
Is there an easier way to do this now, or do the core files still have to be edited?
Topic: Customize Front Page…
I’m trying to combine some of the functions in the “Latest Discussions” table with the main “Forums” table. I’d like to include the “Latest Poster” and “Freshness” to my forums section. So far, I’ve successfully displayed these items within the table, but they’re not showing the appropriate data. Instead, I’m getting only the most recent poster and freshness displayed for every forum. This should help clarify:
www (dot) eco-wheelz (dot) com/forum
This is the code:
<table id="forumlist">
<tr>
<th><?php _e(‘Main Categories’); ?></th>
<th><?php _e(‘Topics’); ?></th>
<th><?php _e(‘Posts’); ?></th>
<th><?php _e(‘Last Poster’); ?></th>
<th><?php _e(‘Freshness’); ?></th>
</tr>
<?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
<?php while ( bb_forum() ) : ?>
<tr<?php bb_forum_class(); ?><?php topic_class(); ?>>
<td><?php bb_forum_pad( ‘<div class=”nest”>’ ); ?>“><b><font color=”#339900”><?php forum_name(); ?></font></b><small><?php forum_description(); ?></small><?php bb_forum_pad( ‘</div>’ ); ?></td>
<td class=”num”><?php forum_topics(); ?></td>
<td class=”num”><?php forum_posts(); ?></td>
<td class=”num”><?php topic_last_poster(); ?></td>
<td class=”num”>“>
<?php topic_time(); ?></td>
</tr>
<?php endwhile; ?>
<?php endforeach; endif; // $topics ?>
</table>
THANKS FOR YOUR HELP!
I’ve read the threads on the problem with 0.9.0.4 and php4. For example:
Are we going to see a version before 1.0 that I can run properly without upgrading the server to php5?
Topic: Integrate deeper and deeper
hey guys, just another idea:
what about integrate bbpress and wordpress that far (maybe with a plugin) that if registered and logged in users post a comment at a wordpress blog-post, this comment will appear in the profile of bbPress users under “user activity”.
And related to that:
WordPress users doesnt really have a profile page, so it would be nice if a user register and post a blog-comment, his name-link would open his bbpress profile page.
Hope you understand what i mean. I think it isnt that difficult. But too much difficult for me

greetings
Sumit