The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Programming a button or link to move a thread with 1 click
After adding several subforums I need to be able to move threads very quickly... I'm looking to program a button/link that shows up for admins only in each thread (showthread.php) that would allow a 1 click solution to move a thread immediately leaving a perm redirect- no confirmation screen, no options- just do it.
I can do the <if> statements and edit the templates and such but no clue on what the code is to move the thread itself... Anyone know off hand? This should be a 'simple' piece of code I'm sure. I'd hard code the forum ID of where it's going and figure I'd have several links or buttons at the top of the page. "Quick Move to Forum A" "Quick Move to Forum B" "Quick Move to Forum C" ... |
#2
|
||||
|
||||
I do this on my site (kinda). Here is the code I use. I think I changed it correctly from what I had to what you want (of course, use on your test site first!). You will have to put it where you want with the correct html around it, and don't put it inside any other form cuz that won't work.
HTML Code:
<form action="postings.php?do=domovethread&t=$threadid" method="post" name="formname"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <input type="hidden" name="t" value="$threadid" /> <input type="hidden" name="do" value="domovethread" /> <input type="hidden" name="title" value="$threadinfo[title]" /> <input type="hidden" name="redirect" value="none" /> <input type="hidden" name="redirecttitle" value="$threadinfo[title]" /> <input type="hidden" name="destforumid" value="xx" /> <input type="submit" class="button" value="Move Show" /> </form> |
#3
|
||||
|
||||
Thanks!
Will check it out. --------------- Added [DATE]1239111722[/DATE] at [TIME]1239111722[/TIME] --------------- Thanks again, works great... I changed the "redirect" value from "none" to "perm" and it's leaving permanent redirects which was exactly what I needed, everything else is woking perfectly. I added it in the SHOWTHREAD template directly below the navbar, I'll make a handful of buttons for all the popular subforums and set it up so myself and senior mods see this and can quickly organize the site as we come upon threads. |
#4
|
|||
|
|||
Hello
Post move button add postbit template add ? How do I add please help |
#5
|
||||
|
||||
You want to create a button to move a post? There is already the Moderation dropdown at the bottom of the thread. Just check the box next to the post button and select Move Posts from the dropdown.
|
#6
|
|||
|
|||
moving with a single button
very important for me thank you |
#7
|
||||
|
||||
You can't move a post with a single button in the post. Moving it requires a form and you can't have a form in a post because the posts are all in a form already (you can't have a form within a form).
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|