Wallpaper Script Forum » Announcements

Random Wallpapers Help!

(18 posts)
  • Started 1 year ago by jammu143
  • Latest reply from dazkeirle
  1. jammu143
    Member

    Hello friend i want random wallpapers on Home page instead of latest wallpapers so i had follow instruction of this forum and read all threads related to random wallpapers.

    then i add this module http://wallpaperscript.com/forum/topic/random-wallpaper and remove everything from index.tpl but there is two problems.

    1) They are not actually random they are from particular category.
    See the home Page random wallpapers and then click on "Random wallpapers" from header menu bar you can see the difference.

    2) When i click on any one wallpaper it will show me that wallpaper then "Random wallpaper" and then "Related wallpapers" i don't want Random wallpapers on that page due to Random wallpapers on item page it is showing 4 google ads per page which is against it's TOS so please help me.

    i want to do something like this
    http://www.svile.com

    If anyone can help me so i am very thankful to him.

    Posted 1 year ago #
  2. jammu143
    Member

    No one want's to help me?
    batu?

    i am ready to share any module or social links and icon which appear below wallpaper.

    Posted 1 year ago #
  3. Have you "cleared cache" every time when you make changes? That's what my problems has been.

    Posted 1 year ago #
  4. jammu143,
    You are correct.. most of the time getRandom function selects the random wallpapers from a specific category..

    To fix this try this untested suggestion..

    1. Open your random_wallpapers.inc.php file ( available in root folder) and copy the first line starting from $DB->getAll to end.

    2. Open your randomwallpaper.php file which is available in your modules folder. Find the first $itemsRandom.
    3. Replace the $DB->getRandom(...... ); with your line what you have copied from the random_wallpapers.inc.php file.
    it means after copy paste your new line must be like..

    $itemsRandom = $DB->getAll("SELECT * FROM .......ITEMS_PER_PAGE);

    I replaced the codes with the dots to show it properly..

    in detail pages you can remove the related wallpapers module to stop displaying 4 ad units..

    let me know if this suggestion fixed your problems..

    Posted 1 year ago #
  5. jammu143
    Member

    Thanx Batu your suggestion 100% working for 1st problem now i am getting completely Random wallpapers on main page but 2nd problem is still as it is

    i didn't get the link of include file of related wallpapers in wallpapers detail and also i don't want to remove related wallpapers i want to remove only random wallpapers.
    just like this
    http://www.svile.com

    but i didn't get the idea where to remove the code

    Posted 1 year ago #
  6. I think Svile is not using the random wallpaper module. He has changed the related module to random module..

    Svile can tell more about this....

    Thanks,

    Posted 1 year ago #
  7. jammu143
    Member

    thanks batu for reply i had tried to contact svile but he is not replying i think he didn't want to share :(

    Posted 1 year ago #
  8. Jammu143.. you can do following to fix your issue..

    1. Uninstall random wallpaper module..
    2. Open Latest_wallpapers.inc.php and replace $items = $DB->getAll("SELECT *.....)l line with the same $items = $DB.... line copied from your random_wallpapers.inc.php file.
    3. Then you can open your latest_wallpapers.tpl file and change the heading accordingly...

    Posted 1 year ago #
  9. jammu143
    Member

    hi batu i had done as you told me but it didn't affected in home page.still i got latest wallpapers but the effect is shown when i clicked on Latest wallpapers from menu bar i got random wallpapers.

    Now i have to fix this for main Home page and i had check again svile's site and i found this things
    he is not using Random wallpapers module he change his index.tpl file and using mainrandomwallpaper module
    http://www.svile.com/templates/default/index.tpl

    but in modules his mainrandomwallpaper.tpl file is empty
    http://www.svile.com/modules/mainrandomwallpaper/mainrandomwallpaper.tpl

    i had also try this and replace my file but i got some error...

    now if you can do something so please help me...

    Posted 1 year ago #
  10. shekhar
    Member


    Posted 1 year ago #
  11. Oh !!... if you don't want to show multiple random images.. then.. you can do the samething what svile.com has done..

    1. modify your index.tpl file like svile.
    2. modify your mainrandomwallpaper.tpl file and make it empty..

    Now the trick is.. :)

    3. copy your unmodified mainrandomwallpaper module folder to templates/default/modules folder..

    then you can display only one random wallpaper on the mainpage..like svile.com is showing..

    but this will not help you to display more than one random wallpaper..

    Posted 1 year ago #
  12. jammu143
    Member

    ohh so it is for only 1st random wallpapers which is on top...
    but i want 12 Random wallpapers on main page :(

    Posted 1 year ago #
  13. Hello. I pay for that one guy to make it for me, I can give you msn of that guy if you want.

    Posted 1 year ago #
  14. @jammu143.. you can change the code which is available in your index.inc.php file with the code which is available in your randomwallpapers.inc.php file. only the SQL query needs to be changed.. to get the random wallpapers...

    try this.. if still no luck.. then I will look into it in this weekend and get the solution for you..

    Posted 1 year ago #
  15. jammu143
    Member

    i had removed one Google ad below the wallpaper on items page..
    sweet and simple

    Posted 1 year ago #
  16. Just to say that I confirm that this fix for the random wallpapers module, displaying only one category issue works perfectly.

    Posted 12 months ago #
  17. its great to hear that from you.. !!

    Posted 12 months ago #
  18. :) Thanks Batu, as this forum has such inconsistent support I've made it my mission to help where I can, and confirm what works and what doesn't as I go around adding tweaks to my wallpaper website.

    Hopefully then when the next newbie comes along they can make sense of it all.

    I love WPS, it's a great bit of software, there are just a few things missing in my eyes, and a few things that can be improved.

    Hopefully I can do this and publish the how-to's much like yourself (but you've certainly saved me some time here).

    Posted 12 months ago #

RSS feed for this topic

Reply

You must log in to post.