fullstory.tpl

24-07-2014, 14:25. Author: dlestarter
Home » DLE Templates » fullstory.tpl
The Full News or fullnews is the main module to display full articles and full description, this full news will use theme file fullstory.tpl, inside category if you specified different theme files then they will use the same tags as in fullstory.tpl:

fullstory.tpl theme file can use the following tags

Tag Name Description
{title} - Display the article title
{title limit="x"} - Display article title with limited characters, a specified number of characters in the X tag. This will cut out the long original title to reduce title so it will help break the words in the middle and help in theme designs if there is limited space for article title.
{news-id} - ID number of the news, this number is the news numbers that stored in a database
{full-story} - Display complete or full news in full article page
{short-story} - Display a short news and news description
{full-story limit="x"} - Display text only full news without HTML formats, with the text of the full article (full-story) is reduced or cut out to X number of characters.
{author} - The author who submit the news
{date} - Date of submit, the date format can be configured in the system settings
{pages} - Page Navigation News
[pages] text [/pages] - Outputs the specified text in the tags if the news is broken down into several pages with the tag {PAGEBREAK} and removes the text in it, if the news consists of one page.
{rating} - Display news rating
[rating] text [/rating] - Display the enclosed text only if the ratings for article enabled and disabled the contents, if it was disabled by adding news.
{vote-num} - Display the number of users who rated this news
{comments-num} - Display the number of comments posted in the news
{category} - Category that article added to (without link)
{category-url} - Display the full URL to the category which the article belongs to. This tag displays only the URL in single and direct link URL form, without any formats or direct URL and can't be modified.
{category-icon} - Link on the category icon, it shows only the icon link and it use regular image formats, to add the icon in your theme you must use the correct html code such as <img src="{category-icon}" />
{link-category} - Link to all categories which the news is posted in
{views} - Number of views the News
{favorites} - Link to add or remove favorite news or bookmarks
[edit] Edit [/edit] - Link to edit news
[print-link] and [/print-link] - Direct link to print page
[full-link] and [/full-link] - Link to the full news, for example [full-link]Read moreā€¦[/full-link]
{full-link} - Display the full link URL to the full page details
[com-link] and [/com-link] - Link to comments on the article, this will only show if you allow the comments to be added
[xfvalue_x] - The value of an additional field "X", where "X" is the extra field name
[xfgiven_x] [xfvalue_x] [/xfgiven_x] - Display an additional field "X", if the field is not empty or blank, if the field is not input or leave blank then nothing will show, this useful if you add extra styles or text within the tag
[xfnotgiven_X] [/xfnotgiven_X] - Display the text specified inside the tag if the additional field has been set for publication of news, where "X" is the name of an additional field
[group=X]text[/group] - Text output to a specific group of users. Where X is the group ID list, separated user group by commas.
[tags] text [/tags] - Display tag text if news contains the keywords added to the tag cloud
{tags} - Display keywords of news base on tag cloud
[edit-date] text [/edit-date] - Display the edit info if the news has been edited
{edit-date} - Display the date what news had been edited
{editor} - Show the user who had edited the news (username)
[edit-reason] text [/edit-reason] - Display the info about the reason to edit the news, if the author give the reason
{edit-reason} - Display the text of reason to edit the news
{poll} - Display poll or vote for news if a poll was added to the news.
{date=date format} - Display the date specified in the tag format. You can display not only the date but the whole format and its individual parts. The date format can only specified and used base on the standard format in PHP. For example the tag {date=d} displays the day of the month of news or comment, and the tag {date=F} displays the name of the month, and tag {date=d-m-Y H:i} display the full date (day-month-year) and time
[fixed] text [/fixed] - Display the text in the tags if the news is fixed
[not-fixed] text [/not-fixed] - Display the text in the tags if the news was not fixed
[day-news] text [/day-news] - Provide a link to all the news published on the same day. This tag can be used for example in conjunction with the tag {date}
[catlist=1,2....] text [/catlist] - Display the text in the tag, if the news belongs to these categories then the text will show
[not-catlist=1,2....] text [/not-catlist] - Display the text in the tag, if the news does not belong to these categories then the text will show
{login} - Display the author (username) without the link to the profile or popup windows, just simple username in paint text
[poll] text [/poll] - Text output in the data tags, if there is poll added to the news for vote or survey.
[not-poll] text [/not-poll] - Display text output in the poll, if there is no poll added to the news for vote or survey.
[profile] text [/profile] - Used for a direct link to the author's profile from fullstory, without using pop-up windows.
[complaint] text [/complaint] - Display text for the link to write or report a complaint to the news.
[comments] text [/comments] - Display the text enclosed inside the tag if there is comment added in this article.
[not-comments] text [/not-comments] - Display the text enclosed inside the tag if there is "no" comment added in this article.
{image-x} - Display the images URL which is added in the "short news", where "x" is the number of "image number" in the news, for example {image-1} Image URL will display the first image from a "short news"
[image-x] text [/image-x] - Display the text specified within tag if the picture number "X" is existing in the news
[declination=X] text [/declination] - Display declension words about numbers. As the parameters instead of the tag is transmitted by X, but instead the "text" transmitted to the root word ends. Word endings are listed with the symbol "|". This tag is useful with other tags that display such as news or views number of comments. For example [declination={comments-num}]comment|th|l|s[/declination] depending on the number of comments will display: "1 comment," "2 comments", "10 comments"
{related-news} - Display the list of related news or similar articles
[related-news] text [/related-news] - Display the related news block or text inside the tags, if there is related news, otherwise it will remove the whole block
{comments} - Display the comments written by the news or comment block area. This tag will be useful for those who need to place comments such as the overall design of the full news. This tag is not required, if this tag is not specified then comments will automatically be placed below the full news
{addcomments} - Display the form to add comments to the site, together with a new tag {comments}, you can post a form to add comments, both above and below the comments themselves. This tag is not required, if this tag is not specified then comments will automatically be placed below the full news
{navigation} - Display the navigation on the comments if the comments are located on several pages, together with a new tag {comments} you can have navigation on the comments, both above and below the comments themselves. This tag is not required, if this tag is not specified then comments will automatically be placed below the full news
{custom} - for more details please see "Basic Main tag and page displays"
{fullimage-x} - Display the URL of the image that is in the text full of news, where "x" is the number of images in the news
[fullimage-x] text [/fullimage-x] - Display the specified text within tags, but if the picture with the number "x" is present in the full news.
[news=1,2,3] text [/news] - Display the enclosed text, if a user/visitor looks at the full news you specified in the tag news where 1,2,3 is the ID of news.
[not-news=1,2,3] text [/not-news] - Display text on any other pages except the view specified on the tag news.

Go back