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
  #31  
Old 12-25-2008, 03:46 PM
 
KeithXtreme KeithXtreme is offline
 

Advanced Member
  
Join Date: Mar 2008
Location: Oklahoma
Posts: 46
 

Default Re: Shadowbox Integration

Well I uninstalled everything and tried to Lytebox/dynamic images a try....same thing, it only opens a window and does not use the shadowbox effect....

But if you uncheck detailed images open in seperate window box and click on the image at the bottom of page for detailed images...it works.....

Its burning me out.....LOL
__________________
http://www.chopworx.com
Gold Version 4.1.11
Fancy Categories
Shipper Per Product
Featured Products
Gallery V3
Store Manager
Reply With Quote
  #32  
Old 12-30-2008, 12:58 PM
 
KeithXtreme KeithXtreme is offline
 

Advanced Member
  
Join Date: Mar 2008
Location: Oklahoma
Posts: 46
 

Default Re: Shadowbox Integration

I give up....Lytebox and dynamic images never worked, not matter what I did....Lytebox seemed slow anyways....

Uninstalled everything......tried shadowbox again, but it will not call the flash shadowbox. Image just opens in the same window.

I know it all has to do with 4.1.11....everything worked before I upgraded.....although I have gallery running using the Lightbox effect and it works great....
__________________
http://www.chopworx.com
Gold Version 4.1.11
Fancy Categories
Shipper Per Product
Featured Products
Gallery V3
Store Manager
Reply With Quote
  #33  
Old 01-05-2009, 04:26 PM
 
KeithXtreme KeithXtreme is offline
 

Advanced Member
  
Join Date: Mar 2008
Location: Oklahoma
Posts: 46
 

Default Re: Shadowbox Integration

Well found out what was having the conflict.....Fancy categories when it is turned off....shadowbox works....

Now just have to figure out how to fix it.....
__________________
http://www.chopworx.com
Gold Version 4.1.11
Fancy Categories
Shipper Per Product
Featured Products
Gallery V3
Store Manager
Reply With Quote
  #34  
Old 01-06-2009, 01:52 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

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

Default Re: Shadowbox Integration

Once you find that javascript applications conflict with each other - a good place to look for issues is in the initialization and window.onload events. (Fancy categories requires onload events and so does shadowbox.) You can find information about these kinds of issues in the shadowbox forums. The best methods I've found to keep all your javascript initializations clean are described in the link I've posted in #25.
__________________
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

The following user thanks gb2world for this useful post:
acidon (01-23-2010)
  #35  
Old 01-06-2009, 02:28 PM
 
KeithXtreme KeithXtreme is offline
 

Advanced Member
  
Join Date: Mar 2008
Location: Oklahoma
Posts: 46
 

Default Re: Shadowbox Integration

gb2world, thanks for that..... I found it, in home.tpl in the <body> tag.....there was this...

{$reading_direction_tag}{if $body_onload ne ''} onload="javascript: {$body_onload}"{/if}

this for Fancy, I can pull it and run fancy without javascript and shadowbox works....I need to figure out the best way from your link add this back in.....
__________________
http://www.chopworx.com
Gold Version 4.1.11
Fancy Categories
Shipper Per Product
Featured Products
Gallery V3
Store Manager
Reply With Quote
  #36  
Old 01-08-2009, 11:16 AM
 
KeithXtreme KeithXtreme is offline
 

Advanced Member
  
Join Date: Mar 2008
Location: Oklahoma
Posts: 46
 

Default Re: Shadowbox Integration

If you have more than one detailed image, you get image 1, image 2.....etc. I changed the label name to Detailed Image....

But How would i change it so even if there are multiple images it only Displays "Detailed Image" once....
__________________
http://www.chopworx.com
Gold Version 4.1.11
Fancy Categories
Shipper Per Product
Featured Products
Gallery V3
Store Manager
Reply With Quote
  #37  
Old 01-09-2009, 08:52 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 can add a variable that is set the first time in the loop. The first time through the loop, you can display the text, then on subsequent times through, make the links hidden.

Here are some hints with which you can begin to experiment:

Something like this before the loop in shadowbox_images.tpl:
{assign var="i_counter" value=1}

then:

{if $i_counter eq 1}

Then display the first link and text as you want

{else}

The hef class should be hidden, something like:

<a rel="shadowbox[images]" href="{$images[image].tmbn_url}" title="{$images[image].alt|escape}" class="hidden">image</a>

then set the variable before you exit the loop

{assign var="i_counter" value=0}
{/section}
__________________
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
  #38  
Old 01-11-2009, 10: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

Hi KeithExtreme -

Sorry - I forgot to include the css for the class called hidden - this would need to be included with your css:

.hidden {display: none;}
__________________
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
  #39  
Old 01-11-2009, 11:51 AM
 
KeithXtreme KeithXtreme is offline
 

Advanced Member
  
Join Date: Mar 2008
Location: Oklahoma
Posts: 46
 

Default Re: Shadowbox Integration

I got close, but cannot figure it out......this is what I have.... it only shows one link, but it also only uses one image in flash....
I tried many things, but either the text was all gone and there where 4x magnifing glass...or nothing showed at all.....

{if $images ne ""}
{assign var="i_counter" value=1}
{section name=image loop=$images}
{if $images[image].avail eq "Y"}
{if $images[image].tmbn_url}
{if $i_counter eq 1}
<div class="shadowboxlinks"><a rel="shadowbox[images]" class="shadowbox" href="{$images[image].tmbn_url}" title="{$images[image].alt|escape}"><img src="{$ImagesDir}/zoom.gif" alt="{$lng.lbl_click_to_enlarge|escape}" /> {$images[image].alt|escape}{if $images[image].alt|escape eq ""}{$lng.lbl_image}{*math equation="value+1" value=$smarty.section.image.index*}{/if}</a></div>{/if}
{else}
<div class="shadowboxlinks"><a rel="shadowbox[images]" class="hidden" href="{$xcart_web_dir}/image.php?id={$images[image].imageid}&type=D" title="{$images[image].alt|escape}"><img src="{$ImagesDir}/zoom.gif" alt="{$lng.lbl_click_to_enlarge|escape}" /> {$images[image].alt|escape}{if $images[image].alt|escape eq ""}{$lng.lbl_image}{*math equation="value+1" value=$smarty.section.image.index*}{/if}</a></div>
{/if}
{/if}
{assign var="i_counter" value=0}
{/section}
{/if}
__________________
http://www.chopworx.com
Gold Version 4.1.11
Fancy Categories
Shipper Per Product
Featured Products
Gallery V3
Store Manager
Reply With Quote
  #40  
Old 01-11-2009, 12:23 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

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

Default Re: Shadowbox Integration

Maybe try removing the zoom.gif in the else section of you code - does this work:

...

{else}
<div class="shadowboxlinks">
<a rel="shadowbox[images]" class="hidden" href="{$xcart_web_dir}/image.php?id={$images[image].imageid}&type=D" title="{$images[image].alt|escape}">image</a>
</div>
{/if}
__________________
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 12:00 AM.

   

 
X-Cart forums © 2001-2020