well, as far as i know if you want a dynamic signature you need to generate it with some serverside code.
i did something similar where on every refresh your sig would change randomly (picked in a set of images)
in short you need to write a server side script(php / java / javascript / ruby / python ...) that will :
1. retrieve your ladder slasher data
* no idea how to do this and lazy to search but if u pay / donate good i can prolly find out 2. generate an image with your data
3. output your new generated image to the client (the web browser)
a basic example in PHP would look like this ( i skipped part 1 cause lazy to search how to do
)
* for this example to work you will need a font file in the same directory as the script that generate the image
in my example i used 'ARIAL' font from https://www.wfonts.com/font/arialCode
<?php
// set header so browser know we send a png image
header('Content-type: image/png');
// set PHPGD font path to the current working directory
putenv('GDFONTPATH=' . realpath('.'));
/*
here you're supposed to write the code to gather data about your ladder slasher char(s).
I used '$char' variable fake data below as static example
*/
$char = [
'name' => 'Suika',
'category' => 'paladin',
'level' => '65',
'experience' => 64788118
];
// jsp rule max signature width = 400px
$sig_width = 400;
// jsp rule max signature height = 150px
$sig_height = 150;
$font = "ARIALI.ttf";
// create the image, '@' make errors silent on the function call so it go smooth in case of error
$im = @imagecreatetruecolor($sig_width, $sig_height)
or die('Impossible de créer un flux d\'image GD');
// setting text color to white (rgb style: 255 255 255)
$text_color = imagecolorallocate($im, 255, 255, 255);
// http://php.net/manual/fr/function.imagettftext.php
imagettftext($im, 20, 0, 10, 25, $text_color, $font, "Ladder Slasher stats");
$y = 50;
foreach ($char as $key => $value) {
imagettftext($im, 10, 0, 10, $y, $text_color, $font, $key . ':' . $value);
$y += 25;
}
imagepng($im);
imagedestroy($im);
?>
of course, you will need to host the script and the font file on a web hosting so its available on internet.
Ultimately, you can use the URL of that script to generate an image in your sig with the usual img bbcode tag
Code
[IMG]http://your_host.com/your_script.php[/IMG]
i spent ~ 1hr on this, feel free to donate fg's This post was edited by minuteMed95 on Nov 23 2018 02:41pm