Author Topic: top10 in index  (Read 6300 times)

0 Members and 2 Guests are viewing this topic.

Offline knsin0

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
top10 in index
« on: November 22, 2006, 02:13:23 PM »
hi,
it is possible to add some top10´s in the index page of my 4imagegallery?how can i do that?  (using 1.7.3) :)

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: top10 in index
« Reply #1 on: November 22, 2006, 02:39:24 PM »
... is possible ...
... use a copy of the code "Show New Images" form your index.php as "Show Top Images" in your index.php ...
... the following changes are necessary in this code ...
1. use instead of all ...
Code: [Select]
new_images
... this ...
Code: [Select]
top_images
2. use instead of ...
Code: [Select]
ORDER BY i.image_date DESC
LIMIT $num_new_images";
... this ...
Code: [Select]
ORDER BY i.image_rating DESC
LIMIT 10";
3. now you can use in your home.html ...
Code: [Select]
{top_images}

... thats all ... :wink:
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline knsin0

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Re: top10 in index
« Reply #2 on: November 22, 2006, 07:15:40 PM »
thanks for the answer but i want to add only two tops and after the new images of the gallery, wanna show new images ant tops, here is my site: www.fondos10.net
thanks again  :D

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: top10 in index
« Reply #3 on: November 22, 2006, 08:15:43 PM »
... and what was the question ...  :roll:
... everything is explained above ... reading carefully ...
... use a copy of the code "Show New Images" after the code "Show New Images" form your index.php as "Show Top Images" ...
... and if you want more "Top Images" ... than use one more copy as "Top Images_2" with the similar changes...
... and use e.g. ...
Code: [Select]
ORDER BY i.image_hits DESC
LIMIT 10";
... and so on ...

... and now it's your turn ...  :!:
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...