Noob - prosilver - moving button positions

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Suggested Hosts
Locked
mrbump1959
Registered User
Posts: 10
Joined: Fri Nov 29, 2013 12:09 pm

Noob - prosilver - moving button positions

Post 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?
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52058
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Noob - prosilver - moving button positions

Post by Brf »

Neither.
You would edit the posting template and move the buttons.
mrbump1959
Registered User
Posts: 10
Joined: Fri Nov 29, 2013 12:09 pm

Re: Noob - prosilver - moving button positions

Post by mrbump1959 »

Ah, OK. so how do I do that.
mrbump1959
Registered User
Posts: 10
Joined: Fri Nov 29, 2013 12:09 pm

Re: Noob - prosilver - moving button positions

Post by mrbump1959 »

I guess thats, posting_layout.html
User avatar
pit-PL
Registered User
Posts: 3093
Joined: Sat Nov 21, 2009 12:24 pm

Re: Noob - prosilver - moving button positions

Post 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>
mrbump1959
Registered User
Posts: 10
Joined: Fri Nov 29, 2013 12:09 pm

Re: Noob - prosilver - moving button positions

Post 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
User avatar
Lumpy Burgertushie
Registered User
Posts: 67986
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Noob - prosilver - moving button positions

Post 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
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
Locked

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