Log in

View Full Version : trying to fix this hack


Keyser S?ze
10-19-2005, 09:20 AM
this may end up being just a template mod, which would be fine with me

thats how it is right now but its not working, i just dont se what im doing wrong here, this is what i have

this is a port from this hack https://vborg.vbsupport.ru/showthread.php?t=60704&highlight=quick+delete+button

now on that hack, i never had to edit the php file, jus wasnt needed

all i want is, when i click a button, the post/thread is perminantly deleted

ok this is what i have in the postbit

<if condition="$post['editlink']">
<form action="editpost.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="p" value="$post[postid]" />
<input type="hidden" name="url" value="$url" />
<input type="hidden" name="do" value="deletepost" />

<input type="submit" name="deletepost" value="<if condition="$deletebutton">delete<else />remove</if>" id="rb_del_soft" tabindex="1" class="button" />

</form>

that produces the button in the postbit, but when u click it u get a error saying "Invalid Action Specified"

any help would really be appreciated

noppid
10-19-2005, 10:59 AM
editpost.php uses _REQUEST vars, not _POST vars. Make this a link with an image and a URL like editpost.php?$vbulletin->session->vars['sessionurl']do=deletepost&amp;p=$post[postid]
instead of using a form.

Keyser S?ze
10-23-2005, 01:41 AM
i know that hack asks u to edit the editpost.pp, but i never had to do it, it turned out to just be a template mod

i dont want to have to use the editpost.php edits, that will prolly work, but can anyone make this into a product? i just want for admins to have a delete post button next to the quote button, and have it physically delete with one click

can anyone do that? thanks