Jump to content
Sign in to follow this  
digilee

Solar Signin

Recommended Posts

I couldn't find a contribution that already did this so i built it myself:

 

With a few small code changes and uploading of 4 files, you can fade in a signin box.

See it in action at http://solarfrenzy.com

 

Grab the contribution here:

http://addons.oscommerce.com/info/5529


SolarFrenzy

Solar powered gadgets at down to earth prices.

 

CheekyNaughty

Promoting British Design

Share this post


Link to post
Share on other sites

Hi. I have tried to implement this addon. But instead of the small screen shown in the reference site, it opens a normal new page. Can anyone tell me whats wrong?

 

Thanks.

Share this post


Link to post
Share on other sites

Double check that you have assigned the height/ width and the class:

?height=160&width=300" class="smoothbox"

 

Also check that you have the correct js files and that they are referenced correctly.

<script type="text/javascript" src="/smoothbox.js"></script>

<script type="text/javascript" src="/mootools.v1.11.js"></script>


SolarFrenzy

Solar powered gadgets at down to earth prices.

 

CheekyNaughty

Promoting British Design

Share this post


Link to post
Share on other sites

The url is showing correctly "solarsignin.php?height=160&width=300"

 

For the src of javafiles should I include it from "/oscommerce/catalog/sm/smoothbox.js" or just /sm/smoothbox.js is ok???

Share this post


Link to post
Share on other sites

what's the url?

Can't tell what the path should be without seeing your code.


SolarFrenzy

Solar powered gadgets at down to earth prices.

 

CheekyNaughty

Promoting British Design

Share this post


Link to post
Share on other sites

These are the changes i made:

1. Uploaded the following files to C:\xampp\htdocs\oscommerce\catalog\sm

smoothbox.css

smoothbox.js

mootools.js

 

2. Uploaded the following file to C:\xampp\htdocs\oscommerce\catalog and made the changes

solarsignin.php

 

<link rel="stylesheet" href="sm/smoothbox.css" type="text/css" media="screen" />
 <script type="text/javascript" src="sm/smoothbox.js"></script>
 <script type="text/javascript" src="sm/mootools.js"></script>

 

3. Made the following changes in \includes\languages\english.php

 

define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="solarsignin.php?height=160&width=300" class="smoothbox">Sign In</a>?;

 

Now can you tell me whats wrong??

 

Thanks.

Share this post


Link to post
Share on other sites

i had the same problem, i fixed it by doing 2 things... i'm not sure which one did it but here it is anyways:

 

1)instead of using smoothbox.css i copied the content of smoothbox.css into my stylesheet.css

 

2) when i downloaded mootools.v1.11.js i named it mootools.js so this time i renamed it back to mootools.v1.11.js (i'm pretty sure this was the problem)

 

and... it works now :)


Designrfix.com | Graphic Design Inspiration & Web Design Resources - @designrfix

Share this post


Link to post
Share on other sites

I am having problems with IE6 and FireFox. I cannot get it to work. The loading gif just keeps loading.


"There is no disgrace in not knowing, the only disgrace is not to be willing to learn." ...Benjamin Franklin

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×