New Zenner
- Join Date:
- Mar 2011
- Posts:
- 88
- Plugin Contributions:
- 2
New Zenner
Totally Zenned
mutinyzoo:
I'm uploading a zen cart module for adding Magnific Pop-Up image display to Zen Cart. It can be seen in action at Renaissance Man Inc . com
New Zenner
Totally Zenned
mutinyzoo:
It does include code to work with additional images, as you can see at the RenaissanceManInc.com site. It's a responsive lightbox which fills the page with image at whatever size the page is in. I only included a tpl_product_info_display file, but adding to other pages is as simple as adding a div surrounding whichever image or images you want to be part of the lightbox. Just submitted now, so will post an alert when and if it is approved. Also thanks to picaflor azul for the responsive template that inspired it.
New Zenner
rbarbour:
Thank you for packaging it.
Totally Zenned
mutinyzoo:
A pleasure. I hope someone will be inspired to incorporate the many options into a MySql update so that they can be configured from the Admin. Maybe it will be me.
New Zenner
rbarbour:
As stated earlier I have incorporated this plugin in many projects.
I have already added several sql statements for my version. If you want to pm me your file I will take a look at it and see what changes I have to make to my sql and forward it back to you.
New Zenner
New Zenner
Totally Zenned
Graniteman22:
Everything else seems to be working fine. Everything loaded into the Admin- config correctly and all other files are in the correct place. When I click on an image, the screen darkens like it is supposed to and the arrows are present when there are additional images. But the actual images don't show up. I just finished making the website live so the revised web address is http://cumingsmemorials.com.
$(document).ready(function() {
$('#whatever_class_or_id').whatever_function({var jq = $.noConflict();
jq(document).ready(function() {
jq('#whatever_class_or_id').whatever_function({New Zenner
rbarbour:
The plugin you are using on the above site is not zen magnific, and the images are loading fine in my browser.
You may need to clear your catch.
If you have in fact swapped out zen magnific for another, it will be hard to diagnose the issue but my first guess would be a jQuery conflict in which case you could swap any jQuery code
from this:
$(document).ready(function() { $('#whatever_class_or_id').whatever_function({
to:
var jq = $.noConflict(); jq(document).ready(function() { jq('#whatever_class_or_id').whatever_function({
New Zenner
Graniteman22:
I had actually just uninstalled zen_magnific and installed fual slimbox. I am sure I will like zen_magnific much better so I will uninstall fual slimbox and reinstall zen_magnific and let you know when I have reinstalled it so you can look at it.
New Zenner
Totally Zenned
vojtechjan:
I would like to use it also with "additional images" of product uploaded via ImageHandler. I dunno where to change stuff to make it so. Anyone having same problem ?
New Zenner
Zen Follower
if (zen_not_null($review->fields['products_model'])) {
$products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>';
} else {
$products_name = $review->fields['products_name'];
}// Uncomment the following 4 lines to show the model number on tpl_product_reviews_default.php
// if (zen_not_null($review->fields['products_model'])) {
// $products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>';
// } else {
$products_name = $review->fields['products_name'];
// }Totally Zenned
paul3648:
Thanks for this.
I would suggest making the following changes to includes/modules/pages/product_reviews/header_php.php
Line 42 - 46:
if (zen_not_null($review->fields['products_model'])) { $products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>'; } else { $products_name = $review->fields['products_name']; }
change to:
// Uncomment the following 4 lines to show the model number on tpl_product_reviews_default.php // if (zen_not_null($review->fields['products_model'])) { // $products_name = $review->fields['products_name'] . '<br /><span class="smallText">[' . $review->fields['products_model'] . ']</span>'; // } else { $products_name = $review->fields['products_name']; // }
Otherwise the product model shows up and messes with the alignment.
Zen Follower
Totally Zenned
yaritai:
Love this mod better than the zenlightbox I was using. But I want to ask if this error is going to cause issues in the display of the site in certain instances.
When viewing the page source, the closing </body> tag is in red. So I went to the w3c validation and it is showing that some divs are not being closed. So I then went into admin and turned off zen maginific and the error went away. After turning it back on, I checked more pages of my site. And I was able to track it down to the issue only happening when additional images are loaded. I am able to replicate it on one of the dev site posted here.
Single main image - http://www.renaissancemaninc.com/index.php?main_page=product_info&cPath=41&products_id=303
Additional image page - http://www.renaissancemaninc.com/index.php?main_page=product_info&cPath=41&products_id=307
This is the exact issue I was having so I went back to lightbox for now just in case it affects the display of the site. Hopefully though I can go back to this mod as it does load quicker than lightbox on mobile devices.
Zen Follower
rbarbour:
I have made several changes to this mod, including the missing </div> tags for additional images. Should have completely documented and packaged in the next few days.
Destination thread ID and reason are required when shown.
Tell staff why this post should be reviewed.
Required for login, security, and core site functionality.
Help us understand how the site is used so we can improve it.
Used for promotion and personalized campaign measurement.