The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Lynne is probably right. What you might be able to do is put the form somewhere outside the inline mod form, and remove the submit button (the rest of the fields are hidden so it shouldn't show up at all. Then use a js function to set the threadid and submit the form. I haven't tested it at all, but something like:
Code:
<script type="text/javascript"> function move_thread_to_forum(threadid) { if ("move_thread_to_forum" in document.forms) { var form = document.forms["move_thread_to_forum"]; form.action += threadid; form.elements['threadids'].value = threadid; form.submit(); } } </script> <form name="move_thread_to_forum" method="post" action="inlinemod.php?do=domovethread&threadids="> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <input type="hidden" name="destforumid" value="225"> <input type="hidden" name="threadids" value="0"> <input type="hidden" name="do" value="domovethreads"> <input type="hidden" name="redirect" value="none" id="rb_redirect_none" checked="checked" /> </form> Code:
<button type="button" value="Move thread to X" onClick="move_thread_to_forum($thread[threadid])"> |
#12
|
||||
|
||||
What page are you putting this on? I have a single click button/form on my site but it is on the thread page. It works just fine because it is located on top of the thread pagination area and thus outside of the moderation form.
|
#13
|
|||
|
|||
Oh right, that's a good point. I was thinking it was on a page that had multiple threads, but if it's showthread then maybe it can just be moved.
|
#14
|
|||
|
|||
Aha! Yes that was it. I hadn't realised I'd placed the code inside the inlinemod form in the SHOWTHREAD template (lesson learned there!)
I've now moved it above the first instance of: PHP Code:
|
Благодарность от: | ||
Lynne |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|