Search Results for 'code'
-
Search Results
-
Hey guys,
I have a weird forum display issue and have no clue what I’m doing wrong. (My site is NewsTalkPA.com)
I’m trying to get the lower forum section on FrontPage.php and Forum.php to display like this:
CATEGORIES_TOPICS_POSTS_(GRAVATAR)_LAST POSTER_LAST POST (see: http://newstalkpa.com/)
1) Everything seems to be working for the first 3 headings (which are standard), but the “Gravatar” and “Last Poster” seem to show up in the wrong rows (the Gravatar and Last Poster for the corresponding sections appear one row off.)
I have no clue why this happens. It’s probably something very silly.
Any idea what I messed up in the coding?:
2) Also, any advice on getting the LAST POST to generate a clickable link to that post (right now the link is not clickable)
Thanks in advance as I am stumped!
<?php if ( bb_forums() ) : ?>
<h2><?php _e('Forums'); ?></h2>
<table id="forumlist">
<tr>
<th style="width:20px;"></th>
<th style="width:660px;"><?php _e('Categories'); ?></th>
<th><?php _e('Topics'); ?></th>
<th><?php _e('Posts'); ?></th>
<th style=padding:0px><?php _e('<i><b><font size=+1><font color=#a81817>!</font></font></b></i>'); ?></th>
<th><?php _e('Last Poster'); ?></th>
<th><?php _e('Last Post'); ?></th>
</tr>
<?php while ( bb_forum() ) : ?>
<tr<?php bb_forum_class(); ?>>
<td class="num" style=padding:2px><img src='http://newstalkpa.com/graphics/redfolder20.gif' width='30' height='20'><br></td>
<td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><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" style=padding:0px>
<?php echo "<img src='http://www.gravatar.com/avatar.php?gravatar_id=".md5(bb_get_user_email($topic->topic_last_poster))."' width='24' height='24'><br>"; ?>
</td>
<td class="num">
<small><a href="<?php user_profile_link($topic->topic_last_poster) ?>" ><?php topic_last_poster(); ?></a></small>
</td>
<td class="num"><a href="<?php $topic = $GLOBALS['topic'] = current( get_latest_topics( array( 'number' => 1, 'forum' => get_forum_id() ) ) ); ?>"><?php topic_title(); ?></td>
<?php endwhile; ?>
</table>
<?php endif; // bb_forums() ?>I’ve searched for hours but can’t find out how to accomplish this…
If I have WPMU subdomain blogs installed at: blogname.domain.com, how do I install a bbPress forum within one of these subdomain blogs at: blogname.domain.com/forum?
Since there is no actual subdomain configured within cPanel and the WPMU subdomain blogs are virtual, I don’t have a folder there to install bbPress into.
I only need to install a bbPress forum within 1 WPMU subdomain blog, however, I will take a solution that does this for all subdomain blogs, if need be.
From there, I’m assuming that I can integrate the bbPress installation(s) with WPMU so that user accounts can be shared, like usual?
Need to figure this one out very soon!
Thank you!!
Can anyone tell me how to link to the current commenter’s profile page? ie:
http://www.mysite.com/forum/profile/username
currently the template I’m using links to any url specified by the author (usually his own website), but I want everyone’s name to point to their profile page on my forum.
using bb 1, and the function looks like this
function post_author_link( $post_id = 0 ) {
if ( $link = get_user_link( get_post_author_id( $post_id ) ) ) {
echo '<a href="' . esc_attr( $link ) . '">' . get_post_author( $post_id ) . '</a>';
} elseif ( $link = bb_get_post_meta( 'pingback_uri' )) {
echo '<a href="' . esc_attr( $link ) . '">' . get_post_author( $post_id ) . '</a>';
} else {
post_author( $post_id );
}Topic: Open target in a new window
Hi all
Hope you’re doing well, not keeping too busy around Christmas (unlike me
)I hope someone can help me here. As some of you know, I run a small Development forum. In this forum I post tutorials and posts with quite a few links. It’s quite irritating that each link opens in the same window, making the user have to return to the forum every time.
Is there a way to make sure that all the links in a post open up in a new window? I tried doing it manually in a post, but it trimmed the
target="_blank"from the code. I also have BBCode Lite installed. I did try editing that code, but with no success. There’s obviously something in the core that I need to change. Anyone know where it is?Thanks in advance – and have a lovely Christmas!

Michael
Topic: Bug in post count?
Hi, i have very good bbPress forum. I like bbPress. I am use a bbPress 1.0.2 but i may found 1 new bug.
I go to my bbPress dashboard and see posts count, thats say: 4024 posts.
Then i go to bb-admin/posts.php and i see 1 – 20 / 4,121. This mean i have 4121 posts on my forum.
I try recounting without any help to this problem.
My plugins now:
Akismet
Human Test For bbPress
Topics Per Page
bbSmilies (maybe smilies from WordPress plugin, i change it name, when i modified smilies codes)
