Previous Entry Share Next Entry
Tutorial for Rotating layout headers - simple [Free & Paid]
SPN - Devil Sammy
causette wrote in caugraphics
I posted this as a locked entry in my journal a while ago but I thought I might post it open in my graphic journal.


Rotating layout headers

I have had several people ask me how I make layout headers rotate like I set up for several people, like causlash. I thought instead of always helping individuals, I could just set up instructions and y'all can just do it yourself *G*

Attention: I did not create this script. Do not credit me for it. All I did was write the tutorial for it. Though if you do use this, feel free to link back to this post on your info page so that others can do the rotation as well :-D

Special thanks to elli for finding this and elsmoka for telling me about it.

Attention2: Do not change the .php script because of copyright issues!



Tutorial


1. Start by right-click-saving this .zip file


2. Create a special folder for this within your host. Upload to this folder both the .php file (after you've extracted it from the .zip file) and all of the headers you want for the rotation. There is no limit for how many headers you want to have.
See Example


3. Where you would normally put the link to your header URL in your layout code, you instead put the URL to the .php rotation file in your folder.
ex. http://salty-goodness.com/lj/causetterocks/rotate.php


4. Voila. Your header rotates =D I have seen this work with both Flexible Squares style and Component. I suppose this probably works with any styles that offers the option to have a header. Even if you haven't the faintest idea how to customize your layout, you always have the option of going to the Manage --> Customize --> Images and under Background image you can put the rotation.php URL. Make sure to not have it repeat. Note: if you have your layout set up by using a stylesheet or any other way, just put the link to the rotation wherever you would normally put the link to your header.




Put this post in your memories for later use.


# Found this useful? Why not Friend my community.
# Want to affiliate?
# See my other layout tutorials

[EDIT] If you followed all the instructions, and the rotation didn't work, the most likely cause is your host. Make sure your host supports .php scripts!! A lot of free hosts don't. I myself use Dreamhost.

[EDIT 2] I am no longer answering questions or offering any additional help with this. The tutorial stands as it is, if you can't get it to work then maybe look for another rotating header tutorial because there are a bunch of them out there.
Tags:

I love you so much for this right now! I do! I feel this incredible urge to snog you silly! But I'll restrain myself, I promise! XD

oh come on!! Snog me! Snog me!! *pounces you*

very cool!

Might you know if there's a way to add friends b-days into a component?

*hugs*

you mean like, my birthday is on december 15th. And seeing as I'm on your friendslist, on december 15th, my user name would appear in a component that said something like, "Today's birthday is causette's!" ... or something like that?

Thank you so much, sweetheart!
*hugs*

Thank you so much for this! I managed to do it! I'm very new to all this stuff. I got stuck with my rotating headers also being my background for a few hours but finally realised I had the header .php in the wrong place entirely!

You've been great to write this out! *hugs*

Awesome that it worked for you!! Glad you were able to follow this! You are welcome =D

this is awesome!
added to my memories =]

You are the best. Seriously, the best. I'm going to have to try this as soon as I get a little time.


(Deleted comment)
Do you use an FTP program to upload files to your host? If so, all you do is right click on it and chose something like, "Create new directory" or something like that (might say new folder) and then give it a name and then you add all the banners or whatever to that folder, including the rotation file as well.

if you don't use an FTP program, then you should just look at the instructions or the "FAQ" or whatever. Your host probably has some demonstrations or some info you can read up about and there they must say how you create a new folder.

Not sure if you can help or not. But, I tried the rotating thing. I created a separate file on my server. I uploaded the rotate.php I after I unzipped it (it's about 5.41kb). I uploaded all the banners I wanted to the same file. However, I keep getting an error message. Any clue?

P.S. I did it all in FTP. Here is the link that should make it work.

http://www.terragon.com/handmaiden/infopage/rotate.php

Thanks.

hmn... I don't really know why it wouldn't work for you.

I tried downloading the .zip myself just now and I set it up in a new directory here,

http://salty-goodness.com/lj/test/

there you can see how the pictures are all in the same folder as the rotation file. Then you just got to click on the .php file and you get the rotation,

http://salty-goodness.com/lj/test/rotate.php

If you did it exactly like that, then I have no idea what the problem could be. Maybe something to do with your host?

K I'm simple. I don't even know where to start. I'm so not internet/computer savy it's sickening! So I begin: eh host? I gather I can't upload this to lj!?

*hides red face in shame*

sweetie, if you don't know what a host is, then I think this is way over your head :-S The basis of this working is that you have a 'host', like a webspace that you most likely buy/pay for. It's probably far too much work for me to try and explain it to you.

Could you just tell me what you have planed on using this rotation for? Cause then I might come up with a solution for you.

So I get how to do this. But it seems my server doesn't like headers that are 900x325..says they are too big. *hangs head* Sucks majorly.

well that is just very very weird! Cause usually people have problems with their servers not being able to use .php files. I don't really see how the size of your banners should even be an issue for your server. My server certainly doesn't have a limit for image size.

This is awesome! I am completely exicited :)
It works like charm. I think I will be creating header for weeks to come *gg*

cool!! Have fun with it :D I know from personal experience that one can never have too many headers :P

You wouldn't happen to know if I'm able to use photobucket for this, would you?

nope, you can't use Photobucket for this because PB doesn't allow .PHP scripts to be uploaded and the banners and the .PHP script need to be in the same folder :-/

thank you for this tutorial sweetie ♥

I have a question and I hope you can help me =)

I uploaded the php and the png-files in my box.net account.... I don´t know if box.net supports php-scripts, but I could upload it.....
But when I put the URL-link in my css-code I still cannot see a header.....

Do you know it is about box.net maybe don´t support php scripts?

just if you wanna look, here is the link to the folder: http://www.box.net/shared/hfggtpds0g

thank you ♥

PS: sorry for my english, but I´m not so good at it =)

I'm pretty sure box.net doesn't support php scripts. I can't be bothered to try and find info about it on their page but since the rotation isn't working for you, then it's most likely that they don't support it.

poo I don't have a host :(

this gives me sads

Wonderful script, it's working really well for me, and your tutorial certainly helped. ♥ Can I ask where you found the script (if you can still remember)?

I found it through elli. Glad it worked for you :D

?

Log in

No account? Create an account