games  anime  |  toys
This is a Dtoid readers's blog. For staff blogs click here. Confused? read this Create you own!  |   Members: Login now





Adding a Random Element to Your DToid Blog
Tavendale | 7:08 AM on 06.26.2009 15 comments


I'm a naturally indecisive person.

Seriously, I mull over decisions as long as possible. It's not always a weakness: important decisions demand due consideration. Choosing a blog banner might not be so important, but I still find myself dithering over what to use, It would have to be one of my favourite games, however:



This was a problem I actually faced when setting up my non-DT blog. The solution I came up with was to implement a random image script, allowing me to use three or four (currently twenty five) different banners on a random rotation. Scroll up to the top of this page and hit refresh a few times. You'll see how well it works.

Go on.

I'll wait here.



Cool, isn't it? If you'd like to do this yourself, it's actually quite simple. You will need to download the PHP script and place into a folder with a selection of images, like so:



It's really as simple as that. All that's left to do is to actually use it. When posting an image, you must link to the php script instead of the image file, which will then redirect to a random image in the folder.

Hopefully I'll get to see people having some fun with this on their own blogs. If you're giving it a go, please leave a comment so I can take a look!

TTYL

edit: I should have mentioned, the script itself came from a friend, after I explained what i was trying to do. I didn't mean to misrepresent anything.



  related blogs:
 

Is this post awesome? Vote it up!

0


Comment with Facebook





Click connect and comment instantly!

Comment with Dtoid





New? SIGN UP - it takes 5 seconds

15 comments | showing # 1 to 15

prev next

Halidar's Destructoid Blog
That's awesome, thanks for sharing! (woot triple triad)
Tavendale's Destructoid Blog
TY, will you be giving it a go?

Also, I checked your profile, oh fellow Puyo Puyo Fiend!
ShawnKelfonne's Destructoid Blog
Nice little script. Clean, compact, to the point. You might want to obviously mention that in order to use it you'll need something other than imageshack or anything like that to host your images with.
Tavendale's Destructoid Blog
True.

I should also point out that I did not write it. A friend with some knowledge of PHP gave it to me.
Elsa's Destructoid Blog
Nice! Thanks for sharing that trick!
garison's Destructoid Blog
That's pretty cool. I should try this.
Doomsday Forte's Destructoid Blog
I used something like this on an old self-hosted blog of mine. I had over 200 images at one time. XD
Tavendale's Destructoid Blog
@Doomsday Forte

Yeah, it's tempting to keep adding and adding. I started with 4 in my blog, now it's up to 25 with the most recent ones being Mirrormask, Ghost in the Shell and EVE Online.

I want to do some for Geometry Wars, Bioshock, WoW and a couple TV shows soon.
BulletMagnet's Destructoid Blog
Nicely done, sir - too bad I'm too boring/lazy to use more than one image in my header, heh heh. Then again, as you mention, I'm a big enough geek that I'd have a million images up there within mere days, so it's probably for the best.
Justice's Destructoid Blog
Damn nice work!
mix's Destructoid Blog
That is awesome, nice stuff!
Zippyduda's Destructoid Blog
Pretty good :) Tell your friend thank you and cheers for posting.

When I have time I'll have a gander, bookmarked :)
akathatoneguy's Destructoid Blog
Sweet tip! Now if I only knew how to design a cool-looking banner in the first place...
Tavendale's Destructoid Blog
@ AKAThatOneGuy

I never let that problem stop me!
Tavendale's Destructoid Blog
Trying it out with my avatar to see how that looks.


prev next


Comment with Facebook





Click connect and comment instantly!

Comment with Dtoid





New? SIGN UP - it takes 5 seconds

Comments policy

Destructoid is an open discussion community. You don't need to "audition" to post a comment - just speak your mind. We respect differing opinions on the site, so have at it. Be smart, funny, insightful, clueless, or cute -- but back it up with substance. Keep your cool, keep it fun. We only ask that you act respectfully and above all: don't be a troll and ruin it for everyone else. Don't bring down gamers or we'll, you know, gently shoot you in the face and stuff you into a flaming mailbox. Each comment is your opportuntity to make this community awesomer. Is that even a word?

Avoiding the banhammer only requires common sense: spamming, trolling, racism, NSFW stuff, and other forms of sucking will not be tolerated. If anyone is griefing please report abuse. Be good. Don't suck!

 about me

 xbox 360 gamertag
 friends' updates
Elsa's Profile Elsa
Where are the "VIDYA GAME WOMENGS"?


 
 
  get involved

register or login
post a blog
post a forum
enter a contest
contribute a news tip
suggest a feature
be a guest editor
support

new member's guide
login assistance
tech support
report abuse
email our editors
read our dev blog
nuclear crisis?
keep in touch

RSS feed
Twitter
Facebook
Myspace
Flickr
Game nights
Meetup+play online
seriously

about Destructoid
advertising
terms of use
privacy policy
jobs at MM
buy our crap
our network

Tomopop
Japanator
Despingation?




Destructoid is an independently-run publication forged by our love of video games and the gaming community's need of accountable enthusiast press
living the dream since March 16, 2006