SwiftTec: Club Membership System

Printing Membership Cards
(Only available when licensed or in demo mode)

The SwiftTec Club Membership System allows you to print credit card sized membership cards on a standard piece of paper. These can then be cut and laminated for handing out to club members.

Each membership card contains the name of the member, their expiry date a barcode that can be used by scanner to log them in and out of the club site, and their photo.

On selecting the Membership Cards action from the menu, toolbar or start page you will be presented with a member list:

The left hand list is very similar to the standard member selection box and the right hand list contains all members whose membership cards are to be printed. Members can be moved from one list to the other by either double clicking the member or by selecting one or mode members and pressing the or button to move the member in the required direction.

On pressing the OK button you will be presented with a new page with the membership cards shown ready for printing. If the list needs to be modified before printing then select Edit Member List from the Action menu or press the F9 key.

 

Customizing Membership Cards

The appearance of membership cards can be altered by changing various parameters, including the background image, the logo and the text styles. When the club membership program is first run it creates a cards folder in the selected data folder and creates 3 files in it called card.ini, background.jpg and logo.gif. By changing these files you can change the appearance of the membership cards.

Note: As of version v1.5.0 of the membership system the appearance is controlled entirely by the cards.ini file. The program converts previous versions to the new format.

 

The Main Control Section [card]

The card.ini contains a number of sections which control the appearance of the membership card. The main section is called card and appears as follows:

 


[card]
width=85		# The width in mm of the membership card
height=55		# The width in mm of the membership card
image=background.jpg	# The background image
border=1		# If non-zero displays a border around the card
bgcolor=white		# The background colour
sections=header,footer,photo,logo,info,barcode,barcodetext

The sections parameter specifies which other sections in the file to interrogate for further drawing components.

 

Additional Sections

The additional sections are referenced from the sections parameter in the card section of the card.ini file. Each section can take a number of parameter taken from the following table:

Parameter Meaning
width The width in mm of the item
height The height in mm of the item
xpos The X offset of the item in mm from the top-left corner of the card
ypos The Y offset of the item in mm from the top-left corner of the card
fgcolor The foreground colour of the item. Can be a colour name like red or a number in the for #rrggbb where rr, gg and bb are the red, green and blue components of the colour as a pair of hexadecimal digits (00-FF).
bgcolor The background colour of the item. Can be a colour name like red or a number in the for #rrggbb where rr, gg and bb are the red, green and blue components of the colour as a pair of hexadecimal digits (00-FF).
bdcolor The border colour of the item. Can be a colour name like red or a number in the for #rrggbb where rr, gg and bb are the red, green and blue components of the colour as a pair of hexadecimal digits (00-FF).
image The filename of the image to display. The filename can be an absolute filename (e.g. c:\windows\picture.jpg) or a relative filename (e.g. logo.gif). If a relative filename is used the filename is searched for relative to the card.ini file.

If ${PHOTO} is specified as a filename this corresponds to the member's photo.

text The text to display. The text is displayed in the foreground colour using parameters such as halign, valign, bold, italic to further control the appearance. Certain strings have special meanings:

${EXPIRES} - displays the text "Expires: dd mm yyyy" if the member has an expiry date, or nothing otherwise.

${XXX} - displays a field from the member's data record. For XXX use:

id The member ID
id:n The member ID padded to n characters with zeros.

Specifying ${id:6} for member ID 1635 will result in 001635 being output.

fullname The member's fullname
name The members first name
surname The members surname
birthday The member's date of birth

\n - Adds a new line to the output text

halign The horizontal alignment (0=left, 1=centre, 2=right)
valign The vertical alignment (0=top, 1=centre, 2=bottom)
bold Use a bold font for text - text only
italic Use an italic font for text - text only
font The font name - text only
size The font point size - text only
angle The display angle in degrees - text only

Note: this is currently restricted to 0, 90, 180, 270 and multi-line strings only function correctly at the default angle of 0

proportional The image is displayed in it's original proportions. If not specified the image is stretched to fit the item.
barcode If specified as a non-zero value the text component is displayed as a barcode.

 

Changing The Background image and the Logo

The background image and logo can be modified by changing the image parameter of the appropriate section of the card.ini file in the cards folder.

Removing the background file will produce a white background

Removing the logo file will cause nothing to be drawn in that space, it will not create a white box!

Image files can be JPG, GIF or BMP files.

Choosing Card Designs Based on Member Type

As we have already stated the membership program will select backgrounds and logos for the membership cards from the Cards folder which is normally located as a sub-folder of the main data directory. When creating a membership card the program will first look for a file in the MemberType folder before looking in the main Cards folder. So if you have 2 member types (Standard and Staff) you can create two sub-folders in the Cards folder called Standard and Staff. If Joe Bloggs has the member type Staff the program will first look in the Cards\Staff folder for the card.ini, background and image files and if they are not found it will look in the Cards folder.