How to make Attachments tab first options tab.

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
Blankxs
Registered User
Posts: 2
Joined: Thu May 16, 2019 6:41 pm

How to make Attachments tab first options tab.

Post by Blankxs » Thu May 16, 2019 6:48 pm

Hi All,

I have looked through pages of code and still cannot find where to do this.
When the user posts they are shown an options panel at the bottom 'Options' 'Attachments' 'Poll Creation'.
I would like to make the Attachments tab the first tab (active), instead of options tab being first active.

Does anyone know how to do this?
Thanks
Attachments
posting-options.PNG
posting-options.PNG (19.9 KiB) Viewed 363 times

User avatar
eeji
Jr. Style Validator
Posts: 1074
Joined: Fri Dec 12, 2008 9:08 pm
Location: Manchester, UK
Contact:

Re: How to make Attachments tab first options tab.

Post by eeji » Thu May 16, 2019 7:13 pm

open posting_editor.html

on line 109 find:

Code: Select all

<div id="tabs" class="tabs sub-panels" data-show-panel="<!-- IF SHOW_PANEL -->{SHOW_PANEL}<!-- ELSE -->options-panel<!-- ENDIF -->" role="tablist">
replace with:

Code: Select all

<div id="tabs" class="tabs sub-panels" data-show-panel="<!-- IF SHOW_PANEL -->{SHOW_PANEL}<!-- ELSE -->attach-panel<!-- ENDIF -->" role="tablist">
Upload to your style and clear your cache :)

Blankxs
Registered User
Posts: 2
Joined: Thu May 16, 2019 6:41 pm

Re: How to make Attachments tab first options tab.

Post by Blankxs » Thu May 16, 2019 7:33 pm

Hi,

Ahh thank you! That is the change I had made previously but I wasnt seeing it on the front end. I thought I was going mad!
I didnt realise I had to purge the cache after changes. Thanks :D

Post Reply

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