Forum Support

Shape 5
March 29, 2024, 05:44:05 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Small conflict between lightbox.css and slimbox.css  (Read 637 times)
107727gb
Jr. Member
**
Offline Offline

Posts: 117



« on: February 25, 2009, 09:14:35 AM »

Hi there,

I can't find what happens, but I have a small conflict between  "/templates/emercantilism/css/lytebox.css" and "slimbox.css" from one of my components.

In FF3, Opera, Safari and Chrome everything works fine and my images open as should be, but in IE7 and 8 beta the images in my lightbox stay dark grey and the PREV and NEXT buttons don't appear. This could be because the component uses another lightbox? I think it is slimbox.css, but I can't fix it myself. So, any idea what happens?

Look here and click on "Bekijk hier alle kaarten" and try opening an image by clicking on it: http://www.sjaaltjes.com/index.php?option=com_rwcards&view=rwcards&Itemid=67

Regards,
Gabriel
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #1 on: February 26, 2009, 01:35:19 PM »

Yes you are correct, the lytebox.js file is using the same Javascript.  Did you try disabling the lytebox or do you also need this feature for other pages on your site?
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
107727gb
Jr. Member
**
Offline Offline

Posts: 117



« Reply #2 on: February 27, 2009, 01:06:04 AM »

Well, all my virtuemart product pages use the lytebox of course (the big images), so that's a problem I think.

There's no conflict between lytebox and slimbox in the other browsers. Only in IE7 and 8. So, maybe it is possible to let the eCard component make use of the template lytebox .js/.css instead to disable the lytebox? Or will Virtuemart automatically use the slimbox when I disable the lytebox?

Gabriel
Logged
107727gb
Jr. Member
**
Offline Offline

Posts: 117



« Reply #3 on: February 27, 2009, 08:57:54 AM »

I tried to disable the lytebox in the admin backend (eMercantilism template option shape5)
No difference.

G

Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #4 on: March 03, 2009, 11:33:59 AM »

Ah ok, Im sorry I thought you meant this was occurring in VirtueMart but I see it is another component.  If you can provide me FTP details to your site I can edit the code so that the lytebox from our templates aren't used on your components pages.
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
107727gb
Jr. Member
**
Offline Offline

Posts: 117



« Reply #5 on: March 03, 2009, 01:04:12 PM »

Hi Jonah,

I pm'd you my FTP path.

Keep in mind that I need the lytebox in Virtuemart for showing the big product images.

Thank you!
Gabriel
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #6 on: March 03, 2009, 03:13:27 PM »

Ok you should be good to go, what I did was the following:

In your index.php I changed all instances of:

Code:
if (JRequest::getVar('option') == 'com_virtuemart' ) {
 } else {

To:

Code:
if (JRequest::getVar('option') == 'com_virtuemart' ) {
 } else if (JRequest::getVar('option') == 'com_rwcards' ) {
} else {

This accommodates for the third party component you are using and says not to use lytebox CSS or javascript when this component is running.

Regards,
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
107727gb
Jr. Member
**
Offline Offline

Posts: 117



« Reply #7 on: March 06, 2009, 03:48:25 AM »

Thank you Jonah,

Everything seems working fine (knock on wood)

Regards,
Gabriel.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.