Shape 5

Joomla Templates => Shopping Bag - Club => : naoko15 March 10, 2013, 02:14:49 AM



: Problem with login module's position
: naoko15 March 10, 2013, 02:14:49 AM
Hello, i have a problem with shape5's login module. Depending on the browser/screen it's being displayed it moves to the left or to the right. I'd like it to keep it fixed and have it to the right of the "ver pedidos" image.

Can you help me please?

Please, let me know if you need login details to my site (these are still the same as previous times)

Thank you so much.



: Re: Problem with login module's position
: mikenicoll March 11, 2013, 05:54:58 AM
Hello,

This is because it looks like you have made some custom modifications to the template that is causing the buttons to appear this way. If you view the demo site the buttons are fixed and scale accordingly so I would check any edits you have made to see what is affecting this.

-Mike


: Re: Problem with login module's position
: naoko15 March 11, 2013, 12:24:04 PM
Hello Mike, thank you for you reply. I've checked very carefully, made lots of test but can't find what's making the module move left and right.

Would you be so kind to give me a tip on this, please? I know i've moved the module a bit to the top, but how can i make it stay where i want to? What's wrong with the code? I'm desperate, i've spent many hours trying to figure this out with no success.

Thanks again.

 


: Re: Problem with login module's position
: mikenicoll March 11, 2013, 04:13:01 PM
Hello,

They way you have your layout setup is quite different than the demo. I put some CSS changes on the login button at 50% so it always stays in the middle of the page rather than using a pixel format. When using a pixel format it seems to not be working due to the way your template is set to scale.

If you are going to keep your 3rd party css edits you will need to troubleshoot problems that come up like this with your coder.

-Mike


: Re: Problem with login module's position
: naoko15 March 11, 2013, 04:57:32 PM
That's excellent! thank you so much, you're a lifesaver!! : )


: Re: Problem with login module's position
: mikenicoll March 11, 2013, 05:07:02 PM
NP

-Mike


: Re: Problem with login module's position
: naoko15 March 12, 2013, 04:06:28 AM
Sorry to bother you again, Mike. How can i make the module be (more or less) on top of the cart instead of in the middle and have it fixed? I've noticed that changing this -> right: 50%; doesn't work.

Thanks and regards.


: Re: Problem with login module's position
: mikenicoll March 12, 2013, 11:29:54 PM
Hello,

The way your layout is setup where resizing the window will decrease the entire template you can really only have it at the 50% mark and not move from what I can tell so its always dead on in the middle.

If you change it to 20% for example it will stay at 20% but your template is scaling down so in the codes view it is staying correctly at 20% to the right of the page but the template is reducing in size substantially.

You would need to hard code it to be part header or something so they scale together and not separately.

-Mike


: Re: Problem with login module's position
: naoko15 March 13, 2013, 02:03:09 AM
I see, but how can i do this? I've noticed the login module is already coded in the index at the header


: Re: Problem with login module's position
: mikenicoll March 13, 2013, 03:59:01 PM
Hello,

I will have to play with it a bit and see if this can be done without a lot of custom coding. I will let you know what I find.

-Mike


: Re: Problem with login module's position
: naoko15 March 14, 2013, 04:29:32 AM
Thanks : )


: Re: Problem with login module's position
: mikenicoll March 14, 2013, 04:06:48 PM
Hello,

Here is the response from our development team:
The browser zoom looks as best as it can but there are no specific CSS calls or javascript to interact and change position, etc when zooming in.  There is no web developing that I know of that goes on for this. I would just let the user know this. 

I mean perhaps he could change up his CSS and play with it and then check zooming in to see but this is outside the scope of forum support really as he's custom coding in the login position.

-Mike


: Re: Problem with login module's position
: naoko15 March 15, 2013, 05:08:41 PM
Ok, no problem, Mike. I'll try a different approach.

One more question: how can i change the "welcome" text in the login module for a text with a link?

I tried changing this in index.php:

<div class="s5_welcome s5_highlightcolor">
 <a href="cuenta-de-usuario">ver pedidos[/url]   
<?/*php echo JText::_('SB_WELCOME') */?>
</div>

But it doesn't work : /



: Re: Problem with login module's position
: mikenicoll March 16, 2013, 07:32:13 PM
Hello,

You would need to wrap it with custom coding as an href pointing to the URL directly in the login module's folder.

-Mike


 


: Re: Problem with login module's position
: naoko15 March 17, 2013, 02:07:09 AM
Thank you Mike, but the strange thing is that no text whatsoever is being displayed in the login module even if i test it like this:

<div class="s5_welcome s5_highlightcolor">
CUSTOM TEXT
<?/*php echo JText::_('SB_WELCOME') */?>
</div>

So, the href is not working either.


: Re: Problem with login module's position
: naoko15 March 19, 2013, 08:08:54 AM
Hello? is there a solution for this? This is the code i've put in index.php:

<div class="s5_welcome s5_highlightcolor">
                         <a href="cuenta-de-usuario">mi cuenta[/url]   
         </div>

But this is the code that Firebug says it's displayed:

<div class="s5_welcome s5_highlightcolor">
                         
                   </div>

It's very strange : /


: Re: Problem with login module's position
: mikenicoll March 19, 2013, 08:07:01 PM
Hey,

Sorry I actually misread what you were trying to do here. The Welcome text is generated from here.

templates/shopping_bag/language/en-GB/en-GB.tpl_shoppingbag.ini at line 10 change to -

SB_WELCOME="YOURTEXTHERE"

You could maybe remove this by just using SB_WELCOME= "" and custom code a custom HTML module up in the header using the Vertex Guide that is just a URL redirect. That would probably be the easiest way.

-Mike




: Re: Problem with login module's position
: naoko15 March 20, 2013, 04:59:21 AM
I tried that already, but since i can't align the login module as i need to because it won't stay in its place when zooming, that solution doesn't work for me. I need the href to be right next to the login module, and this keeps moving  : (


: Re: Problem with login module's position
: mikenicoll March 21, 2013, 11:17:13 PM
Hello,

There isn't really anything you can do with the way your template is setup. If the user is using zoom it is going to resize everything and the position of the module will change. You would need to add multiple lines of custom coding to have it scale this way or remove the custom coding you are using for the template and use it like the demo where the Login/Register links are.

-Mike