.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Programming
General Programming Help others and get yourself helped here!

Reply
 
Thread Tools
Re: a different sig each time
Old
  (#11)
BAStumm
Member
 
BAStumm's Avatar
 
Status: Offline
Posts: 138
Join Date: Jan 2004
Location: Spokane, WA USA
Default Re: a different sig each time - 03-01-2004

glad i could return a favor, you've helped me many a time PM.






  
Reply With Quote
Re: a different sig each time
Old
  (#12)
TruB
One Eyed Freak
 
TruB's Avatar
 
Status: Offline
Posts: 1,164
Join Date: Dec 2003
Location: local mall
Default Re: a different sig each time - 06-01-2004

does it have to be a png file.. can i change that. im not very good at php.. i getting help from someone who dont know much but know more then me..
  
Reply With Quote
Re: a different sig each time
Old
  (#13)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: a different sig each time - 06-01-2004

No, you can use one of the many image format PHP supports (provided PHP has been installed on your server with the right image lib extensions).

Have a look at www.php.net and search for the image capabilities of PHP. Everything is explained.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: a different sig each time
Old
  (#14)
TruB
One Eyed Freak
 
TruB's Avatar
 
Status: Offline
Posts: 1,164
Join Date: Dec 2003
Location: local mall
Default Re: a different sig each time - 06-01-2004

k. thanks..
  
Reply With Quote
Re: a different sig each time
Old
  (#15)
Fiber_Optic
Guest
 
Status:
Posts: n/a
Default Re: a different sig each time - 10-01-2004

Quote:
Originally Posted by Pierre-Marie Baty
Have a look at www.php.net and search for the image capabilities of PHP. Everything is explained.
The documentation of php is the best I've ever seen (maybe because there is an official one... when a C++ official doc? msdn? pff... lol ) just after the java doc which is so huge... but so useful !

Last edited by Fiber_Optic; 10-01-2004 at 23:59..
  
Reply With Quote
Re: a different sig each time
Old
  (#16)
FrostyCoolSlug
Member
 
FrostyCoolSlug's Avatar
 
Status: Offline
Posts: 318
Join Date: Mar 2004
Default Re: a different sig each time - 10-04-2004

Another (possibly slightly hackier, but still does the same) way to do this only with out the GD libs, would be something like this:

PHP Code:
<?php
$filename 
sprintf ("sig%d.png"rand (09));
readfile($filename);
?>
Rather than creating a new image, this would just 'dump' the contents of the image, keeping the image headers in tact.

The only main differences between this and the GD version are (like i said), this doesnt require GD, and it can be generated faster, thru not having to create a seperate image.


=====
Craig "FrostyCoolSlug" McLure
Network Administrator of the ChatSpike IRC Network
  
Reply With Quote
Re: a different sig each time
Old
  (#17)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: a different sig each time - 10-04-2004

testing...
wahey it works!!

Thanks Frosty! That's true, I prefer this method !



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: a different sig each time
Old
  (#18)
FrostyCoolSlug
Member
 
FrostyCoolSlug's Avatar
 
Status: Offline
Posts: 318
Join Date: Mar 2004
Default Re: a different sig each time - 10-04-2004

glad i could help


=====
Craig "FrostyCoolSlug" McLure
Network Administrator of the ChatSpike IRC Network
  
Reply With Quote
Re: a different sig each time
Old
  (#19)
FrostyCoolSlug
Member
 
FrostyCoolSlug's Avatar
 
Status: Offline
Posts: 318
Join Date: Mar 2004
Default Re: a different sig each time - 12-05-2004

i've got a slightly more 'interesting' method here, which will open a dir, read all the images in it, (doesnt matter about filenames, so long as they have valid extentions), then pick one of them at random, and display it if you want it. Would be easier for 'organising' sigs :p


=====
Craig "FrostyCoolSlug" McLure
Network Administrator of the ChatSpike IRC Network
  
Reply With Quote
Re: a different sig each time
Old
  (#20)
TruB
One Eyed Freak
 
TruB's Avatar
 
Status: Offline
Posts: 1,164
Join Date: Dec 2003
Location: local mall
Default Re: a different sig each time - 12-05-2004

do you mind giving out the source?.. or something that is easy to change so it fits or another.. i would be pretty happy if you did..

its not very importent to me.. just a cool thing to have.. must add im complete noob when it comes to php coding..
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com