| Author |
Message |
Dogbreath Admin

 Joined: 14 Sep 2002 Posts: 3773 Location: In the back of a jacked-up Ford.
|
Posted: Mon Dec 15, 2003 2:41 pm
Post subject: |
|
|
| If you really can't find one then PM Tony_Montana, he'll make one for you! |
|
| Back to top |
|
 |
johpower Way too much free time

 Joined: 06 Jan 2003 Posts: 424 Location: Colorado North 40
|
Posted: Wed Dec 17, 2003 5:33 am
Post subject: |
|
|
DB: interesting.... If I change avatars, all of my old posts change avatar to the most recent choice. You change them and they are almost random. I've found the rodentia on some, a cat on some, a b&w poochie on some, etc. And the old ones don't stick to the messages they were made with. (See the 3 pics I found note... where's the rodent?) You waving the Magic Wand of Sysop or something?  |
|
| Back to top |
|
 |
Splodginator Way too much free time

 Joined: 23 Apr 2003 Posts: 560 Location: Nowhere.
|
Posted: Wed Dec 17, 2003 6:18 am
Post subject: |
|
|
| Aah, I see, DB's using PHP to change his avatar to a random one every pageview. |
|
| Back to top |
|
 |
Oz Way too much free time

 Joined: 15 Sep 2002 Posts: 585 Location: London, UK.
|
Posted: Wed Dec 17, 2003 12:51 pm
Post subject: |
|
|
| it doesn't have to be php. JTA's sig does that, and its written in c++, if i recall correctly. |
|
| Back to top |
|
 |
Dogbreath Admin

 Joined: 14 Sep 2002 Posts: 3773 Location: In the back of a jacked-up Ford.
|
Posted: Wed Dec 17, 2003 2:26 pm
Post subject: |
|
|
php, and it's hardly magic.
| Code: |
<?php
header ("Content-Type: image/jpeg");
$pics = array (
"image",
"image",
"image",
//replace "image" with name of file, copy as many times as necessary
);
srand ((double) microtime() * 10000000);
shuffle ($pics);
$pic = $pics["0"];
$CLynePic = imageCreateFromJPEG($pic);
ImageJPEG($CLynePic);
?> |
It'll give you a different image every time you load a page. (Note that it's set to microtime() * 10000000 so wait about a second before re-reloading)
| Oz wrote: | | it doesn't have to be php. |
Right click on my avatar and click "properties... what other types of files end in ".php"? |
|
| Back to top |
|
 |
Oz Way too much free time

 Joined: 15 Sep 2002 Posts: 585 Location: London, UK.
|
Posted: Thu Dec 18, 2003 6:58 pm
Post subject: |
|
|
a microsoft picture it! document, apparently... or a Creatacard Quick Prints Project, or a PhotoParade Slideshow.... duh!
 |
|
| Back to top |
|
 |
Splodginator Way too much free time

 Joined: 23 Apr 2003 Posts: 560 Location: Nowhere.
|
Posted: Thu Dec 18, 2003 8:39 pm
Post subject: |
|
|
| They're not C++, are they? |
|
| Back to top |
|
 |
Kazer0 Mercenary Dishwasher
 Joined: 17 Sep 2002 Posts: 2720 Location: In an igloo with my pet penguin, eh?
|
Posted: Thu Dec 18, 2003 9:08 pm
Post subject: |
|
|
No.
w00t! 2010 posts! |
|
| Back to top |
|
 |
Dogbreath Admin

 Joined: 14 Sep 2002 Posts: 3773 Location: In the back of a jacked-up Ford.
|
Posted: Thu Dec 18, 2003 9:36 pm
Post subject: |
|
|
| Splodginator wrote: | | They're not C++, are they? |
Nooooooooooo... not last time I checked anyway. *Wonders if K0 has been messing around with his FTP files * |
|
| Back to top |
|
 |
Splodginator Way too much free time

 Joined: 23 Apr 2003 Posts: 560 Location: Nowhere.
|
Posted: Thu Dec 18, 2003 9:57 pm
Post subject: |
|
|
| What I meant was Picture It!, Create-a-card, and Slideshow files aren't C++. |
|
| Back to top |
|
 |
Kazer0 Mercenary Dishwasher
 Joined: 17 Sep 2002 Posts: 2720 Location: In an igloo with my pet penguin, eh?
|
Posted: Thu Dec 18, 2003 10:16 pm
Post subject: |
|
|
| Dogbreath wrote: | | Splodginator wrote: | | They're not C++, are they? |
Nooooooooooo... not last time I checked anyway. *Wonders if K0 has been messing around with his FTP files * |
No I havent. And AFAIK, you can't run C+ codes on the internet. |
|
| Back to top |
|
 |
Splodginator Way too much free time

 Joined: 23 Apr 2003 Posts: 560 Location: Nowhere.
|
Posted: Thu Dec 18, 2003 11:49 pm
Post subject: |
|
|
| Yeah you can- through CGI. Though most scripts are Perl, a few are C/C++. |
|
| Back to top |
|
 |
|