Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • relsig Friend
    #203505

    Hi

    Unfortunately I couldn’t find a forum for JA News Featured. Since I’m using it in JA Brisk, I’m posting it here.
    I’m trying to get the JA News Featured to work with the default theme and style. For the settings I made please have a look at this picture.

    Right after the page is displayed everything seems to work

    About a half a second later the featured article has disappeared. See

    I have been changing the settings to all kinds I can imagine, but somehow the featured article (a K2 article always disappears.

    I’m I missing something in the settings?

    Thanks

    Roger


    1. settings
    2. frontend
    3. frontend-2
    Saguaros Moderator
    #558484

    Hi Roger,

    If you’re using default profile of this JA News Featured module, you can go to this JS file: modulesmod_janews_featuredtmpldefaultscript.js

    At approx line 202, you will see this function:


    var animNewsMoveHor = new Class ({
    initialize: function(tabwrap) {
    this.options = tabwrap.options || {};
    this.tabwrap = tabwrap;
    this.changeEffect = new Fx.Elements(this.tabwrap.panels, {duration: this.options.duration});
    var left = 0;
    var dir = $(document.documentElement).get('dir') == 'rtl' ? 'right' : 'left';
    this.tabwrap.panels.each (function (panel) {
    panel.setStyle(dir, left);

    var ishide = panel.hasClass('hide');
    if(ishide) {
    panel.removeClass('hide');
    }
    left += panel.offsetWidth;
    if(ishide) {
    panel.addClass('hide');
    }
    });
    this.tabwrap.panels.setStyle('top', 0);
    },

    You can comment or remove above line: http://prntscr.com/5fwbun

    relsig Friend
    #558524

    Hi Saguaros

    Thanks for your help. I commented this out, but there is no effect visible. Around line 247 is more or less the same again. Also commented that out, same problem.

    [PHP]var animNewsMoveHor = new Class ({
    initialize: function(tabwrap) {
    this.options = tabwrap.options || {};
    this.tabwrap = tabwrap;
    this.changeEffect = new Fx.Elements(this.tabwrap.panels, {duration: this.options.duration});
    var left = 0;
    var dir = $(document.documentElement).get(‘dir’) == ‘rtl’ ? ‘right’ : ‘left’;
    this.tabwrap.panels.each (function (panel) {
    panel.setStyle(dir, left);

    var ishide = panel.hasClass(‘hide’);
    if(ishide) {
    panel.removeClass(‘hide’);
    }
    left += panel.offsetWidth;
    if(ishide) {
    // panel.addClass(‘hide’);
    }
    });
    this.tabwrap.panels.setStyle(‘top’, 0);
    },

    move: function (curTab, newTab, skipAnim) {
    if(this.options.changeTransition != ‘none’ && !skipAnim)
    {
    //this.changeEffect.stop();
    var obj = {};
    var dir = $(document.documentElement).get(‘dir’) == ‘rtl’ ? ‘right’ : ‘left’;
    var offset = newTab.getStyle(dir).toInt();
    [/PHP]

    This is the output from firebug. According to this the line is commented out. The featured article has gone again.

    What is the sense of making such articles disappear?

    Thanks

    Roger

    Saguaros Moderator
    #558603

    As you can see in the above JS code, it adds a class called ‘hide’ . However, this template built with bootstrap and it will hide that part.

    You can PM me admin & ftp credentials of your site, I will take a look

    relsig Friend
    #558725

    Hi

    Found a style that I also like, this will probaly make it easier. telineiv_t3_rtl. This would be fine for me. Except there is a counter for the featured articels which has a strange look. See attachment. Can you tell me where I can change that and how I have to change that wo make it look good.


    1. Counter
    Saguaros Moderator
    #558747

    You can post your site URL here so that I can take a look.

    relsig Friend
    #559088

    sent you a PM

    Saguaros Moderator
    #559139

    Hi Roger,

    I can’t access with URL you sent me, kindly check again.

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

This topic contains 8 replies, has 2 voices, and was last updated by  Saguaros 9 years, 5 months ago.

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