The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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!!! |
|
#2
|
||||
|
||||
|
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).
Code:
<form action="postings.php?do=dodeletethread&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>
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|