Quote:
Originally posted by JohnWoo
Oh... can someone add a little action for this hack.
When i click in Admin Options -> Edit thread, i can edit Reason for closing thread
10x a lot... sorry for my english
|
Well let's see what we can do
optional add to the hack:
edit template threads_editthread
after
Code:
<tr>
<td bgcolor="{firstaltcolor}" width="73%"><normalfont><b>Moderator Notes / Thread Summary:</b></normalfont></td>
<td bgcolor="{firstaltcolor}" width="27%"><normalfont><input type="text" class="bginput" name="notes" value="$threadinfo[notes]" size="50" maxlength="250"></normalfont></td>
</tr>
add this code:
Code:
<tr>
<td bgcolor="{firstaltcolor}" width="73%"><normalfont><b>Close Reason:</b></normalfont></td>
<td bgcolor="{firstaltcolor}" width="27%"><normalfont><input type="text" class="bginput" name="closereason" value="$threadinfo[closereason]" size="50" maxlength="255"></normalfont></td>
</tr>
then open postings.php
find this line in editthread section:
PHP Code:
$DB_site->query("UPDATE thread SET visible='$visible',open='$open',title='".addslashes(htmlspecialchars($title))."',iconid='".addslashes($iconid)."',notes='".addslashes($notes)."' WHERE threadid='$threadid'");
replace it with:
PHP Code:
$DB_site->query("UPDATE thread SET visible='$visible',open='$open',title='".addslashes(htmlspecialchars($title))."',iconid='".addslashes($iconid)."',notes='".addslashes($notes)."',closereason='".addslashes($closereason)."' WHERE threadid='$threadid'");
i haven't tested it, but it should do what ya want