Page 7 of 8 FirstFirst ... 5678 LastLast
Results 61 to 70 of 80
  1. #61
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,303
    Plugin Contributions
    1

    Default Re: Zen Magnific Support Thread - Popups

    You know what, I was almost there but your way is perfect. Thank you.

  2. #62
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,303
    Plugin Contributions
    1

    Default Re: Zen Magnific Support Thread - Popups

    A problem I have with applying ZM to popups is getting it to automatically adjust its height to popups of varying sizes.

    As I see it the global height of popups is determined by padding-top of .mfp-iframe-scaler class.

    I've seen elsewhere online mention of specifying height in the autoload functions and using a different function for each popup, although I haven't worked out how to do this yet.

    Perhaps there's an easier way?

  3. #63
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Zen Magnific Support Thread - Popups

    1.) You can create separate functions for each iframe and apply a wrapper

    Example
    $('.pop1').magnificPopup({
    type: 'iframe',
    iframe: {
    markup: '<div style="width:500px; height:200px;">'+
    '<div class="mfp-iframe-scaler" >'+
    '<div class="mfp-close"></div>'+
    '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>'+
    '</div></div>'
    }
    });

    2.) You could use CSS to apply the height (same height applies to all iframes on page)
    body#shoppingcartBody .mfp-iframe-scaler iframe.mfp-iframe {height:260px;}

    3.) You could wait till I document and package!

    Quote Originally Posted by simon1066 View Post
    A problem I have with applying ZM to popups is getting it to automatically adjust its height to popups of varying sizes.

    As I see it the global height of popups is determined by padding-top of .mfp-iframe-scaler class.

    I've seen elsewhere online mention of specifying height in the autoload functions and using a different function for each popup, although I haven't worked out how to do this yet.

    Perhaps there's an easier way?

  4. #64
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,303
    Plugin Contributions
    1

    Default Re: Zen Magnific Support Thread - Popups

    Thanks for your reply.

    I'm also experimenting with using css to display the popup information, rather than having the delay of loading a new page.

    I'll check out your upcoming mod release and compare the two.

    Cheers

    Simon

  5. #65
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Zen Magnific Support Thread - Popups

    The downside to this is you will literally have to copy the popup windows tpl file contents to the same page displaying the popup link along with moving all the language files. These are very doable just a pain in the a** when it comes to changing templates or doing future upgrades to zen-cart.

    An iframe popup takes no longer than a popup window and on some phones and tablets the popup windows are displayed as new pages all together.

    Again just my 2 cents and something to think about.

    Quote Originally Posted by simon1066 View Post
    Thanks for your reply.

    I'm also experimenting with using css to display the popup information, rather than having the delay of loading a new page.

    I'll check out your upcoming mod release and compare the two.

    Cheers

    Simon

  6. #66
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,303
    Plugin Contributions
    1

    Default Re: Zen Magnific Support Thread - Popups

    I'm not sure I'm thinking of this the same way as you.

    The css popup I'm considering, using 'hover,' would involve just putting a call to the popup_search_help language file, for example, in tpl_advanced_search_default.php and CSS appropriately. This would give an instant popup on hover over the Search Help [?] link, whereas a Zen Magnific popup would always involve a page load.

    My main thinking is to use popups more extensively to convey information on mobile devices. Hover seems to work in Android touch environment ok but I've still to test on IOS.

  7. #67
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default Re: Zen Magnific Support Thread - Popups

    Has anyone tested this mod with events calendar which displays as an iframe in a sidebox with its own dimensional settings?

    PS RBarbour wishing you well.

  8. #68
    Join Date
    Mar 2011
    Location
    Pensacola, FL
    Posts
    88
    Plugin Contributions
    4

    Default Re: Zen Magnific Support Thread

    Yes, DivaVocals. Please do and thank you!

    Quote Originally Posted by DivaVocals View Post
    Not to be nitpicky, but the description of this module states:
    Alex Clarke and NieStudio are in fact TWO different people not one and the same.. Alex Clarke is one of the original author's of Zen Lightbox. NieStudio (who's name is Daniel) took over the care and upkeep of Zen Lightbox, and then eventually developed and released Zen Colorbox..

    If you do not mind I am going to ask the admins to correct the description a tad to reflect the name correction.. Since I worked with Daniel on the testing and documentation of Zen Colorbox, I just think he deserves credit where credit is due..

  9. #69
    Join Date
    Mar 2011
    Location
    Pensacola, FL
    Posts
    88
    Plugin Contributions
    4

    Default Re: Zen Magnific Support Thread - Popups

    Quote Originally Posted by dw08gm View Post
    Has anyone tested this mod with events calendar which displays as an iframe in a sidebox with its own dimensional settings?
    I have not, but would be curious to know if there is a conflict. I would imagine not, since this doesn't use an iframe, but javascript.

  10. #70
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default Re: Zen Magnific Support Thread - Popups

    Looking for code to apply to the various popup pages eg info_shopping_cart. Struggling to work out which files to edit with what. Thanks

 

 
Page 7 of 8 FirstFirst ... 5678 LastLast

Similar Threads

  1. Zen Lightbox addon [Support Thread]
    By Alex Clarke in forum All Other Contributions/Addons
    Replies: 3726
    Last Post: 2 Feb 2026, 06:28 PM
  2. Cherry Zen Template Support Thread
    By jettrue in forum Addon Templates
    Replies: 3250
    Last Post: 13 Nov 2017, 08:02 PM
  3. Apple Zen Support Thread
    By jettrue in forum Addon Templates
    Replies: 3041
    Last Post: 26 Jun 2015, 08:44 AM
  4. Simple Zen Template - Support Thread
    By jettrue in forum Addon Templates
    Replies: 461
    Last Post: 27 Apr 2013, 01:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg