<a href="tags.php?$session[sessionurl]tag=$tag_url<if condition="THIS_SCRIPT == 'showthread'">&forumid=$threadinfo[forumid]</if>">$tag</a>