Skip to content

Cotonti-Extensions/attach2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

Attachments 2 for Cotonti

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

Thanks to them work you could use that good plugin again Pavlo Tkachenko (Dayver), Kabak (Kabak)

Features

  • 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.

Installation

  • 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).

Usage at forum

// 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>&lt; 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"/&gt;</p>

Usage at Pages

// 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

Usage at Comments

// 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

Releases

No releases published

Packages

No packages published

Languages

  • PHP 42.5%
  • JavaScript 37.7%
  • Smarty 11.2%
  • CSS 6.8%
  • HTML 1.8%