|
|
Home Forum |
Lightbox & More Images with tabs (0 viewing)
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
Skye (User)
Fresh Boarder
Posts: 9
|
|
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."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 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
|
|
|
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
Skye (User)
Fresh Boarder
Posts: 9
|
|
Re:Lightbox & More Images with tabs 4 Years, 6 Months ago
|
|
|
|
|
|
|
|
|
|
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
|
|
|
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
Skye (User)
Fresh Boarder
Posts: 9
|
|
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
|
|
|
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
|
|
|
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
|
|
|
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
|
|
|
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
|
|
|
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. |
|
|
|
|
|
|
|