Questions About Two Plugins
-
Hi everyone.
1) I installed “Forum Last Poster” in order to display additional information on my front page. In the forum section, I was able to display a link to the last updated topic in each forum, but the whole link is displayed. Does anyone know how to truncate the link to show only the post name instead of the entire link?
Here’s my code thus far:
<?php if ( bb_forums() ) : ?>
<h2><?php _e(‘Forums’); ?></h2>
<table id=”forumlist” cellspacing=”0″ cellspacing=”0″>
<tr>
<th><?php _e(‘Main Theme’); ?></th>
<th><?php _e(‘Posts’); ?></th>
<th><?php _e(‘Topics’); ?></th>
<th><?php _e(‘Last Topic’); ?></th>
<th><?php _e(‘Last Poster’); ?></th>
<th><?php _e(‘Freshness’); ?></th>
</tr>
<?php while ( bb_forum() ) : ?>
<?php if (bb_get_forum_is_category()) : ?>
<tr<?php bb_forum_class(‘bb-category’); ?>>
<td colspan=”3″><?php bb_forum_pad( ‘<div class=”nest”>’ ); ?>“><?php forum_name(); ?><?php forum_description( array( ‘before’ => ‘<small> – ‘, ‘after’ => ‘</small>’ ) ); ?><?php bb_forum_pad( ‘</div>’ ); ?></td>
</tr>
<?php continue; endif; ?>
<tr<?php bb_forum_class(); ?>>
<td><?php bb_forum_pad( ‘<div class=”nest”>’ ); ?>“><?php forum_name(); ?><?php forum_description( array( ‘before’ => ‘<small> – ‘, ‘after’ => ‘</small>’ ) ); ?><?php bb_forum_pad( ‘</div>’ ); ?></td>
<td class=”num”><?php forum_topics(); ?></td>
<td class=”num”><?php forum_posts(); ?></td>
<td><?php bb_topic_labels(); ?> <big>“><?php forum_last_post_link(); ?></big><?php topic_page_links(); ?></td>
<td class=”num”><?php forum_last_poster(); ?></td>
<td class=”num”><?php forum_time(); ?></td>
</tr>
<?php endwhile; ?>
</table>
<?php endif; // bb_forums() ?>
2) I’m using the “Bavatars” plug-in, but I need to be able to style the “avatar” section in the members page in order for it to be aesthetically pleasing and for it to function correctly. I believe that the HTML on this page is outputting from the “avatars-profile.php” file, however whenever I try to div it off like I did on every other page, I get an error and the page won’t load.
Here’s the code:
bb_get_header();
****Not in code <div id=”Whatever??”>
if ( $message )
echo ‘<div class=”notice”><p>’ . $message . ‘</p></div>’;
echo bb_get_avatar( $user_id, 100 );
?>
<form method=”post” action=”<?php profile_tab_link( $user_id, ‘avatar’ ); ?>” enctype=”multipart/form-data”>
<input type=”file” name=”bavatar” id=”bavatar” />
<input type=”submit” value=”Upload new avatar »” />
</form>
<form method=”post” action=”<?php profile_tab_link( $user_id, ‘avatar’ ); ?>”>
<?php bb_nonce_field( ‘bavatar_delete-‘ . $user_id ); ?>
<input type=”submit” id=”delete” class=”delete” name=”delete” value=”Delete” />
</form>
***********Not in code </div???>
The styling attributes that the “avatar” page needs are:
width: 890px;
padding: 30px;
margin-top: -30px;
Help would be greatly appreciated!
Thanks,
dd_massacre
Oh, my page is http://www.myfinalheaven.org/forum.
- You must be logged in to reply to this topic.