> Main > Products and Services > Purchase > Company
English / Russian

CNCat

The application for web-resources catalogue creation

Current Version

CNCat 4.1.2

CNCat 4.0

User manual

© 2002-2008 ‘CN-Software’ Ltd.

http://www.cn-software.com/cncat/

Manual version: 1.0 (2007/12/14)

Table of contents

1 General

CNCat is an application for creation of a catalogue of the Internet resources. It is easy to install, set and maintain and possesses the following set of features:

Only PHP and MySql are required for CNCat functioning. The system supports multy-language interface (the distribution kit contains English and Russian versions).

Note: the given manual describes the principles of working with the catalogue within the bounds of the program interface. Setting of templates and additional fields, database configuration etc. is explained in separate documents; see Useful articles (HOWTO).

2 Installation

To install CNCat one should perform the following actions:

  1. Download CNCat from the official web-site;

  2. Unpack the archive and place the files to any directory of the site (it is possible to install CNCat into a root directory);

  3. Run the installer by defining a path to /install/ folder in the browser address box. For example, http://www.server.com/cncat/install; the installation wizard will appear on the screen:

    1. At the first step one should select the installation language:

Figure 1 Selection of a language

    1. Further the installation wizard will perform checking of the server configuration for conformity with the system requirements:

Figure 2 The results of checking

    1. At the next step the wizard will display a dialog box for setting of the database and the catalogue parameters (certain parameters are set automatically by the wizard):

Figure 3 The parameters settings

One should specify the following parameters:

      • MySql: server, login, password - data required for the MySql server connection. A user should enter his own data or data given by the hosting provider or the database server administrator.

      • Database name (it is possible to choose any).

      • Prefix for CNCat tables – a prefix for naming the tables in CNCat database (default value is ‘cncat4_’).

      • Encoding – encoding for CNCat interface language.

      • Product settings: language, theme – selection of the program GUI language and the design theme.

      • Administration: login name, password – data of the catalogue administrator’s account;

    1. Press Next button: the wizard will create all the required tables in the database. If there is no database, the wizard will try to create it.

    2. Further the installation wizard will display the contents for the configuration file - config.php. One should create the file manually in the CNCat folder and insert this code:

Figure 4 config.php code

    1. Provided that the previous step has been performed correctly, the wizard will display confirmation of successful completion of the installation (otherwise config.php code will be displayed once more). Then one should delete install folder at the server. To start working with a catalogue one should indicate the path to the installed program in the browser, for instance http://http://www.server.com/cncat/), otherwise click on the link at the installation form:

Figure 5 Completion of the installation

2.1 Update

To update a current version one should perform the following succession of actions:

  1. Export the catalogue contents (see Export).

  2. Download the new version archive.

  3. Install the application according to the algorithm described above.

  4. Import the catalogue contents (see Import).

3 Catalogue interface

User interface consists of the following elements:

Figure 6 The main window

Note. The GUI design depends on the selected theme (see Catalogue).

Menu bar (1) is intended for transition to adding link dialog box, the administrative interface (see Administrative interface) and the catalogue map.

Search engine (2) allows finding the required link in the catalogue efficiently.

Filters (3) are intended for sorting out the links list by various parameters (language, geography, resource type etc.). The sorting parameters are set in the administrative interface; its number and variety of values is unlimited. Several values of each filter can be selected for each link (see Filters).

The list of categories (4) includes the number of links contained in every category/subcategory. Each link may be stored in one or more categories. Besides, it is possible to create cross-categories, which are links to existing categories (see Categories).

A standard sorting mechanism (5) allows sorting links by popularity, name etc.

There are the following parameters defined for each link at the entire links list (6):

To view detailed description of a link one should click on the icon :

Figure 7 Full description of the link

To inform the moderator about a link, which does not display its contents, one should click on the icon (see Warnings).

‘New links’ list (7) displays the latest entries.

3.1 Adding a link

There are two algorithms of links addition by the catalogue user:

The advantage of the wizard is in checking of a backward link while adding. To generate a backward link one should know its identifier, which is generated at the first step of the wizard. In one-step mode the identifier generation stage is omitted, therefore backward link checking is possible only after adding the link into the catalogue.

Setting of addition mode and parameters is performed in the administrative module (see Links)

The catalogue administrator, as well as moderators, can add links via administrative interface (see Adding a link).

3.1.1 Wizard

To add a link one should click on Add a link section in the menu bar; the following dialog box will appear on the screen (see Figure 8).

Note: the given example describes a standard set of addition parameters. It may differ, depending on the settings specified at the administrative interface.

At the first step one should specify the site name and address; enter the figure displayed at the picture (protection from automatic addition) and press Next button:

Figure 8 Wizard: step 1

Provided that the previous step has been performed correctly, the wizard will display the next step of the link addition.

Note: All the fields of the form are obligatory. In case one or more fields have been omitted, a warning will appear on the screen with the list of required fields.

At the next step one should select a backward link from the given list and set it at the pages of the site, defining its address at the corresponding field. This step is optional and may be skipped:

Figure 9 Wizard: step 2

At the next step one should specify the following parameters:

Figure 10 Wizard: step 3

To complete the link addition, press Next.

Provided that all data have been entered correctly, the confirmation of successful link creation will be displayed. Further the link will be considered by the administrator and added to the catalogue or declined.

3.1.2 One-step form

One-step adding form comprises all steps of the wizard and contains the same fields:

Figure 11 Adding a link: one-step form

3.2 Search

To perform a search through the catalogue one should enter a certain link parameter in the entry field and press Search button:

Figure 12 Search form

Provided that the request has been defined correctly, the system will display the result of the search:

Figure 13 Search results

3.3 Broken link warning

The catalogue users may warn the administrator and the moderators, that a certain link in the catalogue does not display its contents. To single out these links, one should use the button to the right of the link name; the following warning will be displayed on the screen:

Figure 14 Confirmation request

Press Yes to confirm that the link is broken: it will be placed to ‘Warnings’ section of the administrative interface. Still, it will be displayed in the catalogue as well.

4 Administrative interface

To enter the administrative interface one should click on the “Administration” menu item and enter the administrator’s login and password defined during the installation process, then press Login button:

Figure 15 The administrator’s authorization

In case an incorrect password has been entered, one will be returned to the entry form.

4.1 Links

4.1.1 Principles of links processing

A unique interface is implemented for working with various types of links at the ‘Links’ section (new, submitted, deleted etc.):

Figure 16 Links processing interface

There is a sorting mechanism in the upper part of the page, which allows display links sorted by categories, by dates etc.

Below is the list of links belonging to the given section (new, submitted etc.).

The following parameters are defined for each link:

There are link processing options under each link, which allow the following actions:

To process several links at once one should mark them off them and press the corresponding buttons for group operations at the bottom of the page. To process all links displayed at the current page one should enable the option ‘Mark all the links at the page’, located under the links list.

By default the option ‘With marked links’ is enabled, i.e. group operations will be performed with all marked links. To process all the links, found in this section, one should mark the option ‘With all found links’.

To edit the link parameters one should use “Edit”: option: editing form will be displayed on the screen:

Figure 17 Link editing form

To edit a link, one should enter the required modifications into corresponding fields equal to those of the addition form. Besides, one can set the following additional parameters:

To save changes one should press Save button. To restore initial data press Cancel button.

4.1.2 New links

This section contains links, registered in the system but not submitted in the catalogue. The section interface and options are equal to above-described (see Principles of links processing). Links of this section are not displayed in the catalogue.

4.1.3 Submitted links

This section contains links, submitted by the administrator and added to the catalogue. The section interface and options are equal to above-described (see Principles of links processing).

4.1.4 Deleted links

This section contains links, deleted from the catalogue or from the administrative sections by the administrator. The section interface and options are equal to above-described (see Principles of links processing), except for the option ‘Delete from DB’: the link will be deleted from the catalogue database physically without any possibility to restore it.

Links of this section can be restored by moving them into ‘Submitted’ category (thus, they will be displayed in the catalogue again) or to ‘New’ (without display in the catalogue) with the help of the corresponding buttons.

4.1.5 Drafts

This section contains links, which are being added by the user at the current moment (in case the wizard is used):

Figure 18 A draft

Links of this section can only be deleted without possibility to restore by means of the option ‘Delete from DB’.

4.1.6 Warnings

The section contains links, which have been considered broken by the catalogue visitors (see Broken link warning).

The section interface and options are equal to above-described (see Principles of links processing). Besides, one can remove a link from “Warnings” section by using ‘Cancel the warning’ button: the link will be displayed in the catalogue again.

4.1.7 Search

The section is intended for links searching by various criteria. By setting the required parameters one can generate a list of links equal to the above-described sections.

Search form consists of the following parameters:

Search results may be sorted out (see Principles of links processing).

Figure 19 Search form

4.1.8 Links checking

The section is intended for checking links, which have been marked by the administrator in other sections with the help of the option “To the checking queue” (see Principles of links processing).

To check a link or a group of links one should specify the following parameters at the top of the page:

Figure 20 Links checking parameters

At the bottom of the page is a queue of links waiting to be checked. The list can be sorted by standard parameters (name, popularity etc.).

To cancel checking of a link one should use the option ‘Cancel checking’ (this option is displayed in the menu of a checked link at all sections, to which the link belongs).

To cancel checking of all links found in this section one should use the option ‘Clear the queue’.

To view the results of the last check one should use the option ‘The last report’.

To perform checking one should use ‘Check’ option: checking process will be displayed on the screen.

As the scripts execution time is usually limited at the server and links checking requires certain time period, the page with intermediate results is updated automatically in case the parameter ‘Time limit for each page of intermediate results’ has been exceeded. Besides, the page is refreshed according to the parameter ‘The number of intermediate results at the page while checking’.

Final checking results are displayed in form of a report:

Figure 21 Checking report

The list of checked links can also be sorted by efficiency.

To return to the checking form one should use the option ‘Queue’.

To delete the current report one should use the option ‘Delete the report’.

4.1.9 Duplicated links

The section contains duplicated links (with equal URL), probably, submitted to the catalogue by mistake:

Figure 22 Duplicated links

To view and edit the links details one should click upon their names in the list.

4.1.10 Adding a link

A link addition procedure in the administrative interface is analogous to the above-described for a user (see Adding a link), except for absence of limitations (for example, to maximum number of categories) and additional parameters of a link display in the catalogue. Besides, the administrator can add several links at once (maximum number is 10).

At the first step one should specify the number of added links, categories, filters value (if any) and state (links with the state ‘Submitted’ will be added to the catalogue immediately after filling in the form). These parameters will be set automatically for all added links, but they may be changed at the next step.

Figure 23 Adding a link: step 1

Further one should define standard link parameters (name, address, description etc.), as well as additional parameters:



Figure 24 Adding a link: step 2

To complete the link addition, press Add button.

Provided that all data have been entered correctly, the link will be added to the corresponding section according to the specified state (‘New’ or ‘Submitted’).

4.2 Categories

The section ‘Categories’ management is intended for modification of the catalogue categories.

The section presents itself a table, containing names of the catalogue categories and subcategories, the number of links (in the whole category/in subcategories), paths (used in the catalogue pages URL) and sorting order:

Figure 25 The catalogue categories

To view a category or a subcategory one should click on its name.

One can create, edit and delete categories, subcategories and cross-categories by means of corresponding icons opposite each category name in the table.

To create a category one should click on the icon in a row of the corresponding parent category. ‘Main’ category is a parent for all categories of the first level. One can not add links to ‘Main’ category.

Figure 26 Creation of a category

One should specify the following parameters in the form:

To complete the addition, press Add button.

Provided that all data have been entered correctly, the category will be added to the list.

Note 1: Path to the category is used in ‘user-friendly’ addresses of the catalogue pages (see Links style ).

Note 2: Level of categories nesting is unlimited, provided that ‘Common’ links style is used. Upon using other styles maximum nesting level is limited by maximum URL length (it may vary, depending on a browser and a web-server; it is recommended not to exceed 1000 symbols).

To edit a category/subcategory one should select its name in the table and click on the icon in the corresponding row: editing form will be displayed on the screen:

Figure 27 Category editing

Editing algorithm is equal to addition, except for the following options:

Possibility to add cross-categories has been implemented in CNCat 4.0.

A cross-category is a subject link to a real category. To add a cross-category one should select the category, to which a cross-category should be added, and click on the icon in its row: addition form will be displayed on the screen:

Figure 28 Addition of a cross-category

One should specify the following parameters in this form:

To complete the addition, press Add button.

Provided that all data have been entered correctly, the cross-category will be added to the list.

A cross-category is marked with the symbol @ in the catalogue.

To delete a category/subcategory one should select in the list and click on the icon . One may delete only an empty category/subcategory, which does not contain links. To delete a non-empty category, one should first delete all its elements or move them to other category.

4.3 Filters

The section is intended for creation of filters, which present itself a mechanism of additional subject sorting of links in the catalogue. A number of filters and their values is unlimited:

Figure 29 Filters and their values

To create a filter one should enter its name in a text field below the filters list, define optional/mandatory attribute, sorting order value and press Add button: the filter will be added to the list in the upper table.

Upon a link addition a user should define at least one value for mandatory filters.

Further one should create values for the new filter. To create a value one should select the filter name in the drop-down list at the bottom of the form, enter the value name in a text field, define sorting order and press Add button: the filter value will be added to the list in the lower table.

To edit and delete filters and their values one should click on the icons and correspondingly.

4.4Settings

4.4.1 Catalogue

The section contains the catalogue display settings:

Figure 30 Catalogue settings

Comments to certain parameters:

4.4.2 Links

The section contains settings of links processing:

Figure 31 Links settings: part 1

Figure 32 Links settings: part 2

Comments to certain parameters:

4.4.3 Backward links

The section is intended for creation of backward links, which a user should locate at his site pages upon a link addition. There may be several variants of backward links.

Figure 33 Backward link

To create a backward link, one should use the option ‘Add a new backward link’: addition form will be displayed on the screen:

Figure 34 Addition of a backward link

The following parameters should be set in this form:

The administrator can set one of the following variants for checking of backward link availability:

The following macros can be used in HTML-code of a backward link, as well as in checking settings:

Sorting order of backward links displayed to a user is indicated by a certain number in the field Display order. Sorting is performed by increasing of this value.

To hide a backward link upon a link addition, one should mark the corresponding option. Nevertheless, a backward link will be checked.

To complete the addition, press Add button.

Provided that all data have been entered correctly, the backward link will be added to the list.

4.4.4 Black list

The section is intended for creation of a list of links templates, forbidden for addition by a user:

Figure 35 Black list

To add a template one should select checking method (a substring or a regular expression) and enter the expression into this field in a suitable format:

Figure 36 Template addition form.

Press Add button – the expression will be displayed in the table.

To edit and delete the expressions one should click on the icons and correspondingly.

It is also possible to create the so called “white” list of exceptions: if there is a substring from the white list in the URL of the forbidden link, then this link may be added to the catalogue:

Figure 37 Exceptions (“white” list)

To add an exception, one should enter the expression in a text field and press Add button:

Figure 38 Addition of exception

To edit and delete exceptions one should click on the icons and correspondingly.

4.4.5 Moderators

The section is intended for management of the catalogue moderators.

Figure 39 Moderators list

A moderator manages links in certain categories, which are assigned to him by the administrator. Depending on the settings, a moderator may be also allowed to manage these categories.

To add a moderator, one should use the option “Add a new moderator”: addition form will be displayed on the screen:

Figure 40 Addition of a moderator

The following parameters should be set in this form:

There are two flags near the name of each category. The first one denotes allowing rights to manage this category; the second one – to manage all child categories of this category as well.

To complete addition, press Add button.

Provided that all data have been entered correctly, the moderator will be added to the list.

To edit and delete moderators one should click on the icons and correspondingly.

4.4.6 Counts

The section is intended for resetting of the catalogue statistics counters. To perform it, one should mark the required counters and press Reset button:

Figure 41 Counters reset

4.4.7 Service options

The section contains options for the catalogue service operations:

Figure 42 Service options

Note: the catalogue and “Deleted” section cleanup is performed without any possibility to restore the deleted data.

4.4.8 Import

The section is intended for importing the catalogue data from XML file. As a rule, import procedure is performed before a version update:

Figure 43 Import from CNCat 4.x

One should select the required file for importing from the list of files on the server (if there are any), or specify the file, stored locally at the computer (depending of the chosen place during export procedure).

Note: importing is impossible without preliminary export procedure.

One can import data from previous version of CNCat 2.x, 3.x. To perform it, one should use the option ‘Import from CNCat 2.x, 3.x’:

Figure 44 Import from CNCat 2.x, 3.x

The following parameters should be set in this form:

To perform importing, press Import button.

4.4.9 Export

The section is intended for exporting the catalogue data to XML file. As a rule, export procedure is performed before a version update or for creation of the catalogue backup:

Figure 45 Export parameters

The following parameters should be set in this form:

To perform exporting, press Export button.

Note: unlike CNCat 3.x/2.x, it is impossible to export/import separate elements of the catalogue (only categories or only links) in 4.x version.