News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Remove Tabs

Started by Joe N, February 15, 2009, 06:55:24 AM

Previous topic - Next topic

LadyC

sorry, i'm not familiar with bksmf. is your board hosted by a third party? if so, you may not be able to access the necessary file.

i've gotta go for now or i'll miss the donuts at church!

Joe N

It is Vista Panel

See attachment for more details
Microsoft: "We Need to Imagine Life Without Walls."
I Say: "If There are No Walls Who needs Windows."



My Mods (6) All My Mods Updated To SMF 2.0 RC2 and SMF 1.1.10!


LadyC

ok, so you do have ftp access, and also a file manager within the cpanel, so you can either download and then upload via your cpanel, or you can use an ftp program to download/upload.

to do it through your cpanel, click "file manager" underneath the heading "ftp manager" on the upper right column. then browse to the sources folder, then find subs.php.

it's easier to edit offline than online through the file manager, if you ask me...

Antechinus

#23
Hang on. Is he running 1.1.8 or RC1? If he's on 1.1.8 the tabs are all controlled in index.template.php.

ETA: Oh and definitely do this offline in a file editor and keep a backup copy of the file in case you make a mistake with your editing.
I've never used crimson editor but Notepad++ is very good (not the standard Windows Notepad).

http://sourceforge.net/project/showfiles.php?group_id=95717&package_id=102072

I wouldn't bother with Dreamweaver for this job.

LadyC

really? in 1.1.8 it's in a different file? how weird... i first edited the tabs in the subs.php file when i was running 1.1.7... and it's in the subs file for RC1... wonder why on earth they changed it in between...

Joe N

I am using 1.1.8

Sorry I didn't say  :-[
Microsoft: "We Need to Imagine Life Without Walls."
I Say: "If There are No Walls Who needs Windows."



My Mods (6) All My Mods Updated To SMF 2.0 RC2 and SMF 1.1.10!


LadyC

no problem. still seems very odd to me that it would change in 1.8 and change back in 2.0rc1, since they were both released on the same day. very, very odd. i mean, i know that in the other versions, the menu is referenced in the index.template, but the tabs are defined in the subs.php file.

but anyway, look for the array in the index.template.php. i'm assuming the code will at least be the same.

Antechinus

The display of the tabs is controlled in index.template.php in all versions of 1.1.x. This is why adding buttons is such a pain with custom themes in 1.1.x and why the system was changed for SMF 2. If you want to change your menu in 1.1.x forget about Subs.php and edit index.template.php.

And don't make assumptions about the code being the same. For 1.1.x it varies between themes.

Kentarre

Thank you for this info. Finally found what I was looking for. Just wanted to edit the help tag into a blog tab. :)
In version 1.1.11 this is the code being looked for: (I think)

// Show the [help] button.
echo '<li><a' , $current_action=='help' ? ' class="current"' : '' , ' href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>';

Nick Whetstone

* Ha² points out that this thread is nearly a year old. :P

But, I'm glad you got your tab to work for you. :)
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

Advertisement: