Random Site of The Day
|
||||||||
Few days ago I create "Random Site of The Day" for my site. My goal is to give more benefit for premium listing owner. The block will show randomly 1 site thumbnail from premium listings in the right panel. This block is using the default "random listing" block that available on IndexU, it just using different templates file and parameters.
Here is the block call :
As you can see above, the block is using 2 custom templates : block.random_site_of_the_day.html and block.random_site_of_the_day_rows.html
Here is the content of block.random_site_of_the_day.html :
And here is the content of block.random_site_of_the_day_rows.html :
Just a note, as you can see in the above code I use my own thumbnail file, you might want to adjust the IMG SRC based your own thumbnail. To use thirdparty thumbnail like girafa.com, you can change the URL to something like this :
Here is the result :

Like any other IndexU blocks, you can called anywhere within templates file. You can called from index.html, header.html, footer.html or any other templates files that suits you.
In my site, I called from header.html file.
Ok, I hope this simple tips will be usefull for you.










January 19th, 2008 at 12:48 am
Hi,
is it possible to only use sponsored sites instead of premium ones ?
January 19th, 2008 at 2:33 am
this worked great I was able to implement it into my theme with the choice of either using sponsored or premium :)
Nice work as always.
Lewis
February 18th, 2008 at 2:07 pm
Very nice mod Thanks
February 19th, 2008 at 8:46 pm
Thanks Antonis.
I hope it is useful for your sites.