View Full Version : Move quick reply box from bottom of thread/page to top, under first post
Jennifer2010
11-12-2014, 10:30 PM
Anyone know how I can move the quick reply box from the bottom of the page to the top of the page under the first post in the thread?
Thank you
nerbert
11-12-2014, 11:53 PM
I'm sure someone will post saying this won't work because it would put a form inside a form, but I opened a quick reply under a post and used a dev tool to look through the HTML and it is in fact a form inside a form (quick_reply inside inlinemodform)
Am I wrong? Check it out.
Jennifer2010
11-13-2014, 12:17 AM
I'm sure someone will post saying this won't work because it would put a form inside a form, but I opened a quick reply under a post and used a dev tool to look through the HTML and it is in fact a form inside a form (quick_reply inside inlinemodform)
Am I wrong? Check it out.
Shouldn't really be a form inside of a form since all we're doing is copying the quick reply form code and placing it in a different location on the same page.
cellarius
11-13-2014, 03:50 AM
A page can have several forms. Now its a form under a form. But you can't nest forms, which you would have to to have the editor under the first post.
Jennifer2010
11-13-2014, 03:53 AM
A page can have several forms. Now its a form under a form. But you can't nest forms, which you would have to to have the editor under the first post.
Interesting. So we can't have to two reply boxes on the same page? Even if one is created separately (not copied) as a separate form?
What about a form that once submitted, copies the content of the form, to the real quick reply box form and submits it?
cellarius
11-13-2014, 06:18 AM
You do not understand. You can have two forms on a page (probably not two quick reply instances, since for other reasons you probably can't instantiate the editor twice at the same time), you just cannot nest them.
You can have
<form></form>
<form></form>
but not
<form>
<form>
</form>
</form>
which is what you are asking for, since all posts on a page are surrounded by the inline moderation form.
What about a form that once submitted, copies the content of the form, to the real quick reply box form and submits it?
You can do that, as long as the form is not inside another form. Meaning: You can't do what you want this way. See above.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.