With this plugin you can attach files and images to any Cotonti objects including pages, forum posts and organize them into galleries or downloads.
Author: Vladimir Sibirov (Trustmaster)
Plugin page and documentstion: https://www.cotonti.com/en/extensions/files-media/attach2
Forum discussion: https://www.cotonti.com/forums?m=posts&q=9217 (Russian)
Thanks to them work you could use that good plugin again Pavlo Tkachenko (Dayver), Kabak (Kabak)
- Modern upload dialog based on jQuery File Upload.
- Multi-upload support.
- Easy integration via TPL callbacks.
- Built-in gallery based on Lightbox 2.
- File downloads are counted and provided with original file names.
- Configurable on-the-fly thumbnail generation.
- Special BBcodes to paste images into content regardless of parser.
- Download the plugin and extract "attach2" folder into your Cotonti plugins folder.
- Go to Administration / Extensions and install the Attachments plugin.
- Enter plugin Configuration and set the proper defaults there.
- Create the "Directory for files" on your host (by default it is "datas/attach") and make it writable for PHP (e.g. CHMOD 775 or CHMOD 777).
// Attach to forum post
{FORUMS_POSTS_ROW_ID|att_widget('forums',$this,'attach2.link')}
// Displat at forum
{FORUMS_POSTS_ROW_ID|att_display('forums',$this)} // All by attach list queue
{FORUMS_POSTS_ROW_ID|att_gallery('forums',$this)} // gallery
{FORUMS_POSTS_ROW_ID|att_downloads('forums',$this)} // for downloading not picture
// 1000*600 picture<p>< img src="{FORUMS_POSTS_ROW_ID|att_get('forums',$this)|att_thumb($this,1000,600,height)}" alt="{FORUMS_POSTS_ROW_ID|att_get('posts',$this,'title')}" class="img-fluid"/></p>
// Attach to page
{PAGE_ID|att_widget('page',$this,'attach2.link')}
// Display at page
{PAGE_ID|att_display('page',$this)} // All by attach list queue
{PAGE_ID|att_gallery('page',$this)} // gallery
{PAGE_ID|att_downloads('page',$this)} // for downloading not picture
// Attach to comment
{COMMENTS_ROW_ID|att_widget('comments',$this,'attach2.link')}
// Display at Comment
{COMMENTS_ROW_ID|att_display('comments',$this)} // All by attach list queue
{COMMENTS_ROW_ID|att_gallery('comments',$this)} // gallery
{COMMENTS_ROW_ID|att_downloads('comments',$this)} // for downloading not picture