vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   action=domove (https://vborg.vbsupport.ru/showthread.php?t=51792)

Kriek 04-18-2003 09:13 PM

action=domove
 
PHP Code:

$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?

PHP Code:

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


Xenon 04-19-2003 10: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 12:47 PM

I'm not sure why vBulletin is still using $HTTP_POST_VARS instead of $_POST anyways.

PHP Code:

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

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

PHP Code:

$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 03:12 PM

you're welcome :)

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


All times are GMT. The time now is 04:44 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01740 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete