09-08-2011, 01:56 PM
First of all, I found this on http://www.thesitewizard.com/ so credits go to them for that but I'm writing this out myself.
Requirements:
Okay first of go to your public_html in your cPanel, make a new directory called "img".
Make a file called "index.php" (this then becomes the default page for the img directory)
Inside the index.php, enter this following code:
Make Sure You Save It!
Okay, that should be done, now go to http://www.YourDomain.com/img and you should see your IP.
Go onto the forum of which you want this is your signature, go to the UserCP and click "Edit Signature".
In your signature enter this following BBCode:
If you want to get the exact colours for the backgrounds of forums. so it looks just like the text then edit this:
Change it to:
HackForums
SupportForums
(Want any other forum codes just request them (post forum you want the code for) )
You're Done! Congratulations!
Now Go Freak Out Some People
Requirements:
- A Domain
- Hosting For It
- Patience
- Spare 20 Minutes On Your Hands
Okay first of go to your public_html in your cPanel, make a new directory called "img".
Make a file called "index.php" (this then becomes the default page for the img directory)
Inside the index.php, enter this following code:
PHP Code:
<?php
$ip = $_SERVER['REMOTE_ADDR'];
$my_img = imagecreate( 250, 80 );
$background = imagecolorallocate( $my_img, 102, 102, 102 );
$text_colour = imagecolorallocate( $my_img, 255, 255, 0 );
$line_colour = imagecolorallocate( $my_img, 128, 255, 0 );
imagestring( $my_img, 4, 30, 25, "Your IP Is: $ip",
$text_colour );
imagesetthickness ( $my_img, 7 );
imageline( $my_img, 30, 45, 220, 45, $line_colour );
header( "Content-type: image/png" );
imagepng( $my_img );
imagecolordeallocate( $line_color );
imagecolordeallocate( $text_color );
imagecolordeallocate( $background );
imagedestroy( $my_img );
?>
Make Sure You Save It!
Okay, that should be done, now go to http://www.YourDomain.com/img and you should see your IP.
Go onto the forum of which you want this is your signature, go to the UserCP and click "Edit Signature".
In your signature enter this following BBCode:
Code:
[img]http://www.YourDomainHere.com/img/index.php[/img]
If you want to get the exact colours for the backgrounds of forums. so it looks just like the text then edit this:
PHP Code:
$background = imagecolorallocate( $my_img, 102, 102, 102 );
Change it to:
HackForums
PHP Code:
$background = imagecolorallocate( $my_img, 102, 102, 102 );
SupportForums
PHP Code:
$background = imagecolorallocate( $my_img, 87, 87, 87 );
You're Done! Congratulations!
Now Go Freak Out Some People