RE: FN-FORUM: osCommerce and Lightbox
date posted 6th November 2007 17:10
Hi Carrie, Steve,
Thanks for this - the effects that Steve mentioned were very similar to the
ones I was getting. I put on the STS Template system, so that I could modify
the code from template.html; this worked OK. However, when I put the links
to the 3 js files, and 1 to the css file, this either showed images at the
bottom of the screen, or just showed the same popup box as before. I tried
this on both the normal index.php file which comes in the root folder of any
osCommerce install (i.e. \catalog), as well as the template file, but I did
not have any joy with either.
I have not had any opportunity to put the site I have been working up yet; I
have been working on a XAMPP based environment as a test, and will be
putting something up very shortly. However, for the purposes of this,
imagine that you have a clean install of osCommerce, with the STS template
system installed - I have not changed anything else. I pretty much put the
css and js file links on the product_info.php page, along with 'removing'
(read commenting out) the original code for popups, and replacing it with
the new code for Lightbox popups. I will take another look again tonight, as
I got so confused last time, and will let you know what happens - hopefully
along with a URL if I am still having a problem!
Thanks for helping - it is appreciated!
Alex.
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Carrie
Sent: 06 November 2007 11:06
To: FN-FORUM / [EMAIL REMOVED]
Subject: Re: FN-FORUM: osCommerce and Lightbox
Alex Libby wrote:
> Hi all,
>
> I am trying to get Lightbox JS v2
> (http://www.huddletogether.com/projects/lightbox2/) working with
> osCommerce; I have tried just about all of the addins I can find on
> http://addons.oscommerce.com, but with no joy. I follow various
> instructions to the letter, but usually either end up with some weird
> and funky effects below my template page, or that the standard window
> popup still appears. I am using the STS template system on it - it is a
new build.
>
> Has anyone out there had experience of how to do it, and if so, could
> you please let me know how you got on? I am relatively new to
> osCommerce, but can understand PHP, so can follow instructions - if
> any one has any ideas, tips, etc, I'd be really grateful!
>
> Thanks,
>
> Alex.
>
>
Hi Alex sorry for the digression.
I inplemeted lightbox2 for a site recently and was terribly confused for
about 4 hours.
Check that the css files are accessible from your template as I had stuff
appearing at the bottom of the page - I had mistyped a url for the css file,
but it looked too similar to the correct one(I am a bit
dyslexic) an so I did't spot it for ages.
Also make sure that it can see the javascript too.
Firefox extensions should be a help here as you can easily follow the
javascript. And check that the CSS is being loaded.
HTH
Carrie
--
Freelancers, contractors earn more with Prosperity4 Call 0870 870 4414 or
visit www.prosperity4.com and benefit from Inland Revenue approved expenses
today.
To advertise here: http://www.freelancers.net/advertising.html