Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • black mamba Friend
    #173966

    Hi,

    I have a problem with a module position on the page with JoomShopping.
    The module does not stay on the right side, but falls down

    It is interesting to work on the contact page and k2.

    Please Help!

    JoomShopping, Elastica, Joomla 2.5.1

    http://www.canecorso-stenci.com

    aspik Friend
    #438710

    <em>@black mamba 301014 wrote:</em><blockquote>Hi,

    I have a problem with a module position on the page with JoomShopping.
    The module does not stay on the right side, but falls down

    It is interesting to work on the contact page and k2.

    Please Help!

    JoomShopping, Elastica, Joomla 2.5.1

    http://www.canecorso-stenci.com</blockquote>

    do not download jQuery 2 times!
    This component has its own loading jQuery. disable it in them

    Change the script the template in the

    <script type="text/javascript">

    jQuery(function(jQuery){
    var jQuerycontainer = jQuery('#ja-main');

    var curr_layout = '';
    var colW = 0;

    //detect layout width
    if (jQuery(window).width() >= 720) {
    curr_layout = 'fixed';
    colW = 240;
    } else {
    curr_layout = 'fluid';
    colW = jQuerycontainer.width() / 2;
    }
    //init layout masonry
    jQuerycontainer.masonry({
    itemSelector: '.ja-masonry',
    columnWidth : colW,
    isAnimated: true,
    isResizable: true
    });

    var reloadMasonry = function () {
    jQuerycontainer.masonry( 'reload' );
    };

    //change columnWidth depend on the wrapper width, specify for this template
    jQuery(window).bind( 'smartresize.masonry', function() {
    //detect layout width
    if (jQuery('#ja-main').width() >= 720) {
    //fix width layout - reload one time
    if (curr_layout != 'fixed') {
    curr_layout = 'fixed';
    jQuerycontainer.masonry( 'option', { columnWidth: 240, isResizable: true } );
    jQuerycontainer.masonry( 'reload' );
    }
    } else {
    //update column width
    jQuerycontainer.masonry( 'option', { columnWidth: jQuerycontainer.width() / 2, isResizable: false } );
    //reload layout
    jQuerycontainer.masonry( 'reload' );

    curr_layout = 'fluid';
    }
    });

    // Check bricks height changed - relayout
    jQuery(function (){
    //store height for all bricks
    jQuery('.ja-masonry').each (function(i, el){
    var el = jQuery(this);
    el.data('h', el.height());
    });

    //interval check
    jQuerycontainer.data('interval-timer', setInterval(function () {
    //detect change on masonry bricks height
    jQuery('.ja-masonry').each (function(i){
    var el = jQuery(this);
    if (el.data('h') != el.height()) {
    el.data('h', el.height());
    reloadMasonry ();
    return false;
    }
    });
    }, 2000));
    });
    });
    </script>

    black mamba Friend
    #438737

    Long live aspik !!!

    Double jQuery load is crucial thing.
    I didn’t use your script.
    I didn’t know where is the file should be applied for.

    I found a solution on the JoomSopping forum.
    http://www.webdesigner-profi.de/joomla-webdesign/joomla-shop/forum/posts/26/1495.html?lang=en

    insert if (!$load)

    File; /components/com_jshopping/lib/factory.php
    Line; #136
    Function; loadJsFiles()


    function loadJsFiles(){
    static $load;
    if (!$load){
    $document =& JFactory::getDocument();
    if (!jQuery) {
    $document->addCustomTag('<script type = "text/javascript" src = "'.JURI::root().'components/com_jshopping/js/jquery/jquery-1.6.2.min.js"></script>');
    }
    $document->addCustomTag('<script type = "text/javascript">jQuery.noConflict();</script>');
    $document->addCustomTag('<script type = "text/javascript" src = "'.JURI::root().'components/com_jshopping/js/jquery/jquery.media.js"></script>');
    $document->addCustomTag('<script type = "text/javascript" src = "'.JURI::root().'components/com_jshopping/js/functions.js"></script>');
    $document->addCustomTag('<script type = "text/javascript" src = "'.JURI::root().'components/com_jshopping/js/validateForm.js"></script>');
    $load = 1;
    }
    }

    but your help was very useful for me.

    Thanks again.

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  black mamba 12 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum