Wallpaper Script Forum » How-To and Troubleshooting

i need a mod how show random wallpapaer on index page

(6 posts)
  • Started 1 year ago by shugalmugal
  • Latest reply from shekhar
  1. i need a mod how show random wallpapaer on index page for example

    i install this script in sub dir

    like www.example.com/wallpaper

    but i want to show random wallpaper on index.php

    like www.example.com/index.php

    Posted 1 year ago #
  2. In index.inc.php you will see a line like this:

    $items = $DB->getAll("SELECT * FROM ".DB_PREFIX."items a, ".DB_PREFIX."users_items b WHERE a.id=b.item_id $filter order by created DESC limit ".(ITEMS_PER_PAGE*($page-1)).",".ITEMS_PER_PAGE);

    replace it with one like this:

    $items = $DB->getAll("SELECT * FROM ".DB_PREFIX."items a, ".DB_PREFIX."users_items b WHERE a.id=b.item_id $filter order by RAND() limit ".ITEMS_PER_PAGE);

    Please search before posting.

    Posted 1 year ago #
  3. i can not find this code in index.inc.php

    but i like this image 1.php is my wallpaper index.php

    and 2.php is my site home index.php

    Posted 1 year ago #
  4. i can not find this code in index.inc.php

    but i like this image 1.php is my wallpaper index.php

    and 2.php is my site home index.php

    Attachments

    1. 2.JPG (36.8 KB, 7 downloads) 1 year old
    2. 1.JPG (64.1 KB, 7 downloads) 1 year old
    Posted 1 year ago #
  5. any one help me ???

    Posted 1 year ago #
  6. shekhar
    Member

    Replace code in index.inc.php with -

    Attachments

    1. index.inc.php.txt (0.9 KB, 33 downloads) 1 year old
    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.