familypress-dot-net : WordPress plugins and things

familypress-dot-net : WordPress plugins and things

Contactz

Contactz is a very simple address book plugin for WordPress. It stores names, addresses, phone numbers, email addresses, and birthdates in a new table in your WordPress database. It includes a template function with a bunch of options so you can display the stored data as you’d like:

contactz_display($beforeblock, $afterblock, $beforerow, $afterrow, $beforeentry, $afterentry, $sort, $fields)

Here’s what each option does, with the default for each in parentheses:

$beforeblock goes before the block (<table>)
$afterblock goes after the block (</table>)
$beforerow goes before each row (<tr>)
$afterrow goes after each row (</tr>)
$beforeentry goes before each entry (<td>)
$afterentry goes after each entry (</td>)
$sort comma-separated list of sort fields – add a space and DESC for descending sort (lname,fname)
$fields comma-separated list of fields to display (fname,lname,bday)

The default settings display first name, last name, and birthdate in a table, sorted by first name then last name.

Download contactz.zip.

Leave a reply to the post

Please log in if you are a registered user — your comment will appear more promptly.

Comments may require approval before appearing on this page. If you are a registered user, logging in first may help, although comments that contain links may still require approval.