Translate
Online Users

In total there are 9 users online :: 1 registered, 0 hidden and 8 guests

Most users ever online was 72 on Mon Apr 07, 2014 12:28 pm

Users browsing this forum: No registered users and 1 guest based on users active over the past 5 minutes

Last Online
In order to view the online list you have to be registered and logged in.



We are a free and open
community, all are welcome.

Click here to Register

Search

Random Image Block

Contains new or updated blocks

Moderator: Staff

Random Image Block

PostAuthor: Mike » Sat Jun 15, 2013 8:49 am

This block serves as a demonstration of how to create simple block without the need for sql queries. It displays a random image (taken from images/random_images folder), which changes on every refresh of the page. It can be used for advertisements, displaying members images/pictures, or even a random gallery image... it's up to you...

The installation is simple, just follow the install_readme.txt (no install xml file is required)...
2013-06-13_062906.jpg (132.42 KiB) Viewed 6994 times

2013-06-13_063709.jpg (99.37 KiB) Viewed 6994 times
Attachments
kiss_random_image_block.zip
(3.06 KiB) Downloaded 277 times
Image
User avatar
Mike
Developer team leader
Developer team leader
 
Posts: 6051
Joined: Sun Mar 27, 2011 2:12 pm
Location: Dublin, Ireland

Re: Random Image Block

PostAuthor: Kinsman » Wed Jun 18, 2014 4:50 am

would there be a way to make this display a new pic each day, people seem to be missing our daily babe module for some reason. :-o

Kinsman
 
Posts: 18
Joined: Fri May 16, 2014 6:45 pm
Location: Australia

Re: Random Image Block

PostAuthor: Mike » Fri Jun 20, 2014 7:25 am

Yes that should be easy enough... I look into it...
Image
User avatar
Mike
Developer team leader
Developer team leader
 
Posts: 6051
Joined: Sun Mar 27, 2011 2:12 pm
Location: Dublin, Ireland

Re: Random Image Block

PostAuthor: Kinsman » Sat Jun 21, 2014 8:38 pm

Cool, the way our old module did it was to have a directory with 12 sub directories, then each of those had 1 pic for each day, so 1.jpg, 2.jpg etc etc.

Kinsman
 
Posts: 18
Joined: Fri May 16, 2014 6:45 pm
Location: Australia


Return to New or updated Blocks

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Charlie Pringle
Ebay's 76junkyard