okay.
to fix the double delete thread confirmation screen, look in the template:userpage_delete_confirm
delete $header and $footer between the <body> and </body> tags and there you go! (also had an extra $stylevar[htmldoctype] at the top which I deleted).
The correct template should read:
HTML Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head><title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
<br />
<br />
<form action="userpage.php?do=dokillpage" method="post">
<input type="hidden" name="ownerid" value="$ownerid" />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr class="alt1"><td>
<div><label for="confirm"><input type="checkbox" name="confirm" id="confirm" value="1" /><strong>Do you really want to delete this user's page?</strong></label></div>
</td>
</tr>
<tr class="alt1"><td>
<div style="margin-top:$stylevar[cellpadding]px">
<input type="submit" class="button" value="$vbphrase[submit]" accesskey="s" />
</div>
</td>
</tr>
</table>
</form>
<br />
<br />
</body>
</html>
Don't forget to change :
HTML Code:
// Check to see if the page exists.
$pageexists = $db->query_first("SELECT * FROM ".TABLE_PREFIX."userpage WHERE userid = ".$ownerid);
if ($pageexists) {
print_no_permission();
}
to
HTML Code:
// Check to see if the page exists.
$pageexists = $db->query_first("SELECT * FROM ".TABLE_PREFIX."userpage WHERE userid = ".$ownerid);
if (!$pageexists)
{
print_no_permission();
}
this was posted earlier, somewhere, around post 360ish.........