-
AuthorPosts
-
relsig Friend
relsig
- Join date:
- October 2007
- Posts:
- 218
- Downloads:
- 22
- Uploads:
- 61
- Thanks:
- 16
- Thanked:
- 10 times in 3 posts
December 11, 2014 at 9:20 pm #203505Hi
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
- Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 12, 2014 at 7:16 am #558484Hi 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 Friendrelsig
- Join date:
- October 2007
- Posts:
- 218
- Downloads:
- 22
- Uploads:
- 61
- Thanks:
- 16
- Thanked:
- 10 times in 3 posts
December 12, 2014 at 1:58 pm #558524Hi 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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 14, 2014 at 6:45 am #558603As 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 Friendrelsig
- Join date:
- October 2007
- Posts:
- 218
- Downloads:
- 22
- Uploads:
- 61
- Thanks:
- 16
- Thanked:
- 10 times in 3 posts
December 15, 2014 at 7:24 pm #558725Hi
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.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 16, 2014 at 2:39 am #558747You can post your site URL here so that I can take a look.
relsig Friendrelsig
- Join date:
- October 2007
- Posts:
- 218
- Downloads:
- 22
- Uploads:
- 61
- Thanks:
- 16
- Thanked:
- 10 times in 3 posts
December 18, 2014 at 4:57 pm #559088sent you a PM
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 19, 2014 at 7:41 am #559139Hi Roger,
I can’t access with URL you sent me, kindly check again.
AuthorPostsViewing 8 posts - 1 through 8 (of 8 total)This topic contains 8 replies, has 2 voices, and was last updated by Saguaros 10 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum