Search Results for 'code'
-
Search Results
-
I’m editing the edubb theme. If I make the avatar the size I want, then the post area gets shoved downwards. Therefore I edited the post.php to look like this:
<div class="post-author"><?php post_author_link(); ?></div>
<b><div class="post-author"><?php post_author_avatar_link(); ?></div></b>
<div class="post-date"><?php post_author_title(); ?></div>
<div class="post-date"><?php printf( __('Posted %s ago'), bb_get_post_time() ); ?> <a>">#</a> <?php post_ip_link(); ?> <?php post_edit_link(); ?> <?php post_delete_link(); ?><?php if (function_exists('report_post_link')) : ?> <? report_post_link(); ?><?php endif; ?></div>
<div class="post-text">
<?php post_text(); ?>
</div>by adding the post_author_avatar_link to line 2.
It works pretty well but the problem is that the avatars show up where I want them to ONLY in the reply posts, but not in the threadstarter post. Can anyone help me figure out where/how to edit the beginning post of the thread?
Topic: Last Post Data
I am a beginner with a beginner question: On the front page in the “Latest Discussions” section, there are columns for Last Poster and Freshness. However, in the “Forums” section, there are no such columns.
I would like to add this information in the “Forums” section as well (and then eventually delete the “Latest Discussions” section). I have added the two column headers (actually combined into one column that has both pieces of info in it), but I have no idea how to get the correct data (which I want to search all the topics from within each forum and pull the latest poster and time details).
The code I currently have is below (for the site http://heathoops.net/forums). It’s formatted how I want it, but I have no idea what post data it is pulling (I want it to pull the latest post from any topic within each forum)… Can anyone help?
<?php if ( bb_forums() ) : ?>
<h2><?php _e(‘Forums’); ?></h2>
<table id=”forumlist”>
<tr>
<th><?php _e(‘Main Theme’); ?></th>
<th><?php _e(‘Topics’); ?></th>
<th><?php _e(‘Posts’); ?></th>
<th><?php _e(‘Last Post’); ?></th>
</tr>
<?php while ( bb_forum() ) : ?>
<tr<?php bb_forum_class(); ?>>
<td><?php bb_forum_pad( ‘<div class=”nest”>’ ); ?>“><?php forum_name(); ?><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”>by “><?php topic_last_poster(); ?>
on <?php echo date(“D M j, Y g:i a”, strtotime($topic->topic_time)); ?></br></td></tr>
Just upload plugin, activate, create forums, and away you go. Have never seen any issue like this evern with having done several test installs before. I’m using the stock bbP 2010 theme also.
But for the most part it’s working like a champ. Except for this…