Joomla Forum

Joomla Hacks => Mambo-SMF 1.2.x => Topic started by: aravot on March 31, 2005, 02:10:44 PM



Title: Mambo-SMF login Menu out of place using dynamic width template
Post by: aravot on March 31, 2005, 02:10:44 PM
Mambo-SMF login Menu out of place using SolarFlare dynamic width template.

Go to My Test Website (http://mambo.peterosipof.com/mambo/) from template chooser select 'rhuk_solarflare_ii_dw' you'll see what I mean. (see pic)

username: test
password: pastest


Title: Re: Mambo-SMF login Menu out of place using dynamic width template
Post by: opener on March 31, 2005, 05:28:25 PM
Hi, aravot!

It seems like you have fixed it.  I just logged in with the test password on Firefox and the menu appeared where it should have been.  However, if you noticed, your 'Forgot your password?' link extends outside of the left column and the last couple of characters are cut off.

Possibly the problem could be the margin-right: 5px; style of the login module which is hardcoded in the login module itself.  I had to hack the code to remove that because it was causing problems with my template as well.  I don't even know why that is there - I think it is part of the legacy code from Orstio's module and it sure does not do anything useful.  Explorer does not like margins on floated elements and does not always interpret them correctly.  So, try removing it and see what happens...

Regards,
opener


Title: Re: Mambo-SMF login Menu out of place using dynamic width template
Post by: aravot on March 31, 2005, 06:42:31 PM
Could yo please try it with IE and let me know, seems ok with FireFox.

I have no clue of programming, could you please tell me from where I need to remove the margin 5px code that you are talking about.


Title: Re: Mambo-SMF login Menu out of place using dynamic width template
Post by: opener on March 31, 2005, 09:10:03 PM
Hm, I just tested it in IE and the menu looks fine when I am logged in again.  I use Windows 2000 and IE 6.0.  It may vary depending on the versions you are using.  However, in IE the text wrapping of the link 'Forgot your password?' extends outside the graphics of the button which kind of messes things up a bit.

I have to admit that I have hacked the login module considerably and I don't know if that is the issue that may cause the floating of the menu.  However, if you want to try fixing it, unzip the mod_mambo_smf_login_1.2.zip file.  Inside it you will find a file called mod_smf_login.php.  On line 49 of the file you will find the code:

   <div class="modules" style="position: relative; margin-right: 5px;">

replace that with:

   <div class="modules" style="position: relative;">

or, in my personal opinion, even with:

   <div class="modules">

However, you have a bigger problem with the fact that the text is too much to fit on top of the link button which is graphical and not easy to resize on the fly.  Your best bet is to shorten the phrase.  Instead of 'Forgot your password?' you could possibly have it say something like 'Lost password?'.

You can replace that in your SMF templage language file /[forum]/Templates/[default]/languages/index.english.php (in this link, replace the [forum] with the directory where your SMF forum is installed and  [default] with the name of the Theme you are using).  In that file, on line 208 find the code:

$txt[315] = 'Forgot your password?';

and replace it with:

$txt[315] = 'Lost password?';

That should fix the overflow problem.  Hope that sorts it out for you.

Regards,
opener


Title: Re: Mambo-SMF login Menu out of place using dynamic width template
Post by: aravot on March 31, 2005, 09:23:29 PM
Thanks for the info.

It’s weird after reading your post I went to my neighbors house he has Windows 2000 SP4 and IE same result as before Login is out of place tried it on my laptop same result as before.

Desktop: windows XP SP1 and IE (latest version)
Laptop: Desktop: windows XP SP2 and IE (latest version)


Title: Re: Mambo-SMF login Menu out of place using dynamic width template
Post by: opener on March 31, 2005, 09:33:42 PM
Hmm, this is indeed strange.  Unfortunately, outside of what I suggested earlier, I am fresh out of ideas.  I do remember that somebody was saying somewhere on the Mambo forums that they have had problems running SMF inside the solarflare templates.  Is there another template you can try instead?

Regards,
opener


Title: Re: Mambo-SMF login Menu out of place using dynamic width template
Post by: aravot on March 31, 2005, 10:00:57 PM
I am working on a website based on that template I guess I can use some other template have to look for something nice.

By the way I checked it with opera it's ok, I guess it's IE only.


Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com