It is currently Fri Jul 30, 2010 9:17 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: How to make Rotational Sigs!
PostPosted: Thu Aug 06, 2009 3:30 am 
Offline
User avatar
.: Level IV :.

Joined: Wed Jun 25, 2008 10:41 pm
Posts: 938
Location: Canada =D
iTrader:
Gender: Male
Cash:807
Reputation point: 210
Rider has a brilliant futureRider has a brilliant futureRider has a brilliant futureRider has a brilliant futureRider has a brilliant futureRider has a brilliant futureRider has a brilliant futureRider has a brilliant futureRider has a brilliant future


Content Giveaway Donor Award Graphics Trader Winner Award

Image

In this guide you'll learn how to make something like this (Refresh and look at the image to see what's happening) :

Image

Start off by making a account at http://ripway.com

After you've made the account, select the "Create a New Text File" button.

Name it RotationalSig.php and add this code into the textbox :

Code:
<?php
/*
*/// Make this the relative path to the images, like "../img" or "random/images/".
// If the images are in the same directory, leave it blank.
$folder = '';

// Space seperated list of extensions, you probably won't have to change this.
$exts = 'jpg jpeg png gif';

$files = array(); $i = -1; // Initialize some variables
if ('' == $folder) $folder = './';

$handle = opendir($folder);
$exts = explode(' ', $exts);
while (false !== ($file = readdir($handle))) {
foreach($exts as $ext) { // for each extension check the extension
if (preg_match('/\.'.$ext.'$/i', $file, $test)) { // faster than ereg, case insensitive
$files[] = $file; // it's good
++$i;
}
}
}
closedir($handle); // We're not using it anymore
mt_srand((double)microtime()*1000000); // seed for PHP < 4.2
$rand = mt_rand(0, $i); // $i was incremented as we went along

header('Location: '.$folder.$files[$rand]); // Voila!
?>

Code By Matt Mullenweg > http://photomatt.net

Now upload whatever images you want to be in your rotational sig and your done!

To put the rotational image in your signature, just add this code (Replace INSERTUSERNAMEHERE with your username) :
Code:
[img]http://h1.ripway.com/INSERTUSERNAMEHERE/RotationalSig.php[/img]


If you'd like to request some signatures for your rotational sig, feel free to request here :
graphics-requests-f42/taking-request-for-sig-s-t27467.html


Top
 Profile  
 
 Post subject: Re: How to make Rotational Sigs!
PostPosted: Thu Aug 06, 2009 3:35 am 
Offline
User avatar
.: Level V :.

Joined: Sun Dec 02, 2007 5:23 am
Posts: 1319
iTrader:
Gender: Male
Cash:754
Reputation point: 237
Rhett has a brilliant futureRhett has a brilliant futureRhett has a brilliant futureRhett has a brilliant futureRhett has a brilliant futureRhett has a brilliant futureRhett has a brilliant futureRhett has a brilliant futureRhett has a brilliant futureRhett has a brilliant future


Content Giveaway Donor Award Trader Winner Award

Or you could go here: http://sig.grumpybumpers.com/index.cgi
put username and PW in, confirm PW, load image urls, hit enter. works well enough for me.

_________________
inactive - trying to get back into being active. :rhett:
_██_
(ಠ_ಠ)

My guides/other stuff check them out?
Game Guide Index - Updated 20k Igloo List (Lv 1 Private) - Altador Cup IV - ¿did you say fútbol? - Chia Bombers Dos - Meepit vs. Feepit - Making MILLIONS! - Realms Pair Compare


Top
 Profile  
 
 Post subject: Re: How to make Rotational Sigs!
PostPosted: Thu Aug 06, 2009 3:43 am 
Offline
User avatar
.: Level IV :.

Joined: Wed Jun 25, 2008 10:41 pm
Posts: 938
Location: Canada =D
iTrader:
Gender: Male
Cash:807
Reputation point: 210
Rider has a brilliant futureRider has a brilliant futureRider has a brilliant futureRider has a brilliant futureRider has a brilliant futureRider has a brilliant futureRider has a brilliant futureRider has a brilliant futureRider has a brilliant future


Content Giveaway Donor Award Graphics Trader Winner Award

Most sites like those get shut down.
That's why i wrote this alternative guide.
Two of the services i used got closed down.
And this is easier.
Ripway account, new file, load images.
Same thing basically except it won't get closed down.


Top
 Profile  
 
 Post subject: Re: How to make Rotational Sigs!
PostPosted: Thu Aug 06, 2009 6:01 am 
Offline
User avatar
.: Level V :.

Joined: Sat May 10, 2008 3:43 pm
Posts: 1326
iTrader:
Highscores: 1
Gender: Male
Cash:1132
Reputation point: 157
Cacklenub has much to be proud ofCacklenub has much to be proud ofCacklenub has much to be proud ofCacklenub has much to be proud ofCacklenub has much to be proud ofCacklenub has much to be proud ofCacklenub has much to be proud of


Content Giveaway Donor Award Trader Winner Award

Here is the code I use as a shorter alternative.

I think Zer0 made it, or ricky. I dunno. :P

It's shorter, but you got to update it everytime you have a new file.

Speaking of, I need to upload the Steven Jackson one someone made me the other day lol.
Code:
<?php
$files[0] = 'http://h1.ripway.com/cackle/signatures/cackle.jpg';
$files[1] = 'http://h1.ripway.com/cackle/signatures/cacklev1.png';
$files[2] = 'http://h1.ripway.com/cackle/signatures/cacklev2.png';
$files[3] = 'http://h1.ripway.com/cackle/signatures/ip2h46.png';
$files[4] = 'http://h1.ripway.com/cackle/signatures/chicagoclubsjx2.png';
$files[5] = 'http://h1.ripway.com/cackle/signatures/stevenjackson.png';
header('Location: ' . $files[ mt_rand( 0, sizeof( $files )-1 ) ]);
?>

_________________
Image


Top
 Profile  
 
 Post subject: Re: How to make Rotational Sigs!
PostPosted: Fri Aug 07, 2009 2:25 pm 
Offline
User avatar
.: Level II :.

Joined: Wed Jul 15, 2009 9:40 am
Posts: 316
iTrader:
Gender: Male
Cash:49
Reputation point: 26
piggybepink has a spectacular aura about thempiggybepink has a spectacular aura about them


Giveaway Donor Award Graphics Winner Award

Oooh, great!

*sets up RotaSig*

Thanks for the guide, Rider, and everyone else for their codes. P:

_________________
Image

Made by me. Currently taking siggie requests. PM me. (:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
* FAQ

Powered by phpBB © 2000-2008 phpBB Group
NEOPETS, characters, logos, names and all related indicia are trademarks of Neopets, Inc., © 1999-2008. © denotes Reg. US Pat. & TM Office. All rights reserved.
Website © 2008 neofriends.net - this site is in no way affiliated with Neopets, Inc or Viacom International, Inc.

phpBB SEO