Home
Documentation
Members Area
Support Forum
License Agreement
Products
MojoProtector MySQL Documentation
Using Templates

mojoProtector displays dynamic CGI generated Web pages, as opposed to static HTML pages. In mojoProtector, dynamic is synonymous with real-time. Instead of having you modify the HTML code within the Perl script, we have moved all of the HTML specific code out of the program, and into several readily modifiable templates.

How mojoProtector Deals with Templates

mojoProtector's templates are standard HTML documents with unique mojoTags, such as [VARIABLE_NAME] wherein VARIABLE_NAME is the variable which defines that tag. Note that there is an opening square bracket ([) and a closing square braket (]), embed the tag name inside them. These tags are replaced by the content mojoProtector generates and should not be modified. You can, however, move them around, or strip them out completely.

To display the tag values, you would use [VARIABLE_NAME]. However, if you want to collect value for that variable, then you would use [IP_VARIABLE_NAME] where IP stands for InPut.

You may edit the templates offline using any text or HTML (WYSIWYG) editor such as Notepad, EditPlus, Dreamweaver, or Coldfusion. Just be sure that the editor you are using does not change the [ and ] tags contained in the templates.

You can also edit the templates online at real time. Just log into your admin and click on "templates" link.

Email templates

Email templates are used when the program automatically sends out message to your members to their mailbox. Message can be a welcome message for registration, a lost account information, or a reminder that their account is almost expired.

You can personalize your email to your taste with the mojoTags as described in here. You can use all "URL tags", "MEMBERS Tags", and "EMAIL tags" in your emails.

Email template name Purpose
- admin.txt Used to send information about a new membership to you, the administrator.
- approved.txt Used to send out information to members once their account is manually approved/aded by administrators.
- deleted.txt Used to send out information to members once their account is deleted, either by members themselves or by administrators.
- denied.txt Used to send out information to members once their account is manually denied by administrators.
- expired.txt Used to send out information to members once their account is manually expired by administrators or by cron.cgi.
- lost.txt Used to send out information to members about their account information such as username and password as they request in the lost password page.
- pending.txt* non-Paysite: If you choose "sendmail" as the activation method, then you should have included the [VALIDATE_URL] to have them click on to validate their account
- registered.txt Used to send out information when member registered.
- remind.txt Paysite: If member account is almost expired and you do not charge recurring cycle, then this email will be used to let them know that their account is about to expire. You should have neccessary information to have them extend their account.
- suspended.txt Used to send out information to members once their account is manually suspended by administrator or by the cron.cgi
- unsuspended.txt Used to send out information to members once their account is manually unsuspended by administrators.
- unexpired.txt Used to send out information to members once their account is manually unexpired by administrators.
- updated.txt Used to send out information to members once their account is updated (by themselves).
- validated.txt* non-paysite: used to send out information to members once their account is validated (after they have clicked on the links that send to them)
   
Email Subjects
Email subjects are used the same way as in email templates, so used them wisely. Now you sit and remind of how many programs would let you personlize even the email subjects???
HTML templates

HTML templates are used to display dynamic HTML pages to the screen. As in email templates where information is displayed, HTML templates are also used to collect information for storing....

The following templates can used the "URL Tags", "MEMBER Tags", and "MISC Tags". To collect information as in registering and updating, you have to add IP_ in front of the variable name. For example, if you want to collect where user lives, you will used [IP_ADDRESS] but not [ADDRESS]

HTML Template name Purpose
member_delete.html Used when user requested to delete their account.
member_login.html Used when user wants to login.
member_lost.html Used when user wants to retrieve their password.
member_panel.html Used when they login to their control panel. You can put anything here.
member_profile.html This is the member profile page. Shows their information
member_register.html This the the page where they will register by filling out required information
member_update.html This is the page where they can update their information

The following are specialized template that only contains some Tags of its own.

HTML Template name Purpose
error.html

Used to display error messages.
mojoTags:

  1. [TITLE]: the title of the message
  2. [MESSAGE]: the error message
gXXXXXXxxx.hmf*

This template should be edited and uploaded to ibill server, if you use ibill pincoding services.
mojoTags:

  1. %%REF1?: member username
  2. %%REF2?: member password
  3. %%CODE?: generated pincode
  4. %%TRAN?: Transaction number
  5. %%REBILL?: Subscription ID number

You need to check with iBill setup for complete instructions.

login_failed.html

Used when user failed to login via the pop-up window.
This template can used all "URL tags" as well as the following:

  • [IP_ADDRESS]: IP address
  • [USERNAME]: Attempted username
  • [USER_AGENT]: browser type
  • [TIME_OCCUR]: Time of problem
  • [REFERER]: where member was before come to this page

 

payment.html

this is the page where members will be prompted for a way to pay. However, if you select a default payment method then this page will not be displayed.
This templates can used all "URL tags", "Member Tags", as well as the following:

  1. [CREDITCARD_LINKS]: Display alternative credit card payment processors
  2. [WEB900_LINKS]: Display alternative telephone payments.
  3. [CHECK_LINKS]: Display alternative check payments.
payment_extend.html* NON-RECURRING: Used to let member select a way to pay to extend their account.
Same as in payment.html
payment_failure.html* iBILL: This is the page where members fake a purchase or provide incorrect information from iBill webgood page. Their IP address as well as some useful infomation will be logged to track who and where they are.
Can used all "URL tags" as well as [MESSAGE] tag.
web900.html*

iBILL WEB900: Used to let member enter information after a telephone charge.
Can used "URL tags", "Member Tags", and "Misc Tags"

 

 
All contents © 2001-2002 mojoscripts.com unless otherwise posted
for contact information, please email us at webmaster@mojoscripts.com