Creating Mod Files
By Paul
By Paul
In WSN Links versions 4.0.0+, WSN Gallery 3.0.0+, WSN KB 2.0.0+ and WSN Forum 2.0.0+ you can create XML files which instruct the script to apply a series of modifications. At Admin Panel -> Customizations -> Modifications, click the 'create new mod file' option.
There are several types of modifications you can request:
file replacement - Replace text with other text in a file. Use this to add new PHP code. The filename is relative to the base directory of WSN Links.
template change - Replace text with other text in a template. Use this to add new template code. The filename is relative to the template set.
template addition - Creates a new template with the specified content.
query - Run an SQL query. Since people use different tables prefixes, be sure to use {PREFIX} in place of wsnlinks_ in the table name. Note that you can do more than one query at a time if you wish.
add language - Add a language item.
Mod files are useful for keeping track of changes you make so that you can easily re-apply them to another installation or a new version. They also make it easy for you to share your changes with other people if you wish to.
There are several types of modifications you can request:
file replacement - Replace text with other text in a file. Use this to add new PHP code. The filename is relative to the base directory of WSN Links.
template change - Replace text with other text in a template. Use this to add new template code. The filename is relative to the template set.
template addition - Creates a new template with the specified content.
query - Run an SQL query. Since people use different tables prefixes, be sure to use {PREFIX} in place of wsnlinks_ in the table name. Note that you can do more than one query at a time if you wish.
add language - Add a language item.
Mod files are useful for keeping track of changes you make so that you can easily re-apply them to another installation or a new version. They also make it easy for you to share your changes with other people if you wish to.
Rating:




3/5 based on 1 vote. The median rating is 3.
Rate this article:
Submitted: 07/02/06 (Edited 09/01/06)
Description: Using the WSN Links XML format specification to automatically apply modifications.
Views:
851 views. Averaging 1 per day.
In the most recent 30 day period, there've been 14 views.

Print
E-Mail