Administration - Preferences

### Preferences

This feature is most important when starting a site with NPDS.You can modify all the important information on your site and above all give it the look and feeling you want.
Below is an explanation for important NPDS settings.

##### Parse algorithm

For your site preferences, you can choose either of the Parse functions.

- FixQuotes is the original function that doubles the ['] (ex: art becomes art)
- StripSlashes allows you not to touch the text (eg: art remains art) but can pose other problems.

##### OB_Gzhandler

Allows the use of sending compressed data to browsers that support compressed pages.
Before ob_gzhandler() sends the compressed data, it determines which encoding types are supported by the browser ("gzip", "deflate" or none) and returns the contents of the buffers appropriately.All browsers are processed, because it is up to the browsers to send a header indicating the supported page types.
Only works with active Zlib (do a phpinfo();) and for Apache, mod_gzip activated.

##### FileManager

Enables or removes access to the FileManager.Please note, only activate the FileManager when you need it.

##### Lifespan of admin and user cookies

No comments (1 year = 8760 hours)

##### name of the site

Your site has a name, so enter it here.

##### Site name for Title tag

Title of the HTML pages of your site (especially for search engines)

##### Site URL

http://www.xxx.com or http://www.xxx.xom/~homepage/...

##### Website logo

.gif or .jpg file located in the images directory of your server (by default) or in one of your themes (full path: themes/mon_theme/..../logo.jpg for example).
This file is only used in NPDS printing functions.A good thing is to make an image in black and white.

##### Site slogan

If your site has a tagline, then this is the place to enter it.

##### Site start date

A date (01/20/2016 or January 31, 2016) which will only be visible in the statistics.

##### Number of elements in page top x

Allows you to configure the top x (5, 10, 15, ...).

##### Number of articles on main page

How many articles on one page?
A correct number is 10 but it depends on the activity of your site.Remember that registered members in NPDS can change this value, so this setting is just a default.

##### Number of articles in the old articles box

In the blocks on the right is the one that shows a list of old articles.This is the number you set here.

##### Activate Export News

Export-News are two text files located in the cache directory of your site.By default this parameter = no.
These two files (ultramode.txt and net2zone.txt) contain the 10 latest news from your site.
This file actually allows other sites to form information channels based on simple structures:

- ultramode.txt is a text file where the news is separated by %%
- net2zone.txt is a text file in net2zone XML format.
  The "Online" function carrying out the same operation is Backend which supports the RDF/XML format or better still the NPDS Push Infos System module.

##### Default name of anonymous

Default name for unregistered users .Anonymous is a good value (but also guest, visitor...).
Do not change this value while NPDS is running.

##### Authorize the creation of “news”

Allows you to restrict (or not) the submission of news to moderators/administrators or members.
This function is interesting for an information site.

##### Do not record authors' 'hits' in statistics

Allows you not to count the maintenance of your site, as real visitors.

##### Default site display theme

Select the default theme for your site.Remember that registered users can change this option provided they make multiple themes available.

##### Home Page

This function allows you to configure the start page (home) of your site, by default the page is index.php (the article display system) but you can choose another function:

- links.php
- faqs.php
- static.php?op=npds.txt& npds =1 ... (the value of npds maybe -1: no blocks, 0: left block, 1: left and right blocks)
- Editorial:
  - index.php?op= edito
    display of the editorial and the News system (without the next page link at the bottom of the news)
  - index.php?op= edito-nonews
    display of the editorial without the News system
  - index.php?op= newindex
  - display of the News system without the editorial (with the next page link at the bottom of the news)
  - index.php?op= edito-newindex
    display of the editorial with the news system (with the next page link at the bottom of the news)
  - index.php?op= newtopic&topic=X : display of the News system relating to the subject of id X without the editorial (with the next page link at the bottom of the news)

##### Select site language

No comments.

##### Enable Multi-Language

Allows NPDS to manage multiple languages ​​via the [language]...[/language] tags.
Remember to also configure Local Time (for example: [french]fr_FR[/french][english]en_EN[/english]).

##### Local hour

For a site under Windows, the value must be = french / Otherwise this field depends on the "local" functions normally installed under /usr/share/locale (for Unix).

##### The day begins at and the night begins at

Allows you to set, for example, the change of editorial from a certain time.

##### UTC

Allows you to specify (in + or -) a time difference relative to that of the hosting machine.

#### Banner Options

##### Enable banners on the site

Yes or No do you want to enable advertising banners.This still requires that you have set up a campaign...

##### Your IP address so as not to count the hits that come from it

Be honest, because if you are an administrator of this site, your position (and therefore its IP address) must be excluded so as not to "tinker" with the counters.

#### Footer Posts

##### Line 1,2,3,4

Footer of your site, these areas support HTML codes.If you only need 1 or 2 lines, leave the areas blank (starting from the end).
In general we find copyright information, credits, the name of the host...

#### Configuration of information in Backend

information channels in RDF/XML format

##### Backend Title

No comments.You can put your slogan after the Title.

##### Backend Language

the same format as for the language of the site.

##### Backend image URL

The full path (http://...) allowing access to an image/logo of your site.

##### Backend image width

No comments.

##### Backend image height

No comments.

#### Default configuration of web links

##### Number of links per page

The maximum number of links per page (in the web links function).

##### Sets the number of hits on the link for it to be popular

No comments.Displays a small star to the right of the link when this criterion is met.

##### Number of 'New' links

Defines the maximum number of links in the "New" page.

##### Number of 'Best' links

Defines the maximum number of links in the "Popular" page (the most "clicked" links).

##### Number of links in search results

No comments.

##### Let anonymous users post new links

Yes or no

##### Display the logo on the web page links

Yes or no.The logo taking up space...

##### Enable [New] icon for categories

Displays a small symbol when a category is new or if there are new links.

#### Messaging system (Email)

##### Administrator email address

Used when NPDS sends emails automatically and therefore allows the recipient to respond to you (Valid, authorized email address associated with the sending server. => ex: developpeur@npds.org).

##### What email protocol should I use?

Use or not the SMTP(S) protocol

###### Configuring PHPmailer SMTP(S)

- The name of the sending server
- TCP port that should be used.587 or 465 (rarer and obsolete) if you use SMTPS encryption.For SMTP sometimes ports 25 or 2525
- Authentication: if it is required by your server then enter: user name and password.
- Whether or not to enable encryption of your messages during transfer.And choose the TLS (default) or SSL (obsolete) encryption protocol.Please note that SMTP only encrypts messages during their transfer.

###### DKIM

Use the DNS DKIM record or a DKIM record automatically generated by the portal

##### Mel foot

NPDS sends a certain number of emails (password, etc.) and this option allows you to configure the "foot" (end, signature) of these emails.This area supports HTML codes.A good habit is to remember your contact details, your slogan.

Email new articles to the administrator.NPDS allows you to notify an administrator each time a user posts a new article.

##### Notify new contributions by email

Yes or no.

##### Email address to send the message to

No comments.

##### Email subject

No comments.

##### Email message

No comments.

##### Email Address (From)

No comments.

#### Comment moderation

##### Type of moderation

The moderation system works but don't trust it blindly.

- Moderation by administrator
- User moderation
- No moderation

##### Allow anonymous comments

If you want anonymous (i.e. unregistered) users to be able to post comments, select yes.

##### Maximum number of Comments per user in 24 hours

For anonymous and members, limits the number of comments on articles and polls.6 by default, 99999 at maximum.

#### Survey Options

##### Maximum number of choices for surveys

No comments.

##### Allow users to vote multiple times

Yes or no, it's up to you.If you use yes, this will tell NPDS to allow a user to vote every 24 hours and display a small message in polls.Otherwise, the vote is unique for the entire duration of the survey.

##### Enable poll comments

No comments.

#### Some graphic settings

Do not change this option unless...

##### Topic image path

Normally /images/topics.

##### Path of certain images (vote...)

Normally /images/menu/.

##### Administrator menu image path

Normally images/admin/.

##### Activate images in the administration menu

Yes or no.No will save you time.

##### Enable short menus for administration

Yes or no.yes it will save you time.

#### Miscellaneous

##### Number of articles in administration mode

Without comments (but this value is also used for sections...).

##### Minimum length of user passwords

8 is a good value.

##### Number of “listed” users

In the directory before moving to the next page.

##### Enable avatars

NPDS allows you not to use avatars (small image) for the creation of members, forums, etc.

##### Maximum size of personal avatars (width * height / 60*80) in pixels

NPDS allows you to specify the maximum size of downloadable avatars.

##### Enable short user description

NPDS allows you to not ask a new user to enter their ICQ, MSN addresses, etc.

##### Allow automatic creation of members

NPDS allows you to not authorize a new member to connect without administrator intervention (value: authorize the connection of the user file).Practical for “closed” gates.

##### Allow users to choose their password

You can allow a new user to choose the password they want to use.You can also combine this option with the previous one to avoid leaving your new members alone.

##### Allow subscriptions

Authorize your members to subscribe to the various NPDS information sources (Topics, Forums, internal messages, etc.) and therefore to receive an information email (be careful, this can generate a significant load).

##### Allow invisible members

Allow your members to become 'invisible', they will not be displayed in the different NPDS modules (except for administrators).

##### Close new registrations

NPDS allows you to temporarily close the registration of new members (the static/closed.txt page is displayed).

##### Enable HTTP referrers

No comments.

##### How many referrers maximum

Don't overload your database.

##### Member list: private

NPDS allows you to display the directory only to members.

##### Download section

Choose which section (category) of downloads will be displayed first or none.

##### Short reviews

Turn reviews into a guestbook.

#### Miscellaneous http

##### Enable for major news site headlines, checking for the existence of a web on port 80

NPDS allows you to not request verification of the existence of a web on port 80. Practical for Multimania and other ISPs.

##### Enable advanced cache management tags for generated HTML pages

NPDS allows you to use advanced HTML page cache management functions, some ISPs do not allow it (like Multimania).

##### Enable DNS resolution for Posts (forums, etc.)

NPDS allows you to 'capture' the DNS name at the same time as the IP address.Be careful, this option may consume CPU on the server (or even be prohibited).

#### Miscellaneous systems

##### Maximum size of SaveMysql backup files

Size of ASCII dump files before compression.

##### SaveMysql backup type

Type of desired result when saving.

##### Enable MySQL Logs

Enables the filling of the log file (slogs/mysql.log) with all mysql queries and the detailed error return in case of error. Do not use in production! (No). Only use in case of problem(s) for analysis or debugging.

##### Enable Tiny-Mce editor

NPDS can use Tiny-Mce (IE, Firefox, etc. compatible).

NPDS - Administration Manual