PDA

View Full Version : Move through xml/html in vbulletin?


dezkit
01-03-2010, 10:23 PM
Hello, I currently have the code

<if condition="$show['openclose']"><div><label for="ao_oct0">
<input type="checkbox" name="openclose" value="1" id="cb_openclose" tabindex="1" $checked[openclose] />
<if condition="$show['closethread']">Lock
<else />$vbphrase[open_thread]</if></label></div></if>

<if condition="$show['movethread']">
<div><label for="ao_mvt">
<input type="checkbox" name="do" id="ao_mvt" value="movethread" />Move</label>
</if>

What I am trying to do is so that when Move is selected, the thread gets moved to a certain forum. How will I be able to do this? Thank you.

P.S. I want this for both SHOWTHREAD and THREAD TOOLS

Lynne
01-04-2010, 12:02 AM
You are using an input tag, but where is the rest of the form? You need to add some hidden fields into the form regarding what forum to move it to. I think there is a mod already written to do this, try a search if you are interested in it.

dezkit
01-04-2010, 02:22 AM
Thank you for your reply, I can not find any code or modification for this type of problem. I have even tried researching some template information but can not find anything. Please code me this. Thanks again. Sorry.

EDIT: The first paragraph of code (the lock) works perfectly but the second part does not.

dezkit
01-13-2010, 01:08 AM
bump, please help.

Lynne
01-13-2010, 02:17 AM
I seem to recall that in order to do a move, the form action is do=domovethread and, as I said, you need to include hidden input fields to tell is which forum it will have to move into. I think you may also have to include hidden fields for the variable "redirect" (and maybe a couple more). You need to read the postings.php file to see what is needed.