If this is your first visit, check our documentation. To post, register or login.

Zen Magnific Support Thread

Started by mutinyzoo on 12 Nov 2013, 6:41 PM · Views: 12,237

Results 41 to 60 of 80
15 Jun 2014, 5:03 PM
#41
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Post #41 by divavocals

yaritai:

I know that Image Handler 4 has a auto install method. And since you mention nothing about going back to compare the magnific files I can only assume that you did not merge back in the core files that both of them share? So go back and treat magnific as a reinstall and see what files need to be modified and it will work after that.

Not the "fault" of the auto-installer.. In the IH4 instructions it is stated that in order to use with certain lightbox mods some merging "pre-install" might need to be done..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

15 Jun 2014, 5:06 PM
#42
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Post #42 by divavocals

picaflor-azul:

I posted a moment too soon! I removed the code for image handler (image handler is not installed in the template package) in includes/modules/override/additional_images.php and now all seems to be working ;)

Thanks,

Anne

Given that others have reported that this module and IH4 work together, perhaps an errant merge might be at the root of the issue???

Getting ready to post an enhancement update to IH4 (thanks to some cool new code contributed by a fellow Zenner). Since we've looked at integration with other lightbox modules, I'll look at this one too and include any instructions/insight in the readme as has been done for other lightbox modules..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

15 Jun 2014, 5:38 PM
#43
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Post #43 by picaflor_azul

DivaVocals:

Given that others have reported that this module and IH4 work together, perhaps an errant merge might be at the root of the issue???

Getting ready to post an enhancement update to IH4 (thanks to some cool new code contributed by a fellow Zenner). Since we've looked at integration with other lightbox modules, I'll look at this one too and include any instructions/insight in the readme as has been done for other lightbox modules..

No, the image handler code was in the module package file. Since image handler is not installed in the template package by default, I had to remove the code .

Thanks,

Anne

15 Jun 2014, 8:30 PM
#44
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Post #44 by divavocals

picaflor-azul:

No, the image handler code was in the module package file. Since image handler is not installed in the template package by default, I had to remove the code .

Thanks,

Anne

Interesting.. that's exactly how Zen Colorbox and Zen Lightbox are and they do not have issues when IH4 is not installed.. Hmmmmmmmm...

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

15 Jun 2014, 9:01 PM
#45
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Post #45 by divavocals

picaflor-azul:

No, the image handler code was in the module package file. Since image handler is not installed in the template package by default, I had to remove the code .

Thanks,

Anne

DivaVocals:

Interesting.. that's exactly how Zen Colorbox and Zen Lightbox are and they do not have issues when IH4 is not installed.. Hmmmmmmmm...

Okay well I'm GUESSING that the code in question is here: includes/modules/YOUR-TEMPLATE-FOLDER/additional_images.php lines 84-88.

//  Begin Image Handler changes 1 of 2
//next line is commented out for Image Handler
//  $flag_has_large = file_exists($products_image_large);
    $flag_has_large = true;
//  End Image Handler changes 1 of 2

This looks like OLD outdated IH2 code.. IMAGE HANDLER TWO??????????????????????????????????:shocking: WHAT????????????????

Should probably be (taken from Zen Colorbox):

//  Begin Image Handler changes 1 of 2
    if (function_exists('handle_image')) {
        $newimg = handle_image($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, '');
        list($src, $alt, $width, $height, $parameters) = $newimg;
        $products_image_large = zen_output_string($src);
    } 
    $flag_has_large = file_exists($products_image_large);
//  End Image Handler changes 1 of 2

Haven't tested this but given the roots of this module, I think it will work..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

15 Jun 2014, 10:01 PM
#46
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Post #46 by rbarbour

I have an updated version of this plugin I will be uploading soon.

Complete with install files for IH4 and without.
Detailed install instructions for ez-pages, listing pages, center-boxes, side-boxes, existing popups.
Added admin config to use hosted jquery, google CDN or none

18 Jun 2014, 6:08 PM
#47
mutinyzoo avatar

mutinyzoo

New Zenner

Join Date:
Mar 2011
Location:
Pensacola, FL
Posts:
88
Plugin Contributions:
2

Post #47 by mutinyzoo

rbarbour:

I have an updated version of this plugin I will be uploading soon.

Complete with install files for IH4 and without.
Detailed install instructions for ez-pages, listing pages, center-boxes, side-boxes, existing popups.
Added admin config to use hosted jquery, google CDN or none

Very awesome, Ray. Sounds quite thorough. Let me know if I can be of any assistance.

19 Jun 2014, 12:11 AM
#48
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Post #48 by rbarbour

Time for my free contributions has been very limited lately, I could use a second set of eyes testing and hands documenting!

mutinyzoo:

Very awesome, Ray. Sounds quite thorough. Let me know if I can be of any assistance.

19 Jun 2014, 12:53 AM
#49
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Post #49 by divavocals

rbarbour:

Time for my free contributions has been very limited lately, I could use a second set of eyes testing and hands documenting!

slowly raises hand my time is limited too, but now that I have a proper place to do testing I can/will volunteer..:D

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

19 Jun 2014, 3:02 AM
#50
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Post #50 by rbarbour

v2.0

Just to recap

New Features

  • Fully Compatible with IH4
  • New Magnific Image Lightbox Zoom In/Out Feature
  • Comes with latest version jQuery
  • Option to use packaged jQuery, jQuery CDN or none (for those already using jQuery)
  • Option to use on New, Specials, Featured, All, Advanced Search Result and Product Listing Pages
  • Option to use on New, Specials & Featured Side-boxes
  • Option to use on New, Specials & Featured Center-boxes
  • Option to use on all ZC stock popup windows

New Admin Configs

  • Use Magnific Lightbox for New Products Side-box

  • Use Magnific Lightbox for Specials Products Side-box

  • Use Magnific Lightbox for Featured Products Side-box

  • Use Magnific Lightbox for New Products Center-box

  • Use Magnific Lightbox for Specials Products Center-box

  • Use Magnific Lightbox for Featured Products Center-box

  • Use Magnific Lightbox on Product Listing Pages

  • Use Magnific Lightbox on Advanced Search Result Pages

  • Use Magnific Lightbox on New Products Pages

  • Use Magnific Lightbox on Specials Products Pages

  • Use Magnific Lightbox on Featured Products Pages

  • Use Magnific Lightbox on All Products Pages

  • Use Magnific Lightbox for Shopping Cart [help (?)] Popup

  • Use Magnific Lightbox for Checkout Shipping Estimator Popup

  • Use Magnific Lightbox for Checkout Coupon Help Popup

  • Use Magnific Lightbox for Checkout Credit Card CVV Help Popup

  • Use Magnific Lightbox for Log-In Page [More Info] Popup

  • Use Magnific Lightbox for Product Info Attributes Qty Price Popup

  • Use Magnific Lightbox for Advanced Search Search Help [?] Popup

  • jQuery Options

  • Lightbox Zoom In/Out Setting

DEMO

I added better quality images to DVD Movies Categories to better show off the Demo

@DivaVocals, thank you for offering, I will forward to you via email.

19 Jun 2014, 1:04 PM
#51
yaritai avatar

yaritai

Zen Follower

Join Date:
Apr 2014
Posts:
154
Plugin Contributions:
0

Post #51 by yaritai

DivaVocals:

Not the "fault" of the auto-installer.. In the IH4 instructions it is stated that in order to use with certain lightbox mods some merging "pre-install" might need to be done..

Umm.. Where in my comment had I put the fault on the IH4 auto-installer. Basically my comments was taken in good light from the OP who had the issue. Sometimes they just need a little tip on what may be wrong and in fact that was the case as from the OP issues that was the most logical thing that may have gone wrong.

19 Jun 2014, 1:32 PM
#52
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Post #52 by divavocals

yaritai:

Umm.. Where in my comment had I put the fault on the IH4 auto-installer. Basically my comments was taken in good light from the OP who had the issue. Sometimes they just need a little tip on what may be wrong and in fact that was the case as from the OP issues that was the most logical thing that may have gone wrong.

Okay..... got it..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

13 Jul 2014, 12:48 PM
#53
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Post #53 by ellivir

rbarbour:

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({

I have a conflict with easy slider (that is in the front page / index) and I can get the product pages working well with the Magnific but the front page and product listing pages are both using modules/pages/index and there comes a conflict when putting content images in category description using Magnific. If I add the file jscript_zen_magnific.php to the pages/index, the front page slider gets a conflict. If I do not add, all works without errors except I can't of course get the Magnific working on the product listing category description page because that uses the index as a base.

I used the no conflict code and the issue remains. I can even get the pop up images in the content of the product category description working but then the EasySlider is totally broken and the slides tiled around the front page.

I may be blond but at least I found Zen.

13 Jul 2014, 6:14 PM
#54
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Post #54 by rbarbour

Can you post a link to your site?

ellivir:

I have a conflict with easy slider (that is in the front page / index) and I can get the product pages working well with the Magnific but the front page and product listing pages are both using modules/pages/index and there comes a conflict when putting content images in category description using Magnific. If I add the file jscript_zen_magnific.php to the pages/index, the front page slider gets a conflict. If I do not add, all works without errors except I can't of course get the Magnific working on the product listing category description page because that uses the index as a base.

I used the no conflict code and the issue remains. I can even get the pop up images in the content of the product category description working but then the EasySlider is totally broken and the slides tiled around the front page.

3 Aug 2014, 2:04 PM
#55
numptydave avatar

numptydave

New Zenner

Join Date:
May 2010
Posts:
3
Plugin Contributions:
0

Post #55 by numptydave

When will the v2 be available? All I can find to download is the 1.6 version.

Thanks in advance.

--
Just another numpty

29 Sep 2014, 7:31 AM
#56
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Post #56 by simon1066

rbarbour:

I have an updated version of this plugin I will be uploading soon.

Complete with install files for IH4 and without.
Detailed install instructions for ez-pages, listing pages, center-boxes, side-boxes, existing popups.
Added admin config to use hosted jquery, google CDN or none

Although I'm not quite ready to benefit from this new version, I was wondering whether this update is imminent.

I already use this for product images and would like to use Zen Magnific for existing popups. I'll be attempting customisation myself and from a brief look at the code I'll no doubt be posting a few questions.

Cheers

Simon

Simon

29 Sep 2014, 7:39 AM
#57
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Post #57 by rbarbour

It's actually real easy to add to other images and popups. I have been ill for the past few months and haven't had much time to allocate to much of anything.

I will do my best to get this complete, in the meantime if in the forums I will help where I can.

simon1066:

Although I'm not quite ready to benefit from this new version, I was wondering whether this update is imminent.

I already use this for product images and would like to use Zen Magnific for existing popups. I'll be attempting customisation myself and from a brief look at the code I'll no doubt be posting a few questions.

Cheers

Simon

29 Sep 2014, 8:05 AM
#58
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Post #58 by simon1066

Thank you and I hope you're recovering from your illness.

Good to know that the customisation is not too difficult to achieve, I'll let you know if I get stuck.

Cheers

Simon

Simon

14 Oct 2014, 7:02 AM
#59
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Post #59 by simon1066

In an attempt to get popups displaying with Zen Magnific, I have been partially successful in doing so with popup_search_help.

Having

  1. Added jscript_zen_magnific.php to pages > advanced_search folder

  2. Put this code in tpl_advanced_search_default

if (ZEN_MAGNIFIC_STATUS == 'true') {
  if (ZEN_MAGNIFIC_GALLERY_MODE == 'true' && ZEN_MAGNIFIC_GALLERY_MAIN_IMAGE == 'true') {
    $relBOF = '<div class="html-code grid-of-images popup-gallery">';
    $relEOF = '</div>';
  } else {
    $relBOF = '<div class="html-code grid-of-images popup">';
    $relEOF = '</div>';
  }
?>
<div style="margin-right:10px;" class="forward">
<script language="javascript" type="text/javascript"><!--
document.write('<?php echo $relBOF . '<a href="http://mydomain.com/index.php?main_page=popup_search_help">' . TEXT_SEARCH_HELP_LINK . '</a>' . $relEOF; ?>');
//--></script></div>
<?php // EOF (ZCadditions (rbarbour) edits) ?>
<?php } else { ?>
<?php // eof Zen Magnific 2012-04-30 niestudio ?>

<div style="margin-right:10px;" class="forward"><?php echo '<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_SEARCH_HELP) . '\')">' . TEXT_SEARCH_HELP_LINK . '</a>'; ?></div>

<?php } ?>
  1. Changed 'type' from image to iframe in autoload_default.php

I can, after clicking on the search help(?) link, get a ZM popup to appear but with a dark background and the help text too dark to read. I don't want to fiddle with the css until I know I'm doing the right thing.

I'm guessing my issue lies with using the correct class with which to display the popup_search_help content, i.e. "html-code grid-of-images popup-gallery" may not be correct, nor might "mainClass: 'mfp-img-mobile'" in autoload_default.php. I've used some of the classes and css from rbarbour's demo site but there are potentially so many classes involved that it's got a little confusing.

It may be that I'm approaching this popup coding the wrong way but I've now run out of ideas, any suggestions?

Cheers

Simon

Simon

14 Oct 2014, 8:31 AM
#60
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Post #60 by rbarbour

easiest way:

1 - /includes/classes/zen_magnific/autoload_default.php

add:

$(document).ready(function() {

	$('.popup-windows').magnificPopup({
		type: 'iframe',
showCloseBtn: <?php echo ZEN_MAGNIFIC_SHOWCLOSEBTN;?>,
tClose: '<?php echo ZEN_MAGNIFIC_TCLOSE;?>',
closeOnBgClick: <?php echo ZEN_MAGNIFIC_CLOSEONBGCLICK;?>,
closeBtnInside: <?php echo ZEN_MAGNIFIC_CLOSEBTNINSIDE;?>,
		modal: false
	});

});

2 - upload jscript_zen_magnific.php to /includes/modules/pages/advanced_search

3 - all that needs to be done now is to add a class to a new link replacing the popup window link

in /includes/templates/YOUR_TEMPLATE/templates/tpl_advanced_search_default.php

find

<div class="forward"><?php echo '<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_SEARCH_HELP) . '\')">' . TEXT_SEARCH_HELP_LINK . '</a>'; ?></div>

replace with

<?php 
// define admin config defaults if admin configs not set.
if (!defined('ZCA_MAGNIFIC_SEARCH_POPUP')) define('ZCA_MAGNIFIC_SEARCH_POPUP', 'true');

   if (ZCA_MAGNIFIC_SEARCH_POPUP == 'true') {
  echo '<div class="forward"><a href="' . zen_href_link(FILENAME_POPUP_SEARCH_HELP) . '" class="popup-windows">' . TEXT_SEARCH_HELP_LINK . '</a></div>';
} else {
  echo '<div class="forward"><a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_SEARCH_HELP) . '\')">' . TEXT_SEARCH_HELP_LINK . '</a></div>';
} ?>

As you can see all my testing is complete, admin configs added and ready to upload, just have to document it.