Welcome, Guest. Please Login or Register.
August 28, 2025, 05:30:25 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Remove top menu images only? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Remove top menu images only?  (Read 624 times)
D-Man
Jr. Member
**
Posts: 72


I ain't no friggin llama!

Remove top menu images only?
« on: March 26, 2003, 12:32:32 AM »
Reply with quote

There's an option in the admin center preferences to change all gfx to text. However, I just want the top menu pics to be replaced by text...how do I do this?
Does this involve editing english.lng or another file and if so....please give me an example of how to do this.
thx  :)
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Remove top menu images only?
« Reply #1 on: March 26, 2003, 12:51:20 AM »
Reply with quote

Look in english.lng....

At the bottom is where all the images are set up.... just switch the text ones for the graphic ones....

-[Unknown]
Logged
D-Man
Jr. Member
**
Posts: 72


I ain't no friggin llama!

Re:Remove top menu images only?
« Reply #2 on: March 26, 2003, 01:05:39 AM »
Reply with quote

any chance u could give me a how-to using code examples?
Logged

Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Remove top menu images only?
« Reply #3 on: March 26, 2003, 03:57:55 AM »
Reply with quote

edit english.lng
replaceif ($MenuType == 1)withif ($MenuType == 9)
or put some other numbers beside 0-1
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Remove top menu images only?
« Reply #4 on: March 26, 2003, 03:59:53 AM »
Reply with quote

Quote from: Spaceman-Spiff on March 26, 2003, 03:57:55 AM
edit english.lng
replaceif ($MenuType == 1)withif ($MenuType == 9)
or put some other numbers beside 0-1
That would change every image, nt jsut the menu though.
Logged

Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Remove top menu images only?
« Reply #5 on: March 26, 2003, 04:21:45 AM »
Reply with quote

doh, u're right...
then u need to select it one by one that's used in the menu and replace the ones inside the if statement block above it
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
D-Man
Jr. Member
**
Posts: 72


I ain't no friggin llama!

Re:Remove top menu images only?
« Reply #6 on: March 26, 2003, 01:40:52 PM »
Reply with quote

Quote from: Spaceman-Spiff on March 26, 2003, 04:21:45 AM
doh, u're right...
then u need to select it one by one that's used in the menu and replace the ones inside the if statement block above it
I'm sorry but that sounds kinda vague..could u be more specific? thx..
Logged

Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Remove top menu images only?
« Reply #7 on: March 26, 2003, 05:39:55 PM »
Reply with quote

in english.lng, u'll see something like this:
if ($MenuType == 1)
{
   $menusep = ' | ';
   $img['admin'] = $txt[2];
   $img['delete'] = $txt[31];
   $img['email'] = $txt[69];
   $img['email_sm'] = $txt[69];
   $img['help'] = $txt[119];
...
}
else
{
   $menusep = ' ';
   $img['admin'] = '<img src="' . $imagesdir . $langimages . '/admin.gif" alt="' . $txt[2] . '" title="' . $txt[2] . '" border="0" />';
   $img['delete'] = '<img src="' . $imagesdir . $langimages . '/delete.gif" alt="' . $txt[121] . '" title="' . $txt[121] . '" border="0" />';
   $img['email'] = '<img src="' . $imagesdir . $langimages . '/email.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />';
   $img['email_sm'] = '<img src="' . $imagesdir . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '"  border="0" />';
   $img['help'] = '<img src="' . $imagesdir . $langimages . '/help.gif" alt="' . $txt[119] . '" title="' . $txt[119] . '" border="0" />';
...
}

i removed most of them because they're too long
u'll see that the name ($img[something]) is repeated in the 2nd block
the 1st block is the text version, the 2nd is image version
what u need to do is change the ones required in the menu with the text version
u'll need to change: home, help, search, profile, login, logout, register, admin, calendar & notification

the result should be like:
else
{
   $menusep = ' ';
   $img['admin'] = $txt[2];
   $img['delete'] = '<img src="' . $imagesdir . $langimages . '/delete.gif" alt="' . $txt[121] . '" title="' . $txt[121] . '" border="0" />';
   $img['email'] = '<img src="' . $imagesdir . $langimages . '/email.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />';
   $img['email_sm'] = '<img src="' . $imagesdir . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '"  border="0" />';
   $img['help'] = $txt[119];
...
}

i only did the first few lines, u gotta do the rest yourself :P
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
D-Man
Jr. Member
**
Posts: 72


I ain't no friggin llama!

Re:Remove top menu images only?
« Reply #8 on: March 27, 2003, 12:58:23 PM »
Reply with quote

Alrighty, I did what u said and that works. However now there's another thing; because it all falls under the same category the top menu images will have no dividers in between because it still thinks they are images. And if I do add a divider in that section I get dividers in between my reply, start new poll and other pics as well?
Is there any way to give JUST the top menu dividers keep my wishes in mind and/or extra spaces in between em?
« Last Edit: March 27, 2003, 01:54:24 PM by D-Man » Logged

Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Remove top menu images only?
« Reply #9 on: March 27, 2003, 10:41:53 PM »
Reply with quote

edit Subs.php, go to function template_header()
remove $menusep from the global statement
before this line $yymenu = "<a href=\"$scripturl\"...add$menusep = " | ";
or whatever divider u want
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Remove top menu images only? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.077 seconds with 20 queries.