This is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. So if it blows up your server it's not my fault
These signatures/avatars can be used for web forums, they will show a character's level, membership, rank, trade skill levels, and other such information.

The information in these signature graphics will be as up to date as the information in roster.
This is very configurable, everything can be moved fairly easily, text colors can be changed, almost everything can be displayed/hidden

To configure, open /roster/index.php?rostercp-addon-siggen (SEO: roster/rostercp/addon/siggen.html) in a web-browser

For members that haven't uploaded info, this will show limited information on a default background

Ideas on showing debug/error infoGetting the full path for fonts, directoriesShadow fontsSaving images to a directory on the server

BlackCat83

For the original "avatar.php" using my code from "sig.php"

Jessy

For making "av.php" just plug into "sig.php" - Very nice

Matt Miller

Code from UniAdmin. Without it I couldn't of made the config page

Ahrtvuailla

For help with re-designing the sigconfig page, and a way to delete uploaded images

Suirion

For the great race-gender-class images, thanks!

nekromant

esES localization

Harut

frFR localization

ulminia

Talent Spec Code

To everyone else that I haven't mentioned
And all those that have tested the previous versions; sig1.5 : sig2.0 : sig2.0-gamma : etc...

Requirements

WoWRoster.net Roster v2.0.0 or higher
PHP 4.3.2 or better
GD2 with PNG and Freetype Support

Advanced functions in SigGen Config may not work if safe_mode is turned on in your PHP config fileSigGen absolutely requires that your PHP installation supports the GD2 library, and that GD2 has PNG Support and FreeType Support turned onRosterDiag MUST SAYFreeType Support: yes for you to use SigGen

FreeType Linkage: with freetype is best although with TTF may work ok

If you have trouble with the signature generator, first check RosterDiag for information about how the GD2 library is configured (or not available) on your web server

If you DO NOT want SigGen, or if you cannot get GD2 to work on your server, you can un-install SigGen via RosterCP -> Addon Management, then delete the folder from the addons directory /addons/siggen/ and that will remove all traces of SigGen

Use this only if you are comfortable with editing the database manually as you may have to do so

SigGen Settings

Important Note
Alot of the settings on the SigConfig page have tooltips breifly describing what each function does
It's a VERY good idea to click Save Settings after you are done on each page, but it is not required
Note: Some settings will automatically "click" the Save Settings button

Advanced SigGen Options

The fine art of text placement

There are many options for adjusting the placement of the text within the image
Here is a guide on how SigGen calculates where to draw the text

When "Left" alignment is selected, text is drawn from the starting point, going right

When "Center" alignment is selected, text is drawn equally from that point on both sides

When "Right" alignemnt is selected, text is drawn from the starting point, going left

Alignment

Horiz point

Width of text

Starts drawing

Ends drawing

Left

200

50

200

250

0

30

0

30

395

10

395

405

Center

200

50

175

225

0

30

-15

15

350

10

345

355

Right

200

50

150

200

0

30

-30

0

350

10

340

350

Import / Export Settings

New in SigGen 0.2.0, you can export and import your SigGen settings for backup or sharing with others

Export

When exporting, SigGen will only export that config mode
So if you are in Signature config mode, hitting Export will save the config settings for Signatures
The file saved will be siggen_signature.txt

Import

When importing, SigGen will only accept text files name like this

siggen_configname.txt

Where configname is the name of the config mode you are currently in

SigGen will also deny importing of older and newer setting files
So if you saved from SigGen 0.2.0 (which is DBver 1.2) you cannot upload to a newer version if the DBver has changed

For example, if you have SigGen 0.2.5 and the db version changed to 1.3, then you could not load settings from a DBver lower than 1.3
Consequently, you could not import data saved from SigGen with DBver 1.3 to SigGen with DBver 1.2

Image Packs

New for SigGen 0.2.0, you can now use image packs
Image packs have a limited "themeing" ability in that you can specify code to handle how images are selected

Image packs are structured like so

img/

background/

pack1/

(image files)

pack2/

(image files)

character/

pack1/

char.inc

(image files)

pack2/

char.inc

(image files)

class/

pack1/

ext.inc

(image files)

pack2/

ext.inc

(image files)

pvp/

pack1/

ext.inc

(image files)

pack2/

ext.inc

(image files)

frame

(image files)

level

(image files)

Background image packs do not have a config file, there is no need for one since the Web config is already there

Class and PvP image packs have a file called ext.inc
In this file, you specify the image extension tha will be used, either .png, .gif, or .jpg/.jpeg

Character image packs have a file called char.inc
Now this is where is gets interesting
(Some future version of SigGen will have a web config for this part, but not right now)

The char.inc file allows you to make an if statement to tell siggen.php how to pick a character image

If you do not include this file with a pack, then the default code will pick an image like this
if character has race and gender, get race-gender.png