How to get a default active attachment-panel in Posting?

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Ideas Centre
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
BigBlockMopar
Registered User
Posts: 90
Joined: Tue Mar 08, 2005 3:15 pm

How to get a default active attachment-panel in Posting?

Post by BigBlockMopar »

...instead of the posting options-panel which is currently always the default panel...

(The theme is ProSilver)
I've fumbled around a little in posting_editor.html and got the 'Upload attachment'-panel to the leftside of the 'options'-panel, but now I want it to show the Attachment-panel first as default.

Any ideas what to change?


Here's the original code:

Code: Select all

		<div id="tabs">
			<ul>
				<li id="options-panel-tab" class="activetab"><a href="#tabs" onclick="subPanels('options-panel'); return false;"><span>{L_OPTIONS}</span></a></li>
				<!-- IF S_SHOW_ATTACH_BOX --><li id="attach-panel-tab"><a href="#tabs" onclick="subPanels('attach-panel'); return false;"><span>{L_ADD_ATTACHMENT}</span></a></li><!-- ENDIF -->
				<!-- IF S_SHOW_POLL_BOX || S_POLL_DELETE --><li id="poll-panel-tab"><a href="#tabs" onclick="subPanels('poll-panel'); return false;"><span>{L_ADD_POLL}</span></a></li><!-- ENDIF -->
			</ul>
		</div>

And here's what I tried, but didn't work yet;

Code: Select all

		<div id="tabs">
			<ul>
				<!-- IF S_SHOW_ATTACH_BOX --><li id="attach-panel-tab" class="activetab"><a href="#tabs" onclick="subPanels('attach-panel'); return false;"><span>{L_ADD_ATTACHMENT}</span></a></li><!-- ENDIF -->

				<li id="options-panel-tab"><a href="#tabs" onclick="subPanels('options-panel'); return false;"><span>{L_OPTIONS}</span></a></li>

				<!-- IF S_SHOW_POLL_BOX || S_POLL_DELETE --><li id="poll-panel-tab"><a href="#tabs" onclick="subPanels('poll-panel'); return false;"><span>{L_ADD_POLL}</span></a></li><!-- ENDIF -->
			</ul>
		</div>
Signatures are overrated...
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: How to get a default active attachment-panel in Posting?

Post by ameeck »

Open posting_buttons.html
and change:

Code: Select all

var show_panel = 'options-panel';
to

Code: Select all

var show_panel = 'attach-panel';
BigBlockMopar
Registered User
Posts: 90
Joined: Tue Mar 08, 2005 3:15 pm

Re: How to get a default active attachment-panel in Posting?

Post by BigBlockMopar »

Thank you, works perfectly!
Signatures are overrated...
Locked

Return to “[3.0.x] Support Forum”