I cant find a place to do that...
Any help?
Seahag
Printable View
I cant find a place to do that...
Any help?
Seahag
Ahh .. so you need a web site.
thanks..
Or maybe web space..?? like excite?(breifcase?)
That is all
Seahag
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.
clever! :)
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 :)
oi simon stealing my idea from months back :mad: :D
But he's irretrievably wrecked the idea by using ASP ;)
yeah, mine used rock-on Perl ;)
How does yours work then?
- 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.
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);
}
Thats what i figured,..
But i don't understand.. chenko`s link..
Would i view source.. and then cut and paste to my
signature?
Eh, you might want to use this instead: http://www.hostedscripts.com/randomimage.html
Ok.. scripting..
YOu can then script right in the signature?
You just put this in your sigQuote:
Originally posted by SeaHag
Ok.. scripting..
YOu can then script right in the signature?
http://www.domain.com/cgi-bin/sig_gen.cgi
Probably best if you follow filburt's link.
No worries..
You dont learn anything if you take shortcuts..
I`ll get get something together...
:D
Hello
I used chenko`s script thiggy..
What am i doing wrong..?
I think the path is valid
Now that's a face to be proud of when you see it in the bathroom mirror in the morning :D
It seems to work sometimes..
Maybe 1 path is bad..
BRB
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]
:)
Just messin' with ya ;)Quote:
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
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 :pQuote:
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
:p
So I guess...you never see my signature ??Quote:
Originally posted by parksie
But he's irretrievably wrecked the idea by using ASP ;)
NEWS Updated Every 4 hours !
[ what's used : WIN2k, IIS 5, ASP, VBSCRIPT ]
http://www25.brinkster.com/thinktank...=Top%20stories
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.
yay!
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..
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
http://www.lyricscircle.com/tools/rn...com/image2.jpg
first set the amount of images... ?max=2
then add &id1= &id2= for each image you have
simple :)
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
I am using your link. maybe i shouldn't be..
1) :cool:
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
maybe its my free web space giving me grief..
Its spuratic..
Sorry for the accusation..
yea it sames like your webspace is farked :p