Forums

Join
bbPress Support ForumsThemesRemove Forum Dashes: —

Info

Remove Forum Dashes: —

  1. Hey,

    I'm trying to figure out how I can remove those dashes that separate the 'Forum Name' and its 'Description.'
    Here's an image to show what I'm trying to say: http://teccahigh.com/images/uploads/forum22.png

    Where it says "News, Updates, and Announcements —" I'd like to get rid of that dash in there. I have tried going into front-page.php and changing this:

    <?php forum_description();

    To this:

    <?php forum_description(' ');

    Which actually did work, but it removed a different dash (there used to be two dashes which looked like: — -
    It removed the small one, but now I can't figure out how to remove the other one.

  2. Can we see your front-page.php code as its possibly part of the html as mine uses a different template and it only has one dash.

  3. It's in here bb-includes/functions.bb-template.php (line 680):

    function forum_description( $args = null ) {
    	if ( is_numeric($args) )
    		$args = array( 'id' => $args );
    	elseif ( $args && is_string($args) && false === strpos($args, '=') )
    		$args = array( 'before' => $args );
    	$defaults = array( 'id' => 0, 'before' => ' – ', 'after' => '' );
    	$args = wp_parse_args( $args, $defaults );
    
    	if ( $desc = apply_filters( 'forum_description', get_forum_description( $args['id'] ), $args['id'], $args ) )
    		echo $args['before'] . $desc . $args['after'];
    }

    So you could probably whip up some function to override it.

    You both have one dash, most likely, but different fonts :)

  4. From ctsttom:

    Can we see your front-page.php code as its possibly part of the html as mine uses a different template and it only has one dash.

    <?php bb_get_header(); ?>
    
    <?php if ( $forums ) : ?>
    
    <div id="contentleft">
    
    	<div id="login">
    		<?php login_form(); ?>
    	</div>
    
    		<h2><?php _e('Forums'); ?></h2>
    		<table id="forumlist">
    
    		<tr>
    			<th><?php _e('Forum Categories'); ?></th>
    			<th><?php _e('Topics'); ?></th>
    			<th><?php _e('Posts'); ?></th>
    		</tr>
    
    		<?php foreach ( $forums as $forum ) : ?>
    		<tr<?php alt_class('forum'); ?>>
    			<td><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a> — <small><?php forum_description(' '); ?></small></td>
    			<td class="num"><?php forum_topics(); ?></td>
    			<td class="num"><?php forum_posts(); ?></td>
    		</tr>
    		<?php endforeach; ?>
    		</table>
    
    		<?php if ( $bb_current_user->ID ) : ?>
    
    		<?php endif; else : // $forums ?>
    
    		<div id="contentleft">
    
    		<h3 class="bbcrumb"><a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a></h3>
    
    		<?php post_form(); ?>
    
    		<?php endif; ?></div>
    
    			<div id="discussions">
    
    		<?php if ( $topics || $super_stickies ) : ?>
    
    		<h2><?php _e('Latest Discussions'); ?></h2>
    
    		<table id="latest">
    		<tr>
    			<th><?php _e('Topic'); ?> — <?php new_topic(); ?></th>
    			<th><?php _e('Posts'); ?></th>
    			<th><?php _e('Last Poster'); ?></th>
    			<th><?php _e('Freshness'); ?></th>
    		</tr>
    
    		<?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>
    		<tr<?php topic_class(); ?>>
    			<td><?php _e('Sticky:'); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></td>
    			<td class="num"><?php topic_posts(); ?></td>
    			<td class="num"><?php topic_last_poster(); ?></td>
    			<td class="num"><small><?php topic_time(); ?></small></td>
    		</tr>
    		<?php endforeach; endif; ?>
    
    		<?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    		<tr<?php topic_class(); ?>>
    			<td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
    			<td class="num"><?php topic_posts(); ?></td>
    			<td class="num"><?php topic_last_poster(); ?></td>
    			<td class="num"><small><?php topic_time(); ?></small></td>
    		</tr>
    		<?php endforeach; endif; ?>
    		</table>
    		<?php endif; ?>
    
    				<div id="search">
    		 <?php search_form( $q ); ?>
    		 </div>
    
    		 <br />
    		 <img src="http://teccahigh.com/wp-content/themes/revolution/images/divide.png"><br />
    		 <h2>Members Online</h2>
    		 <small>Online now:
    		 <?php do_action('members_online_now',''); ?></small><br />
    		 <small>Online today:
    		 <?php do_action('members_online_today',''); ?></small>
    
    </div>
    
    <?php include 'sidebar.php'; ?>
    
    <div style="clear:both;"></div>
    
    <?php bb_get_footer(); ?>
  5. Oh, how dumb of me. I just needed to remove &amp;#8212 ; from the line. =)

    EDIT: Apparently the code above keeps changing even between backticks.

  6. Use this:

    <?php forum_description( array( 'before' => false, 'after' => false ) ); ?>
  7. You must log in to post.