Results 1 to 35 of 35

Thread: How to put a picture in your signature

  1. #1

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901

    How to put a picture in your signature

    I cant find a place to do that...
    Any help?
    Seahag

  2. #2

  3. #3

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    Ahh .. so you need a web site.
    thanks..

    Or maybe web space..?? like excite?(breifcase?)

    That is all
    Seahag

  4. #4
    You can use my thread that I created for this very purpose: http://www.vbforums.com/showthread.php?s=&postid=664783

    Just use the URL of the attachment in the [img] tag.

  5. #5

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    clever!

  6. #6
    chenko
    Guest
    also go to

    http://www.lyricscircle.com/tools/rndpic.asp?setup=1

    i made it this morning so i can have a set of random images in my sig

  7. #7
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    oi simon stealing my idea from months back

  8. #8
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    But he's irretrievably wrecked the idea by using ASP
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  9. #9
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    yeah, mine used rock-on Perl

  10. #10

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    How does yours work then?

  11. #11
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    - Put the URL of each picture into an array (nessecary because I have the images on a completely different server)
    - generate a random no between 1 and the size of the array
    - redirect caller to the image url listed in that element.

  12. #12
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    PHP Code:
    #!/usr/bin/perl -T
    # pick random image from dir and display it
    use CGI qw(:standard);

    $site param('site');
    $basedir "http://domain.com/dir_with_images_in/";
    @
    files = ("pic.gif","pic2.jpg","pic3.gif");

    # Options
    $uselog 0# 1 = YES; 0 = NO
    $logfile "/home/domain/www/Pics_Log.dat";
    $accessdate gmtime(time);

    srand(time ^ $$);
    $num rand(@files); # Pick a Random Number
    # Print Out Header With Random Filename and Base Directory
    print "Location: $basedir$files[$num]\n\n";

    # Log Image
    if ($uselog eq '1') {
        
    open (LOG">>$logfile");
        print 
    LOG "$files[$num]";
        print 
    LOG ',';
        print 
    LOG "$ENV{'REMOTE_ADDR'},$ENV{'HTTP_USER_AGENT'},${accessdate},${site}\n";
        
    # ,$ENV{'HTTP_REFERER'}
        
    close (LOG);


  13. #13

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    Thats what i figured,..

    But i don't understand.. chenko`s link..

    Would i view source.. and then cut and paste to my
    signature?

  14. #14

  15. #15

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    Ok.. scripting..

    YOu can then script right in the signature?

  16. #16
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Originally posted by SeaHag
    Ok.. scripting..

    YOu can then script right in the signature?
    You just put this in your sig



    Probably best if you follow filburt's link.

  17. #17

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    No worries..
    You dont learn anything if you take shortcuts..

    I`ll get get something together...



  18. #18

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    Hello

    I used chenko`s script thiggy..

    What am i doing wrong..?

    I think the path is valid

  19. #19

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901

  20. #20
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Now that's a face to be proud of when you see it in the bathroom mirror in the morning
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  21. #21

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    It seems to work sometimes..

    Maybe 1 path is bad..

    BRB

  22. #22
    chenko
    Guest
    chris, i like mine as it means i dont have to arse about with cgi script, and i can change it easily, and more than one can be used


    SeaHag, the images are hosted where ever you put the link to for the images

    it only gives HTML code out, you need to take the "<img src="" and replace that for [img] and "">" for [/img]


  23. #23
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Originally posted by chenko
    chris, i like mine as it means i dont have to arse about with cgi script, and i can change it easily, and more than one can be used
    Just messin' with ya

    I would do mine in PHP but it works as it is in Perl so I can't be arsed to spend more time on it

  24. #24
    chenko
    Guest
    Originally posted by chrisjk
    Just messin' with ya

    I would do mine in PHP but it works as it is in Perl so I can't be arsed to spend more time on it
    yea, i wouldnt have cared anyways

  25. #25
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923

  26. #26
    Hyperactive Member thinktank2's Avatar
    Join Date
    Nov 2001
    Location
    Arctic
    Posts
    272
    Originally posted by parksie
    But he's irretrievably wrecked the idea by using ASP
    So I guess...you never see my signature ??
    NEWS Updated Every 4 hours !
    [ what's used : WIN2k, IIS 5, ASP, VBSCRIPT ]



    Click to read the news

    Just because too many n00bs use ASP doesn't mean ASP is fit for nothing. Even a small pin can be a threatening weapon in the hands of the mighty !!!

    ASP was made with intention that even inexperienced users should have a head start. A clever user knows how to build a mountain out of mole hill!!!

    So, it's my humble opinion that u shouldn't be calling something lame just because it doesn't suit u.

  27. #27
    chenko
    Guest
    yay!

  28. #28

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    chenko.. cool I got your script to work..

    But it was spuratic.. didn't post sometimes.. and it didnt
    grab 1 of the three pic i specified..

    NO offence pls..just FYI... (maybe i did something wrong)



    Cool idea..

  29. #29
    chenko
    Guest
    didnt post sometimes? what you mean?

    and its "random" so its possible that you wont see an certain image for ages

    post the link it returns...?

    you can also do the link yourself



    first set the amount of images... ?max=2

    then add &id1= &id2= for each image you have

    simple

  30. #30

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    3 things I noticed..

    1. it worked
    2. sometimes when i looked at a post.. you would get that space where a pic should be.. but you get a little box with an x through it.. no pic
    3.Out of the Three pics i specified in the string.. only two would be randomized..

    Does that help?

    Seahag

  31. #31

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901

    BTW

    I am using your link. maybe i shouldn't be..

  32. #32
    chenko
    Guest
    1)
    2) well that means one ofyour image paths are wrong iwould guess
    3) well the third one is the one in "2)" which isnt valid


    post the link that you are using and the image paths

  33. #33

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901



    Last edited by SeaHag; Jan 25th, 2002 at 09:33 AM.

  34. #34

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    maybe its my free web space giving me grief..

    Its spuratic..
    Sorry for the accusation..

  35. #35
    chenko
    Guest
    yea it sames like your webspace is farked

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width