Chen:
I tried using:
Quote:
if (ismoderator($forumid) or $getperms['canopenclose'] or $getperms['candeletethread'] or $getperms['canmove'] and $thread['link']) {
$admindelete = "<a href=\"/postings.php?s=$session[sessionhash]&action=deletethread&threadid=$thread[threadid]\"><img src=\"delete.gif\" border=\"0\"></a>";
} else {
$admindelete = " ";
}
|
and then just put $admindelete at the end of the hyperlink in the forumdisplay template.
Unfortunately this gives me the delete icon with every thread. I want it to only show up when $thread['link] has something in it. I played around with different items to use for $thread['link] but got nowhere. Any ideas?
Parker