Log in

View Full Version : action=domove


Kriek
04-18-2003, 10:13 PM
$move="<a href=\"postings.php?s=$session[sessionhash]&action=move&threadid=$threadid\">move</a>

The above would bring up the move options for a specific $threadid, but how would I make a direct move link to a specific forum and bypass the move options section? I was looking through the hidden fields on that page and noticed ?domove?, which I assume would be the action for moving the thread upon submission of the form, but I'm looking for the order syntax. Something like this?

$move="<a href=\"postings.php?s=$session[sessionhash]&action=domove&threadid=$threadid&forumid=56\">move</a>

Xenon
04-19-2003, 11:40 AM
domove is an HTTP_POST_REQUEST and it's queried like that, a lik is just a GET_REQUEST and therefor this won't work.

you have to make a POST form to click on it :)

Kriek
04-19-2003, 01:47 PM
I'm not sure why vBulletin is still using $HTTP_POST_VARS instead of $_POST anyways.

if ($_REQUEST['action']=="domove") {

I duplicated domove with $_REQUEST so I can access it from the URL and/or a form.

$move="<a href=\"postings.php?s=$session[sessionhash]&action=domove&method=movered&threadid=$threadid&forumid=56\">move</a>";

Works great and it's being called from a private forum anyway. Thanks for your help Xenon.

Xenon
04-19-2003, 04:12 PM
you're welcome :)

btw. i think with vb3 you'll just find $_POST not 100% sure but i think so ;)