Files downloading

<< Click to Display Table of Contents >>

Navigation:  Templates >

Files downloading

Displaying of this section can be configured in attachment.tpl. Display of downloadable files that were uploaded using the script is configured in this section. You can use the following tags:

 

[allow-download]

text

[/allow-download]

Displays the enclosed text if the website user is allowed to download files.

[not-allow-download]

text

[/not-allow-download]

Displays the enclosed text if the website user is not allowed to download files.

[count] text [/count]

Displays the enclosed text if the file downloads counter is enabled in script settings.

{id}

Displays the unique ID of the uploaded file. Information about this file is stored in the database.

{name}

Displays the name of the uploaded file, or text specified as the name in [аttachment=...] tag in the text of the article.

{extension}

Displays the extension of the attached file.

{link}

URL to the file downloading.

{size}

File size.

{md5}

MD5 checksum of the uploaded file.

{date}

Displays the date of the file upload, in the date format that is specified in your script.

{date=date fromat}

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.

{count}

The number of downloads of the file.

{online-view-link}

Displays URL link to view the document online in the browser

[allow-online] текст [/allow-online]

Displays the enclosed text, if the loaded document has supported format for online viewing.