kmkz
Member
+7|7333
I originally wrote this and posted it at http://www.pointofexistence.com/forums/ … topic=6092 but I'll repost it here... it may come in handy for someone

------------------------------------------------------------------------------------------------------------------------------

I've noticed a few of you guys are interested in having sigs but have too many kick ass ones to choose from. So, you think to yourself: "Damn, I have so many good sigs but I can't choose which one I should use... I could really use a signature rotator...". Well think no longer, for I have written one. All you need is a webserver with FTP access and PHP installed, and a wee bit of intelligence.

[*] So lets begin with the basics. Log in to your web server and create a folder called rotator.jpg. You must have the .jpg "extension" on the end of the folder name. As a matter of fact, you can really do any extension you like, but it makes the most sense to do the extension of (most) of your images, in the end though it makes no difference. Just to clarify: we are doing this to fool IPB into thinking that we are posting the link to a regular image, not to a PHP file (it doesn't like PHP files).

[*] Ok so you've done that. Now upload all your images to that directory. It doesn't matter what they're named or what extension they have, just as long as they are images (well they don't have to be images but your browser won't like it...).

[*] Now create a file in that directory called signatures.txt and enter in all the names of your images, one by one, each on a line of its own. You should not have any weird paths to them since they should all be in the same folder.

[*] Ready for the last step? Me too. Upload the attached [look below] file "index.php.txt" and remove the ".txt" extension. It should end up as index.php

Ok so let's just run through a simple example:

We have the domain www.example.com and we want a sig rotator to run through 3 PNG images. We first create the folder rotator.png/ in the base root directory.

We then upload our 3 images, coolsig.png, sigarella.png, sigmeister.png

Next, we set up the signatures.txt file and enter in the following data:

Code:

coolsig.png
sigarella.png
sigmeister.png
Lastly, we upload the index.php.txt file and rename it to index.php [look below]

I look in the directory and I see the following entries:

Code:

/rotator.png/index.php
/rotator.png/signatures.txt
/rotator.png/coolsig.png
/rotator.png/sigarella.png
/rotator.png/sigmeister.png
I then hop into the BF2S forums, go to my User CP and change my signature link to this:

Code:

http://www.example.com/rotator.png
(Note: I left off the trailing slash)

Ok there you go, I hope this helps someone out

Note:

At the POE boards we have file uploads but I see that it isn't supported here (big security issue + waste of space; I don't blame the mods here for blocking it) so I uploaded it to my website: http://www.kmkz.com/index.php.txt. This is the file used throughout the tutorial mentioned above ^^


Btw plz don't bash me if this thing is shit. I threw it together one night for some guys who wanted sigrotation and it works pretty damn well for that... I know there are better ways to do it + more features can be added + efficiency can be increased + randomness can be increased BUT it works, so plz dont lay it on so thick if you don't like it, kthx.
Defiance
Member
+438|7295

Kickass. Nice PHP though, I used to know a good ammount but BF2 caught my eye...heh..

+1.

Board footer

Privacy Policy - © 2026 Jeff Minard