Full article

<< Click to Display Table of Contents >>

Navigation:  Templates >

Full article

Displaying of the full article can be configured in fullstory.tpl. You can use the following tags:

 

{title}

Article title.

{title limit="x"}

Article title limited by X number of symbols.

{full-story}

Full article.

{short-story}

Article annotation.

{full-story limit="x"}

Displays the full article text without HTML formatting limited by X number of symbols.

{author}

Author of the article.

{date}

Publication date.

{pages}

Article pages navigation.

[pages] text [/pages]

Displays the enclosed text if the article consists of few pages using {PАGEBREAK} tag, and removes the text from it if it consists of one page.

{link-category}

Link to all the categories where the article belongs to.

{rating}

Displays the article rating.

[rating] text [/rating]

Displays the enclosed text if article rating is enabled and hides the contents if it was disabled when adding the article.

[rating-type-1] text [/rating-type-1]

Displays the enclosed text if the first 'Rating' type was enabled in script settings.

[rating-type-2] text [/rating-type-2]

Displays the enclosed text if the second rating type 'Likes only' was enabled in script settings.

[rating-type-3] text [/rating-type-3]

Displays the enclosed text if the third rating type 'Like' or 'Dislike' was enabled in script settings.

[rating-type-4] text [/rating-type-4]

Displays the enclosed text if the fourth rating type 'Like' and 'Dislike' was enabled in script settings.

[rating-minus] text [/rating-minus]

Displays the enclosed text as a link to dislike the article. This link is displayed if the third rating type is used.

[rating-plus] text [/rating-plus]

Displays the enclosed text as a link to like the article. This link is displayed if the third rating type is used.

{likes}

Display number of likes

{dislikes}

Display number of dislikes

{vote-num}

Displays the number of users who rated this article.

{comments-num}

Displays the number of comments for this article.

{category}

Article category.

{category-url}

Displays the full URL of the category where the article belongs to. This tag displays only the URL in its pure form, without any formatting or a ready reference.

{category-icon}

Link to the category icon.

{views}

Number of views of the article.

{favorites}

Link to add or remove from Favorites.

[add-favorites] text [/add-favorites]

Link to add the article to Favorites list on the website.

[del-favorites] text [/del-favorites]

Link to remove the article from Favorites list on the website.

[edit] text [/edit]

Link to edit the article.

[print-link] and [/print-link]

Link to the printable version.

[com-link] and [/com-link]

Link to comments to this article. Displayed if comments are allowed.

[xfvalue_x]

Value of extra field "x", where "x" is the name of the extra field.

[xfvalue_X limit="X2"]

Displays the article annotation text without HTML formatting limited by X2 number of symbols. Text is limited to the last logical word. For example, [xfvalue_test limit="50"] shows the first 50 symbols of the extra field value named test.

[xfgiven_x] [xfvalue_x] [/xfgiven_x]

Displays the extra field "x" if it is not empty.

[xfnotgiven_X] [/xfnotgiven_X]

Displays the enclosed text if extra field has not been set when publishing the article, where "х" is the name of the extra field.

[ifxfvalue tagname="tagvalue"] Text [/ifxfvalue]

Displays the enclosed text if the extra field value matches the specified value, where tagmane is a name of the extra field, and tagvalue is its value.

[ifxfvalue tagname!="tagvalue"] Text [/ifxfvalue]

Text between them will be displayed if the extra field value does not match the specified value, where tagmane is a name of the extra field, and tagvalue is its value.

[xfvalue_thumb_url_X]

This tag can be used only if extra field has type "Image". The tag displays only the URL for the thumbnails of the uploaded image, where "х" is the name of the extra field.

[xfvalue_image_url_X]

This tag can be used only if extra field has type "Image". The tag displays only the URL for the full size image of the uploaded image, where "х" is the name of the extra field.

[xfvalue_X image="Nr"]

Display the uploaded images separately for extra fields of "Image Gallery" type, where "X" is the name of the extra field, and "Nr" is the number of image from the gallery. For example, if you apply [xfvalue_test image="2"], then image number two will be displayed that loaded into an additional field named "test".

[group=X]text[/group]

Displays the text to a specific user group. Where X is a list of user group IDs separated by commas.

{related-news}

Displays the link to the 5 most related articles.

[catlist=1,2....] текст [/catlist]

Displays the enclosed text if the article belongs to the specified categories.

[not-catlist=1,2....] text [/not-catlist]

Displays the enclosed text if the article does not belong to the specified categories.

[tags] text [/tags]

Displays the text if the article contains keywords assigned for a tag cloud.

{tags}

Displays clickable keywords of the article.

{full-link}

Displays the full permanent address of the article.

[edit-date] text [/edit-date]

Displays the text if the text or the article has been edited.

{edit-date}

Displays the date when the article has been edited.

{editor}

Displays the login of user who edited the article.

[edit-reason] text [/edit-reason]

Displays the text if edit reason has been specified.

{edit-reason}

Displays the edit reason.

{poll}

Connects the voting template into the article if this article has the voting.

{date=date format}

Displays the date in the specified format. It allows you to display both the full date and its separate parts. The date format is set in accordance with the PHP format. For example, {date=d} tag displays the day of the article or comment publication, and {date=F} tag displays the name of the month. {date=d-m-Y H:i} displays the full date and time.

[fixed] text [/fixed]

Displays the enclosed text if this article is fixed.

[not-fixed] text [/not-fixed]

Displays the enclosed text if this article is not fixed.

[day-news] text [/day-news]

Displays the link to all the news published in the same day as the given article. This tag can be used in conjunction with {date}.

{comments}

Displays comments to this article. This tag will be useful for those who need to post comments on the page of the full article. This tag is not required. In its absence the comments will be automatically located below the full article.

{addcomments}

Displays the Add comments form. In conjunction with a new {comments} tag you can place Add comments form both above and below the comments. This tag is not required. In its absence the comments will be automatically located below the full article.

{navigation}

Displays the comments navigation if there are several pages with ocmments. In conjunction with a new {comments} tag you can place navigation both above and below the comments. This tag is not required. In its absence the navigation will be automatically located below the full article.

{login}

Displays the name of the user who added the article as a simple text without a link to his profile.

[related-news]

text

[/related-news]

Displays the enclosed text only if there are related news to this article. Otherwise the information will be removed from the template.

[poll] text [/poll]

Displays the enclosed text if this publication has a voting.

[not-poll] text [/not-poll]

Displays the enclosed text if this publication has no voting.

[profile] text [/profile]

Displays the link to the article's author profile, without the use of pop-up miniprofile window.

[complaint]

text

[/complaint]

Displays the enclosed text as a link to writing a complaint to the article.

{custom}

Refer to "Displaying news on pages".

[comments]

text

[/comments]

Displays the enclosed text if there are comments for this article.

[not-comments]

text

[/not-comments]

Displays the enclosed text if there is no comments for this article.

{image-x}

Displays the URL of images that are in the article annotation, where "x" is the number of picture in the article. For example,{image-1} will display URL of the first image in the article annotation.

[image-x] text [/image-x]

Displays the enclosed text only if there is an image number X in the article.

{fullimage-x}

Displays the URL of the image which is in full article, where "x" is the number of the picture in the article.

[fullimage-x] text [/fullimage-x]

Displays the enclosed text only if there is the image number "x" in the article.

 

[news=1,2,3] text [/news]

Displays the enclosed text if the user the full version of the article specified in the tag, where 1,2,3 are the article IDs.

[not-news=1,2,3] text [/not-news]

Displays text on any page except the news pages specified in the tag.

 

[declination=X] text [/declination]

Changes endings according to the specified number. X is a number and "text" is a word with its endings. Endings are specified separated by "|" symbol. This tag is useful to be used with other tags that display, for example, number of views of the article or number of comments. For example, [declination={comments-num}]commen|t|ts[/declination] displays the following, depending on the number of comments: "comment", "comments".

{banner_x}

Displays the banner added in the Manage banners section of Administration Panel. Where X is the name of the banner.

[vk] text [/vk]

Displays the enclosed text if authorization using VK network is enabled.

{vk_url}

Displays the URL link to log in to VK.

[odnoklassniki] text [/odnoklassniki]

Displays the enclosed text if authorization using Odnoklassniki network is enabled.

{odnoklassniki_url}

Displays the URL link to log in to Odnoklassniki.

[facebook] text [/facebook]

Displays the enclosed text if authorization using Facebook network is enabled.

{facebook_url}

Displays the URL link to log in to Facebook.

[google] text [/google]

Displays the enclosed text if authorization using Google network is enabled.

{google_url}

Displays the URL link to log in to Google.

[mailru] text [/mailru]

Displays the enclosed text if authorization using Mail.ru network is enabled.

{mailru_url}

Displays the URL link to log in to Mail.ru.

[yandex] text [/yandex]

Displays the enclosed text if authorization using Yandex network is enabled.

{yandex_url}

Displays the URL link to log in to Yandex.

[comments-subscribe]

text

[/comments-subscribe]

Text between them is displayed as a link to the article comments subscription.

[next-url] Text [/next-url]

display enclosed text if article has the next article

{next-url}

Displays the URL of the next article

[prev-url] Text [/prev-url]

Display the enclosed text if article has the previous article

{prev-url}

Displays the URL of the previous article