This must have been the right way to do it because it works great!

thanks for all of your help and an excellent hack!
Quote:
Originally posted by TWTCommish
It should be this, I think:
PHP Code:
if ($view == 'attachments') {
$attachment_querystring = '&view=attachments';
} else {
$attachment_querystring = '';
}
$pagenav = getpagenav($totalposts,"showthread.php?s=$session[sessionhash]&threadid=$threadid&perpage=$perpage&display=$display$attachment_querystring".iif(isset($highlight), "&highlight=$highlight", ""));
|