Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • casimir Friend
    #120180

    is it possible to Randomize articles shown in JA-news?

    for example every time you open the front page you get a different article from the same category as the highlight with the image? if you refresh a different article is the highlight.

    Or you use the same category twice, with different articles highlighted….

    this would be very nice for a portfolio site 🙂

    Any of you php-gurus know what to add to the mod_janews.php 😉
    ______________________________________________________
    solved 🙂

    Hieu Nguyen Admin
    #219882

    Open your mod_janews.php file and go to line 223 you will see:
    [PHP]. “n ORDER BY f.ordering ASC limit 1”;[/PHP]
    Comment it and add:
    [PHP]. “n ORDER BY rand() limit 1”;[/PHP]
    It will randomize headline news selection.

    And go to line 336 (may be now is 337 😉 ), you will see:
    [PHP]. “n ORDER BY a.created DESC limit ” . ($linksitem+1);[/PHP]
    Comment it and add:
    [PHP]. “n ORDER BY rand() limit ” . ($linksitem+1);[/PHP]
    It will randomize news selection in category.

    casimir Friend
    #219903

    thanks oceandragon…your now officialy my joomla hero today 😉

    When i get my portofolio site online i’ll drop you a link…cheers

    Hieu Nguyen Admin
    #219942

    If I am your official hero today, can you vote me to be member of the month 😀

    ShannonN Friend
    #219955

    oceandragon;15302If I am your official hero today, can you vote me to be member of the month 😀

    Naughty Boy! Ocean dragon, no canvassing allowed!! 😀
    I’m sure ppl you help will vote for you in the poll

    Cheers ShannonN

    redlight_traitor Friend
    #232210

    Is there anybody that can show me how to make the regular frontpage items come AFTER the ja_news header? my site url is http://www.mfuz.com I know it’s not standard.

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

This topic contains 6 replies, has 4 voices, and was last updated by  redlight_traitor 16 years, 6 months ago.

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