Techware Labs Header

Forums have moved

See this announcement for more details, or just go directly there.


Go Back   Techwarelabs Community > Tech > General Board

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-26-2001, 09:01 PM
Uranium-235's Avatar
Uranium-235 Uranium-235 is offline
Administrator
 
Join Date: Nov 2001
Location: Mansfield, TX
Posts: 2,469
Send a message via ICQ to Uranium-235 Send a message via AIM to Uranium-235
Default I'm moving my Personal PIC to my sig

YABB won't let me use my Random img script for my personal pic. They should redo that to judge if it's an image by the headers of the location instead of the last 4 letters being eather .jpg or .gif (I'm guessing that's how it works)
__________________
PHP...It kicks ASP
Reply With Quote
  #2  
Old 12-28-2001, 05:23 PM
Hulaboy
 
Posts: n/a
Default Re: I'm moving my Personal PIC to my sig

I did a couple of page refreshes and I have to say that those are some pretty interesting pictures you have there...hahaha!
Reply With Quote
  #3  
Old 12-28-2001, 08:42 PM
Uranium-235's Avatar
Uranium-235 Uranium-235 is offline
Administrator
 
Join Date: Nov 2001
Location: Mansfield, TX
Posts: 2,469
Send a message via ICQ to Uranium-235 Send a message via AIM to Uranium-235
Default Re: I'm moving my Personal PIC to my sig

yeah, 3 of them are from a website telling you how to NOT mod you case  

The one with the plyers on top of it is my PC
__________________
PHP...It kicks ASP
Reply With Quote
  #4  
Old 12-28-2001, 09:25 PM
Keefe Keefe is offline
Administrator
 
Join Date: May 2002
Location: Wisconsin
Posts: 2,337
Send a message via ICQ to Keefe Send a message via AIM to Keefe Send a message via MSN to Keefe Send a message via Yahoo to Keefe
Default Re: I'm moving my Personal PIC to my sig

Those are awsome pics!

We want more!!!
__________________
It's crazy I'm thinking, just knowing that the world is round.
-http://www.techwarepc.com/ - The Technology Experts
Reply With Quote
  #5  
Old 12-29-2001, 01:55 AM
Uranium-235's Avatar
Uranium-235 Uranium-235 is offline
Administrator
 
Join Date: Nov 2001
Location: Mansfield, TX
Posts: 2,469
Send a message via ICQ to Uranium-235 Send a message via AIM to Uranium-235
Default Re: I'm moving my Personal PIC to my sig

eh. we'll see


Edit: Done and done  ;D
__________________
PHP...It kicks ASP
Reply With Quote
  #6  
Old 12-29-2001, 02:42 AM
Uranium-235's Avatar
Uranium-235 Uranium-235 is offline
Administrator
 
Join Date: Nov 2001
Location: Mansfield, TX
Posts: 2,469
Send a message via ICQ to Uranium-235 Send a message via AIM to Uranium-235
Default Re: I'm moving my Personal PIC to my sig

oh yeah. here's the source, for those of you who want it
--------------------------------------------------
Code:
<?php
header("content-type: image/jpg"); //netsmog forum dosent like that first ", the & quot is a "
header("Cache-Control: no-store, no-cache, must-revalidate");  
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); 

//RandomIMG
//]MX[Uranium-235

function loadimage($filename)
{
      $file = fopen($filename, "rb");
      fpassthru($file);
      fclose($file);
}

$mdir = "images/$catagorey";

if(trim($catagorey) == "")
      loadimage("images/error.jpg");

if(!$dir = @opendir($mdir))
      loadimage("images/error.jpg");

while($file = readdir($dir))
{
      if($file != ".." && $file != ".")
            $imgs[] = $file;
}

closedir($dir);
mt_srand(time());
$num_img = count($imgs)-1;

//patched - mt_rand will not accept (0, 0)
if($num_img <= 0)
      $rand = 0;
else
      $rand = mt_rand(0, $num_img);

$images = $mdir . "/" . $imgs[$rand];


loadimage($images);

?>
__________________
PHP...It kicks ASP
Reply With Quote
  #7  
Old 12-29-2001, 10:48 AM
Keefe Keefe is offline
Administrator
 
Join Date: May 2002
Location: Wisconsin
Posts: 2,337
Send a message via ICQ to Keefe Send a message via AIM to Keefe Send a message via MSN to Keefe Send a message via Yahoo to Keefe
Default Re: I'm moving my Personal PIC to my sig

Thanks for the code!

I am going to use this on another page that i have.
__________________
It's crazy I'm thinking, just knowing that the world is round.
-http://www.techwarepc.com/ - The Technology Experts
Reply With Quote
  #8  
Old 12-29-2001, 12:13 PM
Uranium-235's Avatar
Uranium-235 Uranium-235 is offline
Administrator
 
Join Date: Nov 2001
Location: Mansfield, TX
Posts: 2,469
Send a message via ICQ to Uranium-235 Send a message via AIM to Uranium-235
Default Re: I'm moving my Personal PIC to my sig

ok. then here's the other info on it. in the Images directory thier has to be a error.jpg. You can probaly make your own

and in the images directory you have to have other directories. Like I have /images/netsmog

and in the image for my sig it has randimg.php?catagorey=netsmog

put all the images you want under that ?catagorey=x in directory images/x
__________________
PHP...It kicks ASP
Reply With Quote
  #9  
Old 12-29-2001, 03:09 PM
Keefe Keefe is offline
Administrator
 
Join Date: May 2002
Location: Wisconsin
Posts: 2,337
Send a message via ICQ to Keefe Send a message via AIM to Keefe Send a message via MSN to Keefe Send a message via Yahoo to Keefe
Default Re: I'm moving my Personal PIC to my sig

Thanks for the explanations!

Hey do you have any php scripts that count how many users are on a web site?

Thanks

Keefe
__________________
It's crazy I'm thinking, just knowing that the world is round.
-http://www.techwarepc.com/ - The Technology Experts
Reply With Quote
  #10  
Old 12-29-2001, 03:52 PM
Uranium-235's Avatar
Uranium-235 Uranium-235 is offline
Administrator
 
Join Date: Nov 2001
Location: Mansfield, TX
Posts: 2,469
Send a message via ICQ to Uranium-235 Send a message via AIM to Uranium-235
Default Re: I'm moving my Personal PIC to my sig

no. that's one I could never figure out how to do. I know it can be done with asp/vb
__________________
PHP...It kicks ASP
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:11 AM. Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Forum style by ForumMonkeys.