The idea is to have a simple image random at minimum processing power of course (like the one on top of the header in my blog)
The objectives
1) support multiple folders
2) randomly get an image in the specified folder
3) hide the source of the image (bonus)
How to call the function is like this
<img src="/blog/imgRandom.aspx?p=1">
in which p is the path and is defined in GetPath(). You can have as many directory as possible and it will randomly pick an image.
Known problem,
for some reason the searchPattern only take in 1 parameter. Meaning only search *.jpg but cannot support *.jpg or *.gif
Attachment: imgRandom.zip (950.00 bytes) (C#)
Finally got the blog engine I am looking for with the below features
-
runs on .Net (i suppose i can customise it if i want to)
-
Date is editable (my previous blog at spaces.live.com doesn't allow me to do this)
-
XML based db (no need of MySQL, Access or MSSQL)
-
Friendly UI
-
Photo and file Upload
-
Theme (8 predefined themes)
-
Easy to install and configure
-
Comment moderation
-
Rating
-
Tagging
-
full CSS
-
search (although post only, but it's still better than nothing)
This blog engine is great ! you can get it here http://www.codeplex.com/blogengine