Have put the closing part of the test? {If $smarty.session.username == $owner} <a href="usermodifylisting.php?view={$id}&action=modi fy>Modify your listing</a> {/If}