-
AuthorPosts
-
May 10, 2007 at 11:36 am #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
Hieu Nguyen
- Join date:
- November 2005
- Posts:
- 678
- Downloads:
- 36
- Uploads:
- 0
- Thanks:
- 69
- Thanked:
- 61 times in 1 posts
May 11, 2007 at 3:14 am #219882Open 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.May 11, 2007 at 10:37 am #219903thanks 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
Hieu Nguyen
- Join date:
- November 2005
- Posts:
- 678
- Downloads:
- 36
- Uploads:
- 0
- Thanks:
- 69
- Thanked:
- 61 times in 1 posts
May 12, 2007 at 3:03 am #219942If I am your official hero today, can you vote me to be member of the month π
ShannonN Friend
ShannonN
- Join date:
- July 2006
- Posts:
- 1947
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 16
- Thanked:
- 172 times in 49 posts
May 12, 2007 at 8:19 am #219955oceandragon;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 pollCheers ShannonN
redlight_traitor Friend
redlight_traitor
- Join date:
- October 2006
- Posts:
- 211
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 32
- Thanked:
- 8 times in 1 posts
November 5, 2007 at 1:31 am #232210Is 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.
-
AuthorPosts
This topic contains 6 replies, has 4 voices, and was last updated by redlight_traitor 17 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum