test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • matthew123456 Friend
    #136933

    I am running a Quickstart install of JA Uvite on 1.5.8 …

    I want to have the content items in the JA News module display randomly. In a two-year old thread I saw the issue addressed (re: JA Teline).

    Unfortunately, the code has changed since, thus the solution does not work exactly as it did then.

    Can someone provide the appropriate code fix (I think it is for helper.php) to get my content items to display randomly?

    Thanks in advance!

    –Matt

    Anonymous Moderator
    #286051

    HI matthew123456,

    Please open file modulesmod_janewshelper.php:
    + At about line 227, find following script:

    [PHP]$query .= ‘ ORDER BY a.’.$ordering;[/PHP]

    and change to:

    [PHP]$query .= ‘ ORDER BY rand() ‘;[/PHP]
    + At about line 268, find following script:

    [PHP]. “n ORDER BY f.ordering ASC”;[/PHP]

    and change to:

    [PHP]. “n ORDER BY rand() “;[/PHP]

    Hope it helps.

    matthew123456 Friend
    #286631

    That appreas to have done the trick …

    Again, thanks a lot!

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

This topic contains 3 replies, has 2 voices, and was last updated by  matthew123456 15 years, 11 months ago.

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