• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[PHP] Character Signature - v4

@up

I have the same problem can someone answear?

why does it says character does note exist. And yes i've set my database connection.


Bump i got the same error with the correct DB info.

Also your download link doesnt work~
 
Aff can't edit. Also I can't make it work. I have set everything, and it still says "Character with that name does not exist" ._.
 

This is a god damn good
Idea
Script
Done

What more can you say, this is awesome. Thank you very much for it.
 
What is it?
It is a PHP script which creates an illusion of an actual image, which may be used as forum signatures etc.

What does it do?

It allows you to see certain information about a specific player in a PHP GD image.

What information does it show?
It shows the name , free/premium account , online/offline status , level , profession , residence , guild (if any) , position (if any) and last login of a specific player.

How do I use it?
If you use unnamed-acc-maker by Gesior.pl, follow this small tutorial.
Open characters.php and find this row (approximately at line 155~):
PHP:
$main_content .= '</TD></TR></TABLE>';
Below that, add these lines:
PHP:
// Signature by makr0mango.
function randomSignature( $folder ) {
    $files = scandir ( "./$folder/" );
    $signature = array();
    
    foreach ( $files as $file ):
        if ( substr ( strtolower ( $file ) , -4 ) == ".png" )
            $signature[] = $file;
    endforeach;
    
    return rand(0,count($signature)-1);
}
$random = randomSignature("signatures");
$main_content .= '<br><TABLE BORDER=0><TR><TD></TD></TR></TABLE><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=2 CLASS=white><B>Signature</B></TD></TR>';
$main_content .= "<TR BGCOLOR=".$config['site']['darkborder']."><TD WIDTH=20%>Forum Link:</TD><TD><input type='text' size='100' onclick='this.select();' value='[url=\"" . $_SERVER['HTTP_HOST'] . "\"][IMG]" . $_SERVER['HTTP_HOST'] . "/signature.php?character=" . $name . "&image=" . $random . "[/IMG][/url]' /></TD></TR>";
$main_content .= "<TR BGCOLOR=".$config['site']['lightborder']."><TD WIDTH=20%>Direct Link:</TD><TD><input type='text' size='100' onclick='this.select();' value='" . $_SERVER['HTTP_HOST'] . "/signature.php?character=" . $name . "&image=" . $random . "' /></TD></TR>";
$main_content .= "<TR BGCOLOR=".$config['site']['darkborder']."><TD COLSPAN='2' style='text-align: center;'><img src='signature.php?character=" . $name . "&image=" . $random . "' /></TD></TR>";
$main_content .= '</TD></TR></TABLE>';
// Signature by makr0mango.
If you however do not use unnamed-acc-maker by Gesior.pl you can easily access your images by adding /signatures.php?character=YOURCHARACTER&image=0 to the URL bar (when accessing the signatures.php file obviously).


Files included in download:

  • signatures.php
  • signatures/blue.png
  • signatures/green.png
  • signatures/red.png
  • signatures/arial.ttf
  • signatures/signatures.psd

Download Link:
http://www.madphp.org/PHP-Character-Signature-makr0mango.rar



rehost link
 
Link Broken

If you, or anybody could please rehost it, it'd be very much appreciated!

Red
 
Back
Top