Add to Google

How To Make A Sig Rotator - for people with multiple sigs

Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9
free web hosting
Open Discussion > CONTRIBUTE > Tutorials

How To Make A Sig Rotator - for people with multiple sigs

Klass
so if I don;t want to do the processing through the internet how do I use absolute paths?

would it be ./sig.png/image.jpg ?

Comment/Reply (w/o sign-up)

snlildude87
QUOTE(badinfluence @ Jul 23 2005, 12:10 PM)
array can trim off more nice look, isnt it?
*

I kinda didn't use an array....


QUOTE(Klass @ Jul 23 2005, 12:36 PM)
so if I don;t want to do the processing through the internet how do I use absolute paths?

would it be ./sig.png/image.jpg ?
*

I am using absolute paths. The one you're talking about is relative paths. smile.gif

If you're going to store the sigs in a folder called sigs inside sig.png, then it use be something like
CODE
readfile("sigs/image.jpg");
If going to store the index.php file and all the sigs in sig.png, then it would be
CODE
readfile("image.jpg");
You actually don't need the ./ at the beginning.

Hope that answers your question!

 

 

 


Comment/Reply (w/o sign-up)

sachavdk
Ahm Saint_Michael, wouldn't it be easier to do it this way:

CODE
<?php
Header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
Header("Expires: Thu, 19 Nov 1981 08:52:00 GMT");
Header("Pragma: no-cache");
Header("Content-Type: image/gif");

srand((double)microtime()*1000000);
readfile("http://www.saint-michael.trap17.com/images/sig1-".rand(0,54)+2.".jpg");
?>


I don't now your full purpose but I do think this one's easier wink.gif

Notice from Klass:
You need to use code tags when typing code.

Comment/Reply (w/o sign-up)

snlildude87
QUOTE(sachavdk @ Jul 23 2005, 05:44 PM)
Ahm Saint_Michael, wouldn't it be easier to do it this way:

CODE
<?php
Header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
Header("Expires: Thu, 19 Nov 1981 08:52:00 GMT");
Header("Pragma: no-cache");
Header("Content-Type: image/gif");

srand((double)microtime()*1000000);
readfile("http://www.saint-michael.trap17.com/images/sig1-".rand(0,54)+2.".jpg");
?>


I don't now your full purpose but I do think this one's easier wink.gif

Notice from Klass:
You need to use code tags when typing code.

*

Yeah it would actually. Thanks for posting an alternative! I would use a better naming techniques for my sigs, but I don't want to waste my bandwidth.

Comment/Reply (w/o sign-up)

Saint_Michael
but your missing something in the coding, yeah you set up the process for the image to be shown but how would you retrieve it. out of this line of the code ".rand(0,54)+2"

QUOTE
readfile("http://www.saint-michael.trap17.com/images/sig1-".rand(0,54)+2.".jpg");



Comment/Reply (w/o sign-up)

stusrud
i don't think so, but i am not 100% sure.

Notice from BuffaloHELP:
You must explain or specify your idea when contributing. This is considered a spam and this is your only notice. Next will earn you adjustment in warning level.

Comment/Reply (w/o sign-up)

Dragonfly
It looks really impressive. I'll give a try very soon. But can't the code be made a little shorter. Does it have to be this long? biggrin.gif Will not there be any ways to shortern the code? smile.gif

I'll give a try and inform you soon.

Thanks for sharing this cool sig.

Comment/Reply (w/o sign-up)

Saint_Michael
well if thier is another way to shorten up the coding to retrieve the images then that would be good, but i think its going to be pretty big, if you look what i did i have over 50+ images, but the best parts its not really taking that much space in the long run since all your doing is adding 2 lines of coding.

Comment/Reply (w/o sign-up)

badinfluence
QUOTE(snlildude87 @ Jul 24 2005, 01:01 AM)
I kinda didn't use an array....
*




QUOTE(Dragonfly @ Jul 25 2005, 02:53 PM)
It looks really impressive. I'll give a try very soon. But can't the code be made a little shorter. Does it have to be this long? biggrin.gif Will not there be any ways to shortern the code? smile.gif
*



i mean as we can see in Saint Miky, there are 50 plus repeated code line for each sig. so if we can replace with array(function/class) then the code gonna be shortened, i suppose and it will be perfect! rolleyes.gif

Comment/Reply (w/o sign-up)

sachavdk
QUOTE(Saint_Michael @ Jul 25 2005, 06:16 AM)
but your missing something in the coding, yeah you set up the process for the image to be shown but how would you retrieve it. out of this line of the code ".rand(0,54)+2"
*


no I'm not wink.gif
readfile() reads the file from which the path is given in a string.
Since you want a random image you add the random number to the string.

You (Saint_Michael) have 52 images if I'm not mistaken starting from number 2 until 54. So a random number is taken between 0 and 52 (I've been mistaken)
CODE
rand(0,54)+2

//should be

rand(0,52)+2

//in your case


Then the random number is between 2 and 54 since you added 2 and that value is added to the string of the filepath.
Only when the string's complete, the file will be read.
But maybe this one's better:
CODE
readfile("http://www.saint-michael.trap17.com/images/sig1-".(rand(0,52)+2).".jpg");

An example of the string after the number is generated could be
"http://www.saint-michael.trap17.com/images/sig1-17.jpg"
which I think is one of your images and it should been read properly.

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9
Recent Queries:-
  1. how to make cool siggy? - 32.04 hr back. (1)
  2. how to make siggie - 61.92 hr back. (1)
  3. how to make a sig with photobucket - 76.62 hr back. (1)
  4. how to make an sig? - 82.92 hr back. (1)
  5. make a sig - 99.67 hr back. (1)
  6. how to create roator in xhtml - 112.57 hr back. (1)
  7. how to make sig rotator - 157.95 hr back. (1)
  8. copy and paste adfree php image rotator - 164.44 hr back. (1)
  9. how to make a sig online - 176.79 hr back. (1)
  10. how to make sig - 208.34 hr back. (1)
  11. sigrotator - 209.98 hr back. (1)
  12. siggy rotator - 216.25 hr back. (3)
  13. how to make a rotator sig - 240.13 hr back. (1)
  14. sig rotator - 25.67 hr back. (13)
Similar Topics

Keywords : make, sig, rotator, people, multiple, sigs

  1. Sharepoint Calendars Integrated Into Outlook 2007
    Showing multiple Sharepoint Calendars in Outlook 2007 (Company wide De (0)
  2. Start Multiple Programs With One Shortcut
    Windows XP (17)
    Welcome to my turoial on how to start multiple programs using one shortcut. You may probably be
    wondering how this is possible. Well this tutorial will use a language from MS-DOS called batch. I
    am not sure whether it is "language", but I do know that it is a way to program for MS-DOS. Batch is
    simply a way to run several MS-DOS commands with just one command. All batch files are run through
    Command Prompt, but they can be accessed with shortcuts also. Here are a few requirements for this
    tutorial. Requirements Windows XP (I tested this on XP, but it should work on m....
  3. Image Rotator Script (another One)
    easy to implement (0)
    In case you haven't noticed, I have a different Avatar display on the Forum each time the page
    is refreshed. /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif"
    /> For those of you who might want the script to do that, here is the one I am using: HTML
    $filesp = glob('*.png'); if(empty($filesp)){ echo 'no images found...die br >';
    die(); } else{ foreach ($filesp as $file) { $img_array = trim($file); } } shuffle($img_array);
    //select image at random header("C o n t e n t{dash}t y p e: image/png"); // replace th....
  4. Dynamic Signature - Yet Another Way To Do It
    Create dynamic sigs for multiple users using .htaccess and RewriteRule (0)
    Ever since I connected a program I made in Visual Basic to MySQL database, I had an idea to create
    some sort of a status page... And I did that, where I updated my connection status every 60 seconds,
    updated my Winamp playlist, and several other interesting things... Then, I figured I could create
    an image, and display all that info, and show it on forums, as a signature... And I made a great
    PHP script, that look real fancy, and does the job perfectly... So, I was adding the reference to
    http://status.galahad.trap17.com/stat.php to all the forums... BUT (there's ....
  5. How To Group Multiple Sets Of Data In Microsoft Excel 2007
    (0)
    How to Group Multiple Sets of Data in Microsoft Excel 2007 Sometimes you may open several
    workbooks and work with a number of the same workbooks at a time. You can open this group of files
    with Microsoft Excel 2007 simultaneously. But you have to define them as part of a workspace, and
    save them in a single Excel 2007 file. To do this, follow below steps: 1- Click On the View tab and
    then in the Window group click Save Workspace. The Save Workspace dialog box appears. 2- In the File
    name field, type your work name and then Click Save. 3- At the top-left of window, C....
  6. Installing Multiple Os On Your Pc
    How to do that (0)
    Hi everyone, Ok before I start, I want to let you guys know the meanings of some of the
    terminologies I will be using in here. Boot loader is a small program which the operating system
    places on the selected partition (in most cases, the MBR ). it is a small program that loads the
    operating system into the computer’s memory when the system is booted and also starts the
    operating system. So, before you can think of configuring your PC to have multiple boot, you should
    also know how to play around with 'em boot loaders too. And you should also make sure that y....
  7. Multiple Classes In Html
    you can use more than one at a time (8)
    Multiple Classes in Css Styles Classes are used in html pages to give certain defined
    attributes to elements. They are useful when the attributes are to be used in more than one place on
    a page. (Named Id's are only allowed once per page, but I digress... might have a tutorial on
    that some day.) Sometimes you want Red text and sometimes you want Bold text. Easy enough to do,
    simply define a class and apply it to the element you want red or bold. Use this class where you
    want on the page, since classes are enabled to be used in several spots, for different u....
  8. Yet Another Signature Rotator
    (Easier, and more Efficient) (7)
    Hey Trap, It's Mr. Panda, and I'm introducing a signature rotator script I came across
    several months ago. Unlike most other signature rotators on trap17, this one does DOES NOT
    require the configuration process, and a new signature can be added, simply by uploading it to the
    proper directory. Seeing as this requires so much less configuration, I do hope it will be
    implemented by some of you 'Sig Masters' out there /biggrin.gif' border='0'
    style='vertical-align:middle' alt='biggrin.gif' /> , that have to add another line of code to your
    rotator file....
  9. Multiple Admin Login (php)
    This is a script that doesnt requre SQL (3)
    first off make a login.html page Code: QUOTE Admin Login Username: Password:
    then make a check.php page Code: QUOTE $admin1 = "admin1"; // first
    admin username $adm_pass1 = "password1"; // first admin password $admin2 = "admin2"; // second
    admin username $adm_pass2 = "password2"; // second admin password if(($username == $admin1 &&
    $password == $adm_pass1) || ($username == $admin2 && $password == $adm_pass2)){ echo
    "Congratulations " . $_POST . " You may now proceed to the admin area !"; } else { echo "Userna....
  10. Simple Image Rotator
    randomly rotate images (6)
    First, It's really confusing. Do you know any tutorials on Image Manipulation on PHP?
    Here's another simple one: 1. Create a 5 image. 2. Rename them to something like:
    image1.jpg; image2.jpg; and so on... 3. Create your PHP file (rotation.php) 4. Enter the
    following code: CODE header("content-type: image/jpeg");
    readfile("image".mt_rand(1,3).".jpg"); ?> 5. Execute your script.....

    1. Looking for make, sig, rotator, people, multiple, sigs

Searching Video's for make, sig, rotator, people, multiple, sigs




advertisement



How To Make A Sig Rotator - for people with multiple sigs