Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: edi67 on July 08, 2004, 05:10:45 AM

Title: Bar menu problem
Post by: edi67 on July 08, 2004, 05:10:45 AM
i took bar menu from one thema there but i have some problema recharching it

usually it appear so:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.ediboard.altervista.org%2Fimmagini%2Fmenu2.jpg&hash=c85086d10e5e50c057bca2bc33f034ff8c3cd462)

AND SOMETIMES APPEAR SO :

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.ediboard.altervista.org%2Fimmagini%2Fmenu1.jpg&hash=3c28935aa25811938bb152e6784fb9820a786db4)

why this difference??
Title: Re: Bar menu problem
Post by: Burpee on July 08, 2004, 07:32:21 AM
You wouldn't happen to have a link to the two differences would you?
Title: Re: Bar menu problem
Post by: edi67 on July 08, 2004, 07:37:08 AM
is menu bar of my forum there:

http://www.forumzoneru.18.com1.ru/index.php

sometimes reloading page i see menu ....all not correct done
Title: Re: Bar menu problem
Post by: Burpee on July 08, 2004, 08:05:20 AM
Well, I figure out the problem... but it'll be a little work for you...

Open BoardIndex.template.php
Find infobartopmid.gif
Inside this <td> tag, you need to insert height="36"

There's like 10 occurences in there, do it with each of them...

I do hope this will do the trick lol
Title: Re: Bar menu problem
Post by: edi67 on July 08, 2004, 08:40:38 AM
well i done  and it seems work good now....thx i try to control if all will be ok

but why i added height="36"  ?

thax friend
Title: Re: Bar menu problem
Post by: Burpee on July 08, 2004, 08:57:15 AM
Well, my best guess about your problem is that your browser probably loaded the picture as a 50x50 image and then resized it. Since the table did not have it's height defined, the browser didn't know that it had to change the table back so it kept the wrong height. Once you told the browser that it had to be 36 pixels high, it knew what to do again :D
Title: Re: Bar menu problem
Post by: edi67 on July 08, 2004, 09:20:40 AM
excellent thx  ;D
Title: Re: Bar menu problem
Post by: bloc on July 08, 2004, 11:03:07 AM
Glad you liked that bar from my theme Apollo.. ;)

Quite right, the height needs to be defined to stop it from "break"...it was designed to be the top bar with just a few buttons that would not spread to several lines in case of window resizing...therefore I did'nt set that height. If you add more buttons now and someone resize the window to under 6-700 pixels buttons will start spread to 2 lines and the bar will "break" again...
Title: Re: Bar menu problem
Post by: edi67 on July 08, 2004, 01:23:58 PM
Quote from: Bloc on July 08, 2004, 11:03:07 AM
Glad you liked that bar from my theme Apollo.. ;)

Quite right, the height needs to be defined to stop it from "break"...it was designed to be the top bar with just a few buttons that would not spread to several lines in case of window resizing...therefore I did'nt set that height. If you add more buttons now and someone resize the window to under 6-700 pixels buttons will start spread to 2 lines and the bar will "break" again...

sure very beautiful theme apollo u done very beautiful job

what do u thinkĀ  which height i must put for STOP it to break ? i dont think to add others buttons may be another one so please help me to fix it
Title: Re: Bar menu problem
Post by: bloc on July 08, 2004, 01:32:18 PM
I looked at it, and the trick is maybe to set height to the "<tr>" tag right before the "<td">'s start. Also setting nowrap="nowrap" in the td's will prevent it from breaking - the buttons will always be on one line....

Look at my theme-files again, I have updated them to reflect this.
Title: Re: Bar menu problem
Post by: edi67 on July 09, 2004, 06:55:35 AM
pity nothing to do i used your new update but always the same problems.....  :(
Title: Re: Bar menu problem
Post by: bloc on July 09, 2004, 08:08:10 AM
Well, it is supposed to be in the theme and it should work there at least. I have no objections to chopping up the theme parts if one uses them on a SMF driven forum, but I really don't want to help with it...

Not to be mean or anything, but I made a theme, not a stand-alone-bar-only...
Title: Re: Bar menu problem
Post by: edi67 on July 09, 2004, 09:01:36 AM
ok sorry bloc but may be this problem you will have in your THEME i think is only one way for help to fix it....by the way thx