[Tool/Web/Other] [PHP/MySQL] Powerup Stats - Player stats signature generator
#1

Powerup stats
First Release.
Description
This is a php script which get player stats from a mysql database and "print" then into a image you can use your own design aswell down there is a example usage, also you need to change mysql variables also the configs @ config.php. If you got any problem you can write it down there.
Have a good day.

Example


Credits
Kelvin22 - Scripting/testing
Strawhat - Testing
Nodroz - Idea / Old tutorial

License
You can:
- Use this,
- Modify this,
- Redistribute this.

You can't:
- Remove the credits,
- Say that you created this.

Requiments
Web host
- GD libraries,
- PHP,
- MySQL.

Installition
MySQL conenction
- Replace lines 7 - 10 @ config.php with your MySQL database settings.

Other
- Replace line 13 with your fontname include .ttf @ config.php and line 14 @ config.php with your website url
- Note you can change MySQL variables on lines 12-15 @ signature.php

Download
Non base64 encoded
Base64 encoded

Reply
#2

Nice
Reply
#3

@FireCat

Thanks dude.
Reply
#4

Very impressive, sadly I won't use this as I use SQlite. Unless I'm missing something important that I should know
Reply
#5

@Firzendxiw

I never used SQlite as I heared it is slow but I will try to make a SQlite version aswell, anyway thanks.
Reply
#6

Credits should go here: https://sampforum.blast.hk/showthread.php?tid=301435 or maybe even further into the history of 'dynamic signatures'. I don't understand why people wont add new stuff instead posting the same code in different structures...
Reply
#7

Can you upload more screens somewhere else? I don't see it. Good job & thanks in advance.
Reply
#8

Can you show me the difference?

https://sampforum.blast.hk/showthread.php?tid=301435
Reply
#9

@TheArcher

There you go @ http://imgur.com/J4Arp

@Haters

Yes I can show you the difference

1. Config file,
2. Another way for printing image:
PHP Code:
ob_start();
imagepng($myImage);
printf('<img src="data:image/png;base64,%s"/>'
base64_encode(ob_get_clean()));
imagedestroy($myImage); 
3. Another way of connection to MySQL
4. Another way of geting results from database:
Mine:
PHP Code:
$query="SELECT * FROM users WHERE Username='$player_name' LIMIT 1"
His:
PHP Code:
$query="SELECT * FROM users WHERE Playername='$player_name'"
5. And many stuff which are different
Reply
#10

You just separated the code on that tutorial into different files, included them, claim it's WAY more different then the other. Good job!

-.-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)