Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Help with an if/then statement

thanks. after much editing of template-functions.php, i got it to work. this is what did it:

function post_form( $h2 = ” ) {

global $bb, $page, $topic, $forum;

$add = topic_pages_add();

if ( empty($h2) && false !== $h2 ) {

if ( is_topic() )

$h2 = __(”);

elseif ( is_forum() )

$h2 = __(‘New Topic in this Forum’);

elseif ( is_tag() || is_front() )

$h2 = __(‘CREATE A THREAD’);

}

$last_page = get_page_number( $topic->topic_posts + $add );

if ( $page != $last_page ) {

echo “<h2 class=’post-form’>$h2</h2>n”;

}

else

echo “<h2 class=’post-form’>POST A REPLY</h2>n”;

Skip to toolbar