Making the attachment tab the default tab

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
tonyjms2005
Registered User
Posts: 184
Joined: Fri Feb 08, 2008 6:52 pm

Making the attachment tab the default tab

Post by tonyjms2005 »

Hi

As default the posts options are the active tab when accessing the posting editor,

How can I make the upload tab the active tab (always on top)
1.png
1.png (8.44 KiB) Viewed 514 times
Tribute to Them

http://tributetothem.com/phpbb3/index.php

Let their memory Live. Forever!
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51579
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Making the attachment tab the default tab

Post by stevemaury »

OPEN styles/prosilver/template/posting_editor.html

FIND:

Code: Select all

<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 -->
REPLACE WITH:

Code: Select all

<li id="options-panel-tab" ><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" class="activetab"><a href="#tabs" onclick="subPanels('attach-panel'); return false;"><span>{L_ADD_ATTACHMENT}</span></a></li><!-- ENDIF -->
Then purge the cache.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
tonyjms2005
Registered User
Posts: 184
Joined: Fri Feb 08, 2008 6:52 pm

Re: Making the attachment tab the default tab

Post by tonyjms2005 »

Hi

Excellent! thank you!

Antony
Tribute to Them

http://tributetothem.com/phpbb3/index.php

Let their memory Live. Forever!
clight77
Registered User
Posts: 907
Joined: Sun May 11, 2003 11:09 pm

Re: Making the attachment tab the default tab

Post by clight77 »

Hi :)
I was looking to do the same thing, but the code change you mentioned does not seem to work in prosilver v3.0.12 at least not for me.

Does anyone have any suggestions ?

As always
Thanks in advance.
I Follow Up On My Posts.
So Should Everybody...
clight77
Registered User
Posts: 907
Joined: Sun May 11, 2003 11:09 pm

Re: Making the attachment tab the default tab

Post by clight77 »

I found what I was looking for:
viewtopic.php?f=46&t=582652&p=3208296&h ... b#p3208296


Thanks :)
I Follow Up On My Posts.
So Should Everybody...
Locked

Return to “[3.0.x] Support Forum”