![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
![]() |
![]() | | LinkBack (4) | Thread Tools | Display Modes | ![]() |
| ||||
| Dynamic PHPNuke Stats Image. All Credit to: Western Studios - Free and custom PHP Nuke themes, graphics designs, tutorials This tutorial will explain how to create those very cool signatures that show your phpnuke stats and other informations. It is quite simple once you understand how to create queries. But I will show you how to create a few of the more common queries. Steps Create a new php file with your tags <?php ?> . The first thing in our file is to include nuke main functions and variables. Mainfile.php already has our database connection and variables, so your first part of the code should look like the following: PHP Code: PHP Code: PHP Code: $im = imagecreatefrompng($image); This is saying that the background should be created using the png file. $wc = ImageColorAllocate ($im, 255, 255, 255); These are colors for your text, it should be written just like that, the only things than can be changed are $wc and 255, 255, 255. The numbers are RGB colors and the $wc is a variable to define the color. You must use a different one for each color. ImageString($im, 2, 48, 15, "$pageview ", $wc); This part defines what's placed on the signature. The only things that should be changed are 2, 48, 15, "$pageview ", $wc . The first number ( 2 ) is the size of the text. The second and third numbers are the vertical and horizontal alignment (48, 15, ). You will have to continually adjust these to get the text at the perfect spot on the image. This ( "$pageview " ) is the variable defined from the database query. The rest of the code is just to finish the imagecreate function and close php. So your entire php file should look like the following. PHP Code: [u rl=http://www.yoursite.com] [i mg]http://www.yoursite.com/nuke/signature.php[/ img][/ url] With them together of course. Last edited by Blood08 : 07-08-2007 at 03:07 PM. |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
LinkBacks (?)
LinkBack to this Thread: http://www.programmerstalk.net/thread862.html | |||
| Posted By | For | Type | Date |
| Nuke-Evolution » Forums » Misc Help » Forum Stats Signature | This thread | Refback | 09-23-2007 12:18 PM |
| Nuke-Evolution Forums » Post 96747 » Re: Forum Stats Signature | This thread | Refback | 09-23-2007 09:26 AM |
| Nuke-Evolution Forums » Post 96730 » Forum Stats Signature | This thread | Refback | 09-23-2007 08:49 AM |
| Nuke-Evolution Forums » Post 96738 » Re: Forum Stats Signature | This thread | Refback | 09-23-2007 07:32 AM |