IPB
Your FREE membership includes:
  • A friendly community where you can come to chat
  • Receive completely FREE quality web hosting!
  • Get reviews and suggestions for your websites!
  • Take part in competitions where you can win prizes from cash, vouchers, or win special unadvertised hosting

Welcome Guest ( Log In | Register )


Shortcut links:
Profile
Personal Photo
Rating
 
Options
Options
Personal Statement
Shanebob doesn't have a personal statement currently.
Personal Info
Shanebob
Starter Member
17 years old
Gender Not Set
Madison, Ohio
Born Dec-3-1990
Interests
No Information
Statistics
Joined: 7-January 07
Profile Views: 77*
Last Seen: 7th September 2007 - 07:37 AM
Local Time: Dec 2 2008, 09:01 AM
110 posts (0 per day)
Contact Information
AIM Teh1337Shanebob
Yahoo No Information
ICQ No Information
MSN No Information
Contact Private
* Profile views updated each hour

Shanebob

Members


Topics
Posts
Comments
Friends
My Content
28 Feb 2007
So apparently I used 80% of my bandwidth this month, but I really only needed one email...Instead I've gotten probably around 20. I've been getting several a day saying "The domain shanebob.tfcph.com (shanebob) has reached 80% of its bandwidth limit. Please contact the system admin as soon as possible."

Is there a way for this to stop? And why exactly do I need to contact the system admin?
17 Feb 2007
Alrighty, this is a pretty handy trick for people that have a lot of signatures. It can be also used to used to rotate various other random images, or (if you edit it slightly) different text messages. Now I'm going to show you how to do it smile.gif

The first thing you want to do, is make a directory called sig.png

Now open up the text editor of your choice, and you can copy and paste this code if you'd like. I'll be explaining things using comments (marked by a "//" if you're new to PHP ;])

CODE
<?php
header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); // Keeps the browser from caching the image, causing the same thing to be shown every time
header("Pragma: no-cache"); // Also keeps the browser from caching
header("Content-type: image/png"); // Tells the browser it's showing a PNG image, not a whole web page

srand((double)microtime()*1000000); // Seeds the random number generator.  You don't need this if you're using PHP 4.2 or above
$rand = rand(0,1); // States that the variable 'rand' is a random number between 0 and 1.  You'll need to edit the 1 to your needs

if($rand == 0) // If the random number generated is 0...
{
    readfile("http://yoursite.com/images/signature0.jpg"); // ...show this file.  And yes, you can use .jpg, .gif, etc. even though we told the browser we're showing a .png image
}
elseif($rand == 1) // If the random number is 1...
{
    readfile("http://yoursite.com/images/signature1.png"); // ...show that file
}
?>


Once you've done that and edited the code to your liking, save it as index.php in the sig.png directory. Upload it to your webspace, then refresh the page a couple times and it should work.

If you've got any questions, feel free to ask.
28 Jan 2007
Alright, so I followed a tutorial on how to make a signature and then allow people to put their own text on it. It works on my localhost, but not when I upload it to TFCPH...Here's the code I'm using, minus a bunch of members to shorten it.

CODE
<?php
header('Content-type: image/png');
$user = $_GET['user'];
$im = imagecreatefrompng ("../madison/madison.png");

if ($user == "Shanebob"){
    $color = imagecolorallocate($im, 187, 0, 0);
    }
else if ($user == "OMENEMO"){
    $color = imagecolorallocate($im, 0, 122, 0);
    }
else {
    $color = imagecolorallocate($im, 0, 0, 0);
    }
    
$font = 'Arial.ttf';
$fontsize = 10;
$size = imagettfbbox($fontsize, 0, $font, $user); //calculate the pixel of the string
$dx = (imagesx($im)) - (abs($size[2]-$size[0])) - 20; //calculate the location to start the text
imageTTFtext ($im, $fontsize, 0, $dx, 13, $color, $font, $user);
imagepng($im);
imagedestroy($im);
?>


The image I'm trying to create it from is here

Anyone have any ideas? I have a feeling it just won't work on here... dry.gif

EDIT: Here's a screenshot of a bunch of them, how they're supposed to work, on my localhost

27 Jan 2007
Alright, I thought this was weird...And also annoying.

When I go into phpMyAdmin, I'm automatically logged in, but I don't seem to have privileges...I can't delete databases at least. But when I try and log out, I get "Wrong username/password. Access denied."

huh.gif
20 Jan 2007
Anyone here play Counter-Strike: Source?

I've got it, but I can't play it on my computer because of my wireless router...I'm hoping to get it on my dad's computer, though, so I can play it.

If and when it's running, I use the name Shanebob
Last Visitors
Shanebob has no visitors to display.

Comments
Other users have left no comments for Shanebob.

Friends
There are no friends to display.
© GrandForums.com