Skip to main content Help Control Panel

Aubagne HipHop

Tout le Hip Hop d'Aubagne et des alentours

Home «   Server software «  

Documentation: articles/view.php

articles/view.php - View one article

The main panel has following elements:

Details about this page are displayed if:

There are several options to display author's information, depending of option set in section. Poster's avatar is displayed if the layout is a forum and if we are not building the page for a mobile device.

If the main description field of the article has been split into pages with the keyword [page], a navigation menu is added at the bottom of the page to move around.

A bar of links to previous, next and index pages is inserted at several places if the layout is a manual. The idea comes from the layout of the MySQL Reference Manual.

The files section is displayed only if some file has already been attached to this page. Else only a command to add a file is displayed in the main menu bar.

The list of comments is based on a specific layout, depending on options set for the anchoring section. For layouts 'daily', 'manual' and 'yabb', a first page of comments is put below the article, and remaining comments are available on secondary pages (see comments/list.php). For other layouts, the first comment is visible at secondary page, and a simple link to it is put here.

The links section is displayed only if some link has already been attached to this page. Else only a command to add a link is displayed in the main menu bar.

At the bottom of the page a set of tools are displayed to export article content:

The extra panel has following elements:

Several HTTP headers, or <meta> attributes of the displayed page, are set dynamically here to help advanced web usage. This includes:

The displayed article is saved into the history of visited pages if the global parameter pages_without_history has not been set to 'Y'.

The permission assessment is based upon following rules applied in the provided orders:

If a secret handle has been provided, and if the surfer has not been authenticated, he is automatically identified as the article creator. This is necessary to authorize the handling of items attached to the anchor, such as comments, file, links or actions.

If the page has been created by a registered user, the anonymous surfer is authenticated as the page author. Else surfer data, such as name and address, is recovered from the article.

Accept following invocations:

If this article, or one of its anchor, specifies a specific skin (option keyword 'skin_xyz'), or a specific variant (option keyword 'variant_xyz'), they are used instead default values.

This script is a reference file of this system.

Voir aussi:

Licence: GNU Lesser General Public License

Auteurs:

Testeurs:

Reste à faire:

Tools
Browse the source of this script
Server software