PDA

View Full Version : how to manually delete thread?


bobjones
11-14-2007, 11:58 AM
Hello!

I need to remove a thread from a non-vb page. How can I achieve this?

It is my impression that I need to POST do, deletetype, and threadids to inlinemod.php, however this is not working for me. Yes, my user has an admin group session.

ideas?

Thanks!!!

Analogpoint
11-14-2007, 01:30 PM
Here's the form that gets submitted when you delete a thread. Send all those values in a POST request, and it should work (as long as it's from the same domain).
<form action="postings.php?do=dodeletethread&amp;threadid=12" method="post" name="vbform">
<input type="hidden" name="s" value="" />
<input type="hidden" name="t" value="12" />
<input type="hidden" name="do" value="dodeletethread" />

// soft delete
<input type="radio" name="deletetype" value="1" id="rb_deletetype_1" checked="checked" />
<input type="checkbox" name="keepattachments" class="inlineimg" value="1" id="cb_keepattachments" />

// hard delete
<input type="radio" name="deletetype" value="2" id="rb_deletetype_2" onselect="alert('moo')" />
<input type="text" class="bginput" name="deletereason" value="" size="50" maxlength="125" />

<input type="submit" class="button" value="Delete Thread" accesskey="s" />
<input type="reset" class="button" value="Reset Fields" accesskey="r" />
</form>