Home arrow Forum Mambo-SMF login Menu out of place using dynamic width template
  Welcome, Guest. Please login or register.
Did you miss your activation email?
September 07, 2008, 03:56:02 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Mambo-SMF 1.2.x
| | | |-+  Mambo-SMF login Menu out of place using dynamic width template
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Mambo-SMF login Menu out of place using dynamic width template  (Read 2321 times)
aravot
Joomla Pro
**

Karma: +0/-2
Offline Offline

Posts: 89


test/test


View Profile WWW
Mambo-SMF login Menu out of place using dynamic width template
« 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 from template chooser select 'rhuk_solarflare_ii_dw' you'll see what I mean. (see pic)

username: test
password: pastest
Logged
opener
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile WWW
Re: Mambo-SMF login Menu out of place using dynamic width template
« Reply #1 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
Logged
aravot
Joomla Pro
**

Karma: +0/-2
Offline Offline

Posts: 89


test/test


View Profile WWW
Re: Mambo-SMF login Menu out of place using dynamic width template
« Reply #2 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.
« Last Edit: March 31, 2005, 06:46:05 PM by aravot » Logged
opener
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile WWW
Re: Mambo-SMF login Menu out of place using dynamic width template
« Reply #3 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
Logged
aravot
Joomla Pro
**

Karma: +0/-2
Offline Offline

Posts: 89


test/test


View Profile WWW
Re: Mambo-SMF login Menu out of place using dynamic width template
« Reply #4 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)
Logged
opener
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile WWW
Re: Mambo-SMF login Menu out of place using dynamic width template
« Reply #5 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
Logged
aravot
Joomla Pro
**

Karma: +0/-2
Offline Offline

Posts: 89


test/test


View Profile WWW
Re: Mambo-SMF login Menu out of place using dynamic width template
« Reply #6 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.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal.
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use