[Tool/Web/Other] Dynamic Server Signature Generator
#1

Hei guys, today i make a simple tool that may help some server owners that don't have knowledge about php to make and customize their own dynamic server signature.

Link: http://x337.us/sg/index.html

How to use?
  • First, you have to open the website in order to make a signature.
  • You will see a form to upload background image for your signature.
  • After it's uploaded, you can customize your server signature. You can press "New Text" button to add a text, or "New Data" button to add data from database or .ini file into your signature. You can press "Delete" in your keyboard to remove text/data.
    Example picture:
  • Then, click "Download Code" button to download source code of your signature if you're done customizing your signature.
  • After you have downloaded signature.zip, extract it and open signature.php
  • Edit the configuration to match with your MySQL credentials or .ini files path.
    PHP Code:
    $config = array(
        
    'mode' => ''// MySQL / ini
        /*
            MySQL
        */
        
    'database' => array(
            
    // Edit it if you are using mysql
            
    'host' => 'localhost'// mysql host
            
    'dbname' => ''// database name
            
    'user' => ''// mysql user
            
    'password' => ''// mysql password
            
    'port' => 3306 // port (Default: 3306)
        
    ),
        
    // Table where you save players' accounts
        // Edit it if you are using mysql
        
    'account_table' => '',
        
    // Name of the column that hold player's username
        // Edit it if you are using mysql
        
    'username_column' => '',
        
    /*
            INI
        */
        
    'ini' => array(
            
    /* 
                Edit it if you are using ini
                Path where players' .ini files located.
                No trailing slash.
                Example:
                Linux - /home/samp/samp03/scriptfiles/Accounts
                Windows - C:\\samp-server\\scriptfiles\\Accounts
            */
            
    'path' => ''
        
    ),
        
    'background_image' => 'background.png',
        
    // Type of the image (png/jpeg/gif)
        
    'output_type' => 'png'
    ); 
  • Put all files (incl. fonts and background image) into your localhost web directory or upload them into your webhost.
  • Done
You can view a player's signature by entering player username in "username" GET parameter.
Example:


Source Code:
Download here

If anyone got a problem with this tool or signature code, you can PM me or post your problem here.
Reply
#2

Wow Nice GG
Reply
#3

COOL! THANKS DUDE!
Reply
#4

Very nice
Reply
#5

Nice one again x337
Reply
#6

+rep
Reply
#7

Really nice.

+rep
Reply
#8

Cool
Reply
#9

Nice!
I made something similar for a server but with a lot more features. I am providing its source since you can use it. Here's how it worked
Starting :
https://i.gyazo.com/3601efba28db82db...8c52abdc4c.mp4

and editing text :


Source : https://github.com/xxxZeus/Custom-Si...t-s-Life-SA-MP

Oh and it only worked for firefox last time i checked it. You will need to edit javascript side to make it work for chrome, i was lazy back then so I was happy for it to be working in firefox only.

Since I am really busy with other stuff so you can look at source to see how I did all those things and use it in your project.
Reply
#10

Thank you guys

Quote:
Originally Posted by BroZeus
View Post
Nice!
I made something similar for a server but with a lot more features. I am providing its source since you can use it. Here's how it worked
Starting :
https://i.gyazo.com/3601efba28db82db...8c52abdc4c.mp4

and editing text :

Source : https://github.com/xxxZeus/Custom-Si...t-s-Life-SA-MP

Oh and it only worked for firefox last time i checked it. You will need to edit javascript side to make it work for chrome, i was lazy back then so I was happy for it to be working in firefox only.

Since I am really busy with other stuff so you can look at source to see how I did all those things and use it in your project.
I may check the source soon to improve this tool, it seems cool. Thank you so much
Reply
#11

Very Nice
Reply
#12

Cool, do you not need to escape the username to stop injections? I suppose the preg match would work but would escaping it as well not be a better security measure? Good work tho X337
Reply
#13

Good job +REP!!
Reply
#14

how to change the Back Ground Logo?
Reply
#15

please share source code if anyone has it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)