Techwarelabs Community

Techwarelabs Community (https://www.techwarelabs.com/community/index.php)
-   General Board (https://www.techwarelabs.com/community/forumdisplay.php?f=7)
-   -   I'm moving my Personal PIC to my sig (https://www.techwarelabs.com/community/showthread.php?t=283)

Uranium-235 12-26-2001 09:01 PM

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)

Hulaboy 12-28-2001 05:23 PM

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!

Uranium-235 12-28-2001 08:42 PM

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  :o

The one with the plyers on top of it is my PC

Keefe 12-28-2001 09:25 PM

Re: I'm moving my Personal PIC to my sig
 
Those are awsome pics!

We want more!!!

Uranium-235 12-29-2001 01:55 AM

Re: I'm moving my Personal PIC to my sig
 
eh. we'll see :)


Edit: Done and done  ;D

Uranium-235 12-29-2001 02:42 AM

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);

?>


Keefe 12-29-2001 10:48 AM

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.

Uranium-235 12-29-2001 12:13 PM

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

Keefe 12-29-2001 03:09 PM

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

Uranium-235 12-29-2001 03:52 PM

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

Keefe 12-30-2001 12:14 AM

Re: I'm moving my Personal PIC to my sig
 
I bet your pics are killing  the peeps still on 56k dial-up...he he he

Uranium-235 12-30-2001 11:36 AM

Re: I'm moving my Personal PIC to my sig
 
na. PSP JPG compression is usually pretty good. I resized most of them for just that reason

thetechfreak 01-06-2002 04:27 AM

Re: I'm moving my Personal PIC to my sig
 
yea, the pics are fine on 56k

the whole site is pretty fast on 56k compared to other forums

Simo 01-06-2002 07:17 AM

Re: I'm moving my Personal PIC to my sig
 
Interesting...someone was saying how its slower than other forums.....go figure..


All times are GMT -5. The time now is 06:04 PM.

Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.