The multiply.com Theme Header Randomizer

Posted by admin | Posted in Scriplets | Posted on 09-07-2010

0

I made this simple PHP script 2 years ago just to make my multiply page generates a random header and body background every time a visitor clicks/refreshes my multiply page. It's quite simple, all you need is a free php hosting and a free image hosting or use your own web server if you have one :) , that's it!

Installation

After choosing what server you will use, here are the installation procedure.

1. Download the script here or checkout via subversion.

2. Extract the files and upload it on your server.

3. Edit the image_rotate.php.

On this part:

 $array_img = array('http://www.domain.com/image-folde/header1.jpg', 'http://www.domain.com/image-folde/header2.jpg');

change the http://www.domain.com/image-folde/header2.jpg to the path of your image, array could be 2 or more.

$array_img = array('http://www.domain.com/image-folde/header1.jpg', 'http://www.domain.com/image-folde/header2.jpg', 'http://www.domain.com/image-folde/header3.jpg', 'http://www.domain.com/image-folde/header4.jpg');

5. On your multiply's CSS look for this code:

body {
background: url(http://imageshack.us/image/wala-lang-to.jpg);
background-attachment: fixed;
}

and replace the image link with the url of your image_rotate.php .

6. Click save, that should generate random headers for your multiply theme :)

Script in action:

http://j0bad.multiply.com/

http://butterflykisses22.multiply.com

Thanks!

Write a comment

Security Code: