Search Results for 'code'
-
Search Results
-
I just wanted to share the experience I have gathered while working, designing and pushing bbPress so as to not look like a generic bbPress instance. My latest work are these forums (the rest of the site is WordPress), and if you have the time please consider registering to be able to play a bit with the design from a member-perspective (enjoyed better in Safari). I would appreciate your feedback.
I am really captivated by the possibilities bbPress offers; but I also feel the obscurity of these possibilities are somehow hindering proper development in the design department. The lack of a proper and exhaustive codex, readable for theme authors —without having to dig into core files—, remains as the biggest obstacle. I am all for contributing, should it be possible, in this way or another.
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?