Move posting buttons under attachment area

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Move posting buttons under attachment area

Post by RMcGirr83 »

Find this in posting_editor.html

Code: Select all

	<!-- IF not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
	<div class="panel bg2">
		<div class="inner">
		<fieldset class="submit-buttons">
			{S_HIDDEN_ADDRESS_FIELD}
			{S_HIDDEN_FIELDS}
			<!-- EVENT posting_editor_submit_buttons -->
			<!-- IF S_HAS_DRAFTS --><input type="submit" accesskey="d" tabindex="8" name="load" value="{L_LOAD_DRAFT}" class="button2" onclick="load_draft = true;" />&nbsp; <!-- ENDIF -->
			<!-- IF S_SAVE_ALLOWED --><input type="submit" accesskey="k" tabindex="7" name="save" value="{L_SAVE_DRAFT}" class="button2" />&nbsp; <!-- ENDIF -->
			<input type="submit" tabindex="5" name="preview" value="{L_PREVIEW}" class="button1"<!-- IF not S_PRIVMSGS --> onclick="document.getElementById('postform').action += '#preview';"<!-- ENDIF --> />&nbsp;
			<input type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" class="button1 default-submit-action" />&nbsp;

		</fieldset>

		</div>
	</div>
	<!-- ENDIF -->
and move it to just before this in the same file which is a few lines down

Code: Select all

<!-- IF not S_SHOW_DRAFTS and not $SIG_EDIT eq 1 -->
Not sure what will happen when composing PM's though.

You will have to purge the cache to get the change to show and with any update you will have to apply the same once updated.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26502
Joined: Fri Aug 29, 2008 9:49 am

Re: Move posting buttons under attachment area

Post by Mick »

RMcGirr83 wrote: Sun Dec 03, 2017 11:17 amYou will have to purge the cache to get the change to show
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Move posting buttons under attachment area

Post by david63 »

longip wrote: Mon Dec 18, 2017 8:01 pm Maybe just a stupid question: but why is that not default ?
I mean the user write the reply, attach the file and click send. This seems to me very, very logic.
Probably because the vast majority of posts do not have attachments
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
Hanakin
Front-End Dev Team Lead
Front-End Dev Team Lead
Posts: 1065
Joined: Wed Dec 30, 2009 8:14 am
Name: Michael Miday
Contact:

Re: Move posting buttons under attachment area

Post by Hanakin »

It’s because you placed it before that block of code and not after it
User avatar
Mannix_
Registered User
Posts: 1838
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt
Contact:

Re: Move posting buttons under attachment area

Post by Mannix_ »

To make it work you need to move the code RMcGirr83 suggested to the posting_layout.html and posting_pm_layout.html
In posting_layout.html past it before

Code: Select all

 <!-- EVENT posting_layout_include_panel_body -->
In posting_pm_layout.html before

Code: Select all

<!-- IF S_DISPLAY_REVIEW --><!-- INCLUDE posting_topic_review.html --><!-- ENDIF -->
Did I helped You? Consider a donation.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
Post Reply

Return to “[3.2.x] Styles Support & Discussion”