AlokSharma
01-29-2011, 02:39 AM
Hi,
I had originally posted this at http://www.vbulletin.com/forum/showthread.php/372230-Need-help-with-One-Click-Delete-Post and I was told to ask this at vbulletin.org
Here is what I am looking for:
I want to have a One Click Delete Button that appears at the post bottom and the purpose is to quickly delete a post.
After doing a lot of search, I was able to collect the bits of code, modified and inserted it in the postbit_legacy template. The delete button does appears but when I click on it, I see a white page (a blank page).
I am using the following code:
<form action="editpost.php" method="post">
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="remove" />
<input type="hidden" name="p" value="{vb:raw post.postid}" />
<input type="submit" class="button" tabindex="1" value="{vb:rawphrase delete}" id="{vb:raw editorid}_delete" />
</form> Any guesses that why this is not working? Any help will be highly appreciated.
I had originally posted this at http://www.vbulletin.com/forum/showthread.php/372230-Need-help-with-One-Click-Delete-Post and I was told to ask this at vbulletin.org
Here is what I am looking for:
I want to have a One Click Delete Button that appears at the post bottom and the purpose is to quickly delete a post.
After doing a lot of search, I was able to collect the bits of code, modified and inserted it in the postbit_legacy template. The delete button does appears but when I click on it, I see a white page (a blank page).
I am using the following code:
<form action="editpost.php" method="post">
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="remove" />
<input type="hidden" name="p" value="{vb:raw post.postid}" />
<input type="submit" class="button" tabindex="1" value="{vb:rawphrase delete}" id="{vb:raw editorid}_delete" />
</form> Any guesses that why this is not working? Any help will be highly appreciated.