[Tool/Web/Other] Dynamic Server Signature Generator - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Tools and Files (
https://sampforum.blast.hk/forumdisplay.php?fid=82)
+---- Thread: [Tool/Web/Other] Dynamic Server Signature Generator (
/showthread.php?tid=628991)
Dynamic Server Signature Generator -
X337 - 18.02.2017
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.
Re: Dynamic Server Signature Generator -
Sumit4 - 18.02.2017
Wow Nice GG
Re: Dynamic Server Signature Generator -
RyderX - 18.02.2017
COOL! THANKS DUDE!
Respuesta: Dynamic Server Signature Generator -
Whyd - 18.02.2017
Very nice
Re: Dynamic Server Signature Generator -
Roozevelt - 18.02.2017
Nice one again x337
Re: Dynamic Server Signature Generator - iLearner - 18.02.2017
+rep
Re: Dynamic Server Signature Generator - Jelly23 - 18.02.2017
Really nice.
+rep
Re: Dynamic Server Signature Generator -
StrikerZ - 18.02.2017
Cool
Re: Dynamic Server Signature Generator -
BroZeus - 18.02.2017
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.
Re: Dynamic Server Signature Generator -
X337 - 18.02.2017
Thank you guys
Quote:
Originally Posted by BroZeus
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
Re: Dynamic Server Signature Generator -
LemonZays - 24.03.2017
Very Nice
Re: Dynamic Server Signature Generator -
JessThompson - 08.05.2017
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
Re: Dynamic Server Signature Generator -
Barnwell - 08.08.2017
Good job +REP!!
Re: Dynamic Server Signature Generator -
JorryDagle - 28.09.2017
how to change the Back Ground Logo?
Re: Dynamic Server Signature Generator -
JeaSon - 29.10.2017
please share source code if anyone has it