• 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

It won't show the guild for anyone with a group id higher than 2.
 
It won't show the guild for anyone with a group id higher than 2.

Ok ok, but if i edit this line:
PHP:
$bolds = "Name: \nSex: \nLevel: \nProfession: \nResidence: \n" . ( ( $fetchRow['rank_id'] > 0 and $fetchRow['group_id'] < 2 ) ? "Guild: \n" : NULL ) . ( $fetchRow['group_id'] > 1 ? "Position: \n" : NULL ) . "Last Login:";
To this:
PHP:
$bolds = "Name: \nSex: \nLevel: \nProfession: \nResidence: \n" . ( ( $fetchRow['rank_id'] > 0 ) ? "Guild: \n" : NULL ) . ( $fetchRow['group_id'] > 1 ? "Position: \n" : NULL ) . "Last Login:";

Effect:
url]

ImageShack - Image Hosting :: signaturee.png
 
You should use the first line, not the second one.
 
Did you modify your database connection?
 
Ok. I try add options Premium Account:

PHP:
$premium = $this -> fetchArray ( $this -> query ( "SELECT `premdays` FROM `accounts` WHERE `id` = '{$fetchRow[accounts_id]}'"));

$arrays['premium']  = ( $fetchRow['premdays'] > 0 ? 'Free Account' : 'Premium Account' );
And don't works. Any help ?
 
I'll release V4 with premium/free account status in it. Will be today, so if you can hold on a while you'll get it. ; )
 
You can copy your configuration over to the new version later on ; )
 
<?PHP

class signature
{

# v-- CONFIGURATION BELOW --v #
var $config = array
(
'database' => array ( "localhost" , "root" , "xxxxxxx" , "xxxxxxxx" ),
'vocations' => array ( "No Vocation" , "Sorcerer" , "Druid" , "Paladin" , "Knight" , "Super Sorcerer" , "Super Druid" , "Super Paladin" , "Super Knight" , "Master Sorcerer" , "Elder Druid" , "Royal Paladin" , "Elite Knight" , "Super Master Sorcerer" , "Super Elder Druid" , "Super Royal Paladin" , "Super Elite Knight" ),
'towns' => array ( 1 => "Brighty City" ),
'groups' => array ( 2 => "Tutor" , 3 => "Senior Tutor" , 4 => "Gamemaster" , 5 => "Community Manager" , 6 => "God" ),
'hidechars' => array ( 'Account Manager' , 'Rook Sample' , 'Sorcerer Sample' , 'Druid Sample' , 'Paladin Sample' , 'Knight Sample' ),
'backgrounds' => array ( 'signatures/blue' , 'signatures/red' ),
'color' => "#FFFFFF",
'font' => "signatures/arial.ttf",
'size' => array ( 2 /* without font */ , 8 /* with font */ )
);
# ^-- CONFIGURATION ABOVE --^ #
 
Version 4 has been released, check the main post.

@Maxwel1: In the configuration, there is a new line, so make sure you keep that one while exchanging the new versus your old configuration.
 
Thanks for the new release man but same problem nothing appear all white screen the 2nd release was working but the 3rd and 4rth don work :(
 
That is because I removed the form for it. I explained how to visit the signatures at the main post.
 
You mean by searching in character search then copy the links but u removed the one b4 by accessing to the signature.php directly?
 
Back
Top