Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Shadowbox Integration

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #51  
Old 02-11-2009, 10:58 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Shadowbox Integration

Hi beetlejuice -

One issue - in your skin1.css you have shadowbox_images defined as a class, but you are calling it as an id. If you are only using that tag once - you can change it to:

Code:
#shadowbox_images { float: left; width: 500px; }
If you call it more that once - you should leave it defined as a class in your css and change how you call it to:

Code:
<div class="shadowbox_images">
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #52  
Old 02-11-2009, 11:30 PM
  beetlejuice's Avatar 
beetlejuice beetlejuice is offline
 

eXpert
  
Join Date: Apr 2007
Posts: 251
 

Default Re: Shadowbox Integration

thanks gb2world but it made no difference, the thumbnails are still vertical.

Even if you look at chopperworx's site his thumbnails are in rows of two supposedly based on the last code. Duh!

Any other ideas to try?
__________________
XCart 4.5.4, 4.6.1, 4.64 stores
Many, many mods from Altered Cart
XCart Mods Reboot template
The XCart Store Templates and Mods
WCM CDSEO Pro
BCSE Rewards Points and Gallery Mods
and a few others
Reply With Quote
  #53  
Old 02-12-2009, 12:15 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Shadowbox Integration

There is something odd in your css file - it looks like there is a typo causing a syntax error around the line where .contact is defined. Search in you skin1.css file for .contact - remove the mismatched brackets that you find there, and see if that now allows the css to be read correctly by the browser.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #54  
Old 02-12-2009, 12:43 AM
  beetlejuice's Avatar 
beetlejuice beetlejuice is offline
 

eXpert
  
Join Date: Apr 2007
Posts: 251
 

Default Re: Shadowbox Integration

Found the offending { now have to find where that additional css came from. No other site I manage has it so a little investigation is on the cards. It helped the shadowbox a little by surrounding the thumbnails with a border but I still can't get the left alignment working.

should I use the css, or call it directly from the shadowbox_images.tpl like

Code:
<div id="shadowbox_images"> to <div "float: left; width: 500px"> {if $images ne ""} {section name=image loop=$images} {if $images[image].avail eq "Y"} {if $images[image].tmbn_url} <div class="shadowboxlinks"><a rel="shadowbox[images]" href="{$images[image].tmbn_url}" title="{$images[image].alt|escape}"><img src="{$images[image].tmbn_url}" width=75 height=75/>{$images[image].alt|escape}{if $images[image].alt|escape eq ""}{/if} </a></div> {else} <div class="shadowboxlinks"><a rel="shadowbox[images]" href="{$xcart_web_dir}/image.php?id={$images[image].imageid}&type=D" title="{$images[image].alt|escape}"><img src="{$images[image].tmbn_url}" width=75 height=75/>{$images[image].alt|escape}{if $images[image].alt|escape eq ""}{/if}</a></div> {/if} {/if} {/section} {/if} </div>

Thanks again
__________________
XCart 4.5.4, 4.6.1, 4.64 stores
Many, many mods from Altered Cart
XCart Mods Reboot template
The XCart Store Templates and Mods
WCM CDSEO Pro
BCSE Rewards Points and Gallery Mods
and a few others
Reply With Quote
  #55  
Old 02-12-2009, 01:15 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Shadowbox Integration

You should be able to use the css from your css file. You can use in-line css if you want, but, it is not necessary.

If you do use in-line, the code you posted needs to be changed.

The shadowbox_images div is intended to be the container - so you want to set it to have a width that is big enough so the divs with the class shadowboxlinks will float inside it.

something like:
#shadowbox_images { width: 500px;}

then, inside there are the floating divs with the images:

.shadowboxlinks {margin: 2px;
border: thin solid #868686;
padding: 2px;
height: 50px;
width: 50px;
float:left;
}
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #56  
Old 02-12-2009, 01:28 AM
  beetlejuice's Avatar 
beetlejuice beetlejuice is offline
 

eXpert
  
Join Date: Apr 2007
Posts: 251
 

Default Re: Shadowbox Integration

Yeehaa! Got it, thank you so much for your patience gb2world.


Dang! Got a little carried away, in FF and Opera perfecto, typically Internet Exploder 7 shows vertical thumbnails still, and even worse the dark screen overlay only, no images show. Does anybody know how much I despise IE.
__________________
XCart 4.5.4, 4.6.1, 4.64 stores
Many, many mods from Altered Cart
XCart Mods Reboot template
The XCart Store Templates and Mods
WCM CDSEO Pro
BCSE Rewards Points and Gallery Mods
and a few others
Reply With Quote
  #57  
Old 02-12-2009, 01:35 AM
  beetlejuice's Avatar 
beetlejuice beetlejuice is offline
 

eXpert
  
Join Date: Apr 2007
Posts: 251
 

Default Re: Shadowbox Integration

Alright nearly there.

Replaced

<<html xmlns="http://www.w3.org/1999/xhtml" > with

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

in home.tpl and now the images appear in IE, but the thumbnails are still vertical.

What else do I need to do? AARghhhhh!
__________________
XCart 4.5.4, 4.6.1, 4.64 stores
Many, many mods from Altered Cart
XCart Mods Reboot template
The XCart Store Templates and Mods
WCM CDSEO Pro
BCSE Rewards Points and Gallery Mods
and a few others
Reply With Quote
  #58  
Old 02-12-2009, 01:47 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Shadowbox Integration

I don't see the id shadowbox_images defined anywhere in your css. IE probably need that to be defined
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #59  
Old 02-12-2009, 02:03 AM
  beetlejuice's Avatar 
beetlejuice beetlejuice is offline
 

eXpert
  
Join Date: Apr 2007
Posts: 251
 

Default Re: Shadowbox Integration

Done!!

reloaded shadowbox_images.tpl from the original download, then re-copied KeithExtreme's version, fixed up my skin1.css and it works beautifully.

Thanks again gb2world, you've been a big help. Just as an afterthought, you wouldn't know how to make the menu on the left hide beneath the shadow boc when it's called, like the rest of the site?
I wrapped literal tags around the javascript in home.tpl and that just killed all the css for the entire site.

beetlejuice
__________________
XCart 4.5.4, 4.6.1, 4.64 stores
Many, many mods from Altered Cart
XCart Mods Reboot template
The XCart Store Templates and Mods
WCM CDSEO Pro
BCSE Rewards Points and Gallery Mods
and a few others
Reply With Quote
  #60  
Old 02-12-2009, 02:23 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Shadowbox Integration

It is probably a z-index set somewhere - the menu z-index might be set higher than the shadowbox.

You have a css file that is part of the shadowbox installation - look for shadowbox_container and set the z-index higher
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:16 AM.

   

 
X-Cart forums © 2001-2020