Latest Forum Posts
Home arrow Forum
Design Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Lightbox & More Images with tabs (0 viewing) 
Go to bottom Post Reply Favoured: 0
TOPIC: Lightbox & More Images with tabs

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#400
Skye (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Lightbox & More Images with tabs 4 Years, 6 Months ago  
Good morning all,

I have implemented Mark's lovely mod with a slight modification that you might find helpful.

If you have added the tabs and slide area to your flypage to show additional images, etc (basically so that it looks similar to the demo on this site) - and you only want the tab that has the thumbnails of the additional images to show IF there are additional images, then you can modify the mod using the following code.

PAGE: shop.product_details.php

REPLACE -

Code: :

 $template str_replace"{prod_keywords}"$prod_keywords$template );



WITH

Code: :

  $template str_replace"{prod_keywords}"$prod_keywords$template ); $moreimages_tab "

More Images

".$more_images."Click thumbnail to change main image if there is more than one image available."; if ($more_images "") { $template str_replace"{moreimages_tab}"$moreimages_tab$template ); } else { $template str_replace"{moreimages_tab}"""$template ); }



Additionally on your flypage - Replace the tag for the More images tab

More Images

with this -->{moreimages_tab}


I created this as some of the products that I sell have multiple images, and other don't. This will eliminate the need to have the tab show up if you don't need it to.

Skye
 
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#410
Cerberos (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Re:Lightbox & More Images with tabs 4 Years, 6 Months ago  
Hello and ty for this.

You are saying: "
If you have added the tabs and slide area to your flypage to show additional images"

Is that a special addon i havent found yet?
 
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#411
Skye (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Re:Lightbox & More Images with tabs 4 Years, 6 Months ago  
You can check out additional notes about how to implement tabs at the following link:

http://design.markcallf.co.uk/forum/3-LightBox-More-Images/80-component-in-different-tab.html
 
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#1192
intersys (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Lightbox & More Images with tabs 4 Years, 1 Month ago  
Hello - thanks for this mod. I'm trying to implement it but the code is a bit confusing as it appears here. The line that is confusing begins with $moreimages_tab = "

Any help would be greatly appreciated

Thank You,
steve
 
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#1193
Skye (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Re:Lightbox & More Images with tabs 4 Years, 1 Month ago  
Oh wow, it actually created a tab in the code box.

Let's try this without code box and see if it works:

REPLACE:
$template = str_replace( "{prod_keywords}", $prod_keywords, $template );

WITH THIS:
$template = str_replace( "{prod_keywords}", $prod_keywords, $template );

$moreimages_tab = "{ tab = More Images }".$more_images."<br /><span class=smalltext>Click thumbnail to change main image if there is more than one image available.</span>";
if ($more_images > "") {
$template = str_replace( "{moreimages_tab}", $moreimages_tab, $template );
} else {
$template = str_replace( "{moreimages_tab}", "", $template );
}

** Remove the spaces in { tab = More Images } everywhere except the space between More and Images, before implementing.

Additionally on your flypage - Replace the tag for the More images tab

{more_images}

with this -->{moreimages_tab}
 
 
Last Edit: 2008/01/02 04:50 By Skye.
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#1195
intersys (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Lightbox & More Images with tabs 4 Years, 1 Month ago  
Perfect - thanks so much for the quick reply

steve
 
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#1217
element95 (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Re:Lightbox & More Images with tabs 4 Years, 1 Month ago  
For some reason i don't even have this --->


$template = str_replace( "{prod_keywords}", $prod_keywords, $template );


any ideas?
 
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#1219
intersys (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Lightbox & More Images with tabs 4 Years, 1 Month ago  
the prod_keywords refers to the series of lines beginning with $template = str_replace
each line has a keyword like navigation_pathway
product_name
product_image

The section of code begins with the comment NOW LET'S BEGIN AND FILL THE TEMPLATE

hope that helps
 
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#1220
element95 (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Re:Lightbox & More Images with tabs 4 Years, 1 Month ago  
Got it. Well i have the tabs and all but thumbs won't show now.
 
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#1221
intersys (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Lightbox & More Images with tabs 4 Years, 1 Month ago  
This is what mine looks like - I added the code right after this line:


$template = str_replace( "{product_packaging}", $product_packaging, $template ); // Changed Packaging


so it looks like this now:


$template = str_replace( "{product_packaging}", $product_packaging, $template ); // Changed Packaging
$moreimages_tab = "{xtab=More Images}".$more_images."<br /><span class=smalltext>Click thumbnail to change main image if there is more than one image available.</span>";
if ($more_images > "") {
$template = str_replace( "{moreimages_tab}", $moreimages_tab, $template );
} else {
$template = str_replace( "{moreimages_tab}", "", $template );
}

Make sure to change xtab to tab
 
 
Last Edit: 2008/01/10 23:22 By intersys.
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop