Re: Help with an if/then statement
Don’t worry about it
I’m sorry I wasn’t clearer, that was raw PHP code. So that PHP code runs, you have to put <?php
and ?>
tags around it.
<?php
global $page, $topic;
$add = topic_pages_add();
$last_page = get_page_number( $topic->topic_posts + $add );
if( $page == $last_page ) {
print( '<h2 class="post-form">POST A REPLY</h2>' );
}
?>
This just worked for me in my template’s topic.php.