Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • pitrolo Friend
    #124113

    Hi!
    JA Newsflash show me all News just Random.
    I wan`t to have it in normal Order, like News1, News2, News3…
    How can I make it like this?
    Please help-THX

    pitrolo Friend
    #233988

    Thanks for the fast answer.:confused:

    Khanh Le Moderator
    #234013

    Open file modules/ja_newsflash/ja-newsflashloader.php, search code (around line 273):


    if ( $numrows ) {
    $curnews = intval( mosGetParam( $_REQUEST, 'curnews' ) );

    srand ((double) microtime() * 1000000);
    $i = 0;
    while (++$i < 10) {
    $flashnum = rand( 0, $numrows-1 );
    if ($flashnum != $curnews) break;
    }
    $row = $rows[$flashnum];
    }

    Replace with


    if ( $numrows ) {
    if (isset ($_REQUEST['curnews'])) {
    $curnews = intval( mosGetParam( $_REQUEST, 'curnews' ) );
    $flashnum = ($curnews + 1) < $numrows ? $curnews + 1 : 0;
    }else{
    $flashnum = 0;
    }
    $row = $rows[$flashnum];
    }

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

This topic contains 3 replies, has 2 voices, and was last updated by  Khanh Le 16 years, 5 months ago.

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