Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorcctval
    • CommentTimeJan 8th 2006
     
    Has anybody figured out how to dispay an image on the homepage, that will change everytime a user visits the site? I've done this with javascript, but am not sure how to implement it here.

    Thanks!!
    • CommentAuthorjack
    • CommentTimeJan 9th 2006
     
    Search these pages. Someone did come up with something I remember.
    But I also think it was already the idea to let Plogger do this, in an upcoming version.
    •  
      CommentAuthorCroila
    • CommentTimeJan 9th 2006 edited
     
    I put the following bit of code on my home page, to call random images. (I didn't code it myself - I got it somewhere in this support forum but can't remember which thread, sorry).

    Oops. I've just tried to copy/paste the code in here, but for some reason the formatting is coming up all weird. If you like, you can download it in a text file at www.croila.net/randomImage.txt

    Sorry, don't mean to pinch anyone else's work - I just didn't know how to paste it in to this page.

    Regards,
    Croila
    • CommentAuthorniceday
    • CommentTimeJan 12th 2006
     
    See this thread http://www.plogger.org/forum/comments.php?DiscussionID=76&page=1
    • CommentAuthorozwds
    • CommentTimeMar 15th 2009
     
    Hi, Croila,

    Thanks for posting the code. do you have the instruction file or could you tell me how to inlcude the plugger in my php page?

    Thanks again
    •  
      CommentAuthorkimparsell
    • CommentTimeMar 15th 2009
     
    ozwds:

    Try this script: http://www.plogger.org/forum/discussion/1690/how-to-include-an-album-with-only-the-x-last-thumbs-to-appears/#Item_5

    That displays the thumbnails of the latest X images uploaded to your gallery (X being the amount you specify in the script).

    If you want it to display random images, change the following line in the script from:

    $q = "SELECT * from plogger_pictures order by `id` DESC LIMIT $amount";
    to this:


    $q = "SELECT * from plogger_pictures order by RAND() LIMIT $amount";