Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • csuki Friend
    #178054

    Hello,

    I need an urgent assistance. On my page (links and stuff provided) the pager plugin doesn’t work. I’m using K2 for all articles. Are there any solution or configuration?

    Thank you for your help.

    Wall Crasher Developer
    #457157

    Hi csuki,

    I have checked and see that infinity-scroll.js plugin is in conflict with ‘sh404sef’ plugin.

    I have disabled ‘sh404sef’ and your site is working fine now.

    If you need to use ‘sh404sef’, you may need to customize javascript infinity-scroll.js.

    Regards

    brandpress Friend
    #459884

    After hiring a developer to find a way to fix this problem here is the solution he found.

    He changed the file located at templatesja_walljswall.js with the attached file in this post.

    He also said that other people may have to change the line 101 of this javascript depending of their joomla configurations.

    If anyone would like to see it working, have a look at http://www.brandpress.com.br

    Hope it helps,

    Best Regards,
    Felipe


    1. wall.zip
    ncase Friend
    #460976

    <em>@brandpress 328663 wrote:</em><blockquote>After hiring a developer to find a way to fix this problem here is the solution he found.

    He changed the file located at templatesja_walljswall.js with the attached file in this post.

    He also said that other people may have to change the line 101 of this javascript depending of their joomla configurations.

    If anyone would like to see it working, have a look at http://www.brandpress.com.br

    Hope it helps,

    Best Regards,
    Felipe</blockquote>

    <3 very much.

    Maksimovič Artur Friend
    #463391

    <em>@brandpress 328663 wrote:</em><blockquote>After hiring a developer to find a way to fix this problem here is the solution he found.

    He changed the file located at templatesja_walljswall.js with the attached file in this post.

    He also said that other people may have to change the line 101 of this javascript depending of their joomla configurations.

    If anyone would like to see it working, have a look at http://www.brandpress.com.br

    Hope it helps,

    Best Regards,
    Felipe</blockquote>

    Hello brandpress,

    The file you provided works great on the front page, but it doesn’t work when viewing separate categories:
    On he home page the pagination link is /?page=2, so this code works great:

    catch(err){
    this.path = '/?page=2';
    this.number = this.path.match(/(page[=-])(d*)&*/i)[2] || 2;
    }

    But when viewing a menu item with k2 category layout, the pagination link is /category-name/Page-1 and other pages do not load 🙁
    Is there any way to fix this?

    Wall Crasher Developer
    #463401

    Hi mynde,

    Can you please pm your ftp/admin access information to me?
    I will try to look in more details.

    Meanwhile, please try this block of code to see if it work or not.

    var pathObject = {
    init: function(){
    this.path = ($('#page-next-link').attr('href') || '');
    var match = this.path.match(/((page|start)[=-])(d*)(&*)/i);
    if(match){
    this.type = match[2];
    this.number = match[3];
    this.limit = this.type == 'page' ? 1 : this.number;
    this.number = this.type == 'page' ? this.number : 2;
    } else {
    this.type = 'unk';
    this.number = 2;
    this.path = this.path + (this.path.indexOf('?') == -1 ? '?' : '') + 'page=';
    }
    },

    join: function(page){
    if(this.type == 'unk'){
    return this.path + this.number++;
    } else{
    return this.path.replace(/((page|start)[=-])(d*)(&*)/i, '$1' + (this.limit * this.number++) + '$4');
    }
    }
    };

    Hope it helps.

    Regards

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

This topic contains 6 replies, has 5 voices, and was last updated by  Wall Crasher 12 years, 3 months ago.

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