Page 1 of 1

Noob - prosilver - moving button positions

Posted: Sun Dec 01, 2013 3:27 pm
by mrbump1959
I would like to change, and seperate, the positions of the, load draft/Save draft/preview/submit.

So that, load draft/Save draft/preview buttons are to the left and the submit button to the right.

Is there a mod available or do I need to change the code?

Re: Noob - prosilver - moving button positions

Posted: Sun Dec 01, 2013 3:30 pm
by Brf
Neither.
You would edit the posting template and move the buttons.

Re: Noob - prosilver - moving button positions

Posted: Sun Dec 01, 2013 3:54 pm
by mrbump1959
Ah, OK. so how do I do that.

Re: Noob - prosilver - moving button positions

Posted: Sun Dec 01, 2013 10:02 pm
by mrbump1959
I guess thats, posting_layout.html

Re: Noob - prosilver - moving button positions

Posted: Tue Dec 03, 2013 5:23 pm
by pit-PL
In posting_editor.html change

Code: Select all

			<!-- 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;
to

Code: Select all

			<div class="left-box">
			<!-- 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;
			</div>
			<div class="right-box">
			<input type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" class="button1 default-submit-action" />&nbsp;
			</div>

Re: Noob - prosilver - moving button positions

Posted: Wed Dec 04, 2013 3:01 pm
by mrbump1959
That gives me an error;
Parse error: syntax error, unexpected '}' in F:\xampp\htdocs\phpbb\cache\tpl_prosilver_posting_editor.html.php on line 255

Re: Noob - prosilver - moving button positions

Posted: Wed Dec 04, 2013 3:17 pm
by Lumpy Burgertushie
mrbump1959 wrote:That gives me an error;
Parse error: syntax error, unexpected '}' in F:\xampp\htdocs\phpbb\cache\tpl_prosilver_posting_editor.html.php on line 255
you made a mistake in editing the file. go back and try again.

robert