Jump to content
Latest News: (loading..)

Recommended Posts

I have noticed someting strange in the transitions loop (in the 3rd case) :
1. If you check no transition (in admin), "default" transition (slide right to left) loops at each slide -> OK
2. If you check just one transition, the chosen transition loops at each slide -> OK
3. If you check at least two transistions, the slide loop is interspersed with "default" transition at each new transition -> !?!

For example, in fact it shows :

1.bounce_down -> 0."default" -> 2.clip_and_chess_in -> 0."default" -> 1.bounce_down -> 0."default" -> 2.clip_and_chess_in -> 0."default" -> and so on

Is there a way to have the true sequence - 1 -> 2 -> 1 -> 2 - without the default transition between ?

NB: This is the puzzle of this end of the year, enjoy ! :D

 


Osc v2.3.4 BS "custom"

Share this post


Link to post
Share on other sites

Sorry, the right sequence is :
1.bounce_down -> 0."default" -> 2.clip_and_chess_in -> 1.bounce_down -> 0."default" -> 2.clip_and_chess_in -> 1.bounce_down -> 0."default" -> and so on

And for 3 transitions checked :
1 -> 0 -> 2 -> 0 -> 3 -> 1 -> 0 -> 2 -> 3 -> 1 -> and so on


 


Osc v2.3.4 BS "custom"

Share this post


Link to post
Share on other sites
4 hours ago, milerwan said:

Is there a way to have the true sequence - 1 -> 2 -> 1 -> 2 - without the default transition between ?

I don't know the answer to that and would have to spend time figuring it out, which means it probably won't be done anytime soon. I suggest asking on stackoverflow or checking the examples at jssor.

Share this post


Link to post
Share on other sites

Ok, the issue comes from double comma generated by script instead one :

[
{$Duration:1000,y:1,$Easing:$Jease$.$InBounce,$Opacity:2}
,, <!-- comma too much -->
{$Duration:1200,y:-1,$Cols:10,$Rows:5,$Clip:15,$During:{$Top:[0.5,0.5],$Clip:[0,0.5]},$Formation:$JssorSlideshowFormations$.$FormationStraight,$ChessMode:{$Column:12},$Opacity:2,$ScaleClip:0.5}
, <!-- comma too much -->
]

I will fix this later.
Need to go now.  ;)


Osc v2.3.4 BS "custom"

Share this post


Link to post
Share on other sites

It's ok, I found where the creation of the unwanted comma is.

In "includes/modules/content/index/templates/tpl_cm_i_jssor.php" (same for "/header/templates/tpl_cm_header_jssor.php"), find :

function GetTransitions() {
    $picked = explode(';', MODULE_CONTENT_INDEX_JSSOR_TANSITIONS);
 
    $xsisitons = array();
    $xit = parse_ini_file(DIR_FS_CATALOG . '/ext/jssor/transitions.ini');
    foreach ($xit as $key => $data) { 
        if (in_array($key, $picked)) {
            $xsisitons[] = $data  .','; 
        }
    } 
    
    return '[' . join(',', $xsisitons) . ']';
}

and change like this :

function GetTransitions() {
    $picked = explode(';', MODULE_CONTENT_INDEX_JSSOR_TANSITIONS);
 
    $xsisitons = array();
    $xit = parse_ini_file(DIR_FS_CATALOG . '/ext/jssor/transitions.ini');
    foreach ($xit as $key => $data) { 
        if (in_array($key, $picked)) {
//            $xsisitons[] = $data  .',';
            $xsisitons[] = $data; 
        }
    } 
    
    return '[' . join(',', $xsisitons) . ']';
}

No more "default" transition parasite during the slider loop now. :)


Osc v2.3.4 BS "custom"

Share this post


Link to post
Share on other sites

@milerwanThank you for posting the fix. I'll include it in the next version.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×