vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Move quick reply box from bottom of thread/page to top, under first post (https://vborg.vbsupport.ru/showthread.php?t=315389)

Jennifer2010 11-12-2014 10:30 PM

Move quick reply box from bottom of thread/page to top, under first post
 
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

Quote:

Originally Posted by nerbert (Post 2522447)
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

Quote:

Originally Posted by cellarius (Post 2522471)
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
HTML Code:

<form></form>
<form></form>

but not
HTML Code:

<form>
    <form>
    </form>
</form>

which is what you are asking for, since all posts on a page are surrounded by the inline moderation form.

Quote:

Originally Posted by Jennifer2010 (Post 2522472)
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.


All times are GMT. The time now is 06:04 PM.

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.01092 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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