Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The phpFox script gives you full control over attachments. This tutorial will help you learn how to add, edit and manage attachments for your site.

Table of Contents

Excerpt Include
Enabling Short Urls
Enabling Short Urls
nopaneltrue

Adding Attachment Types

  • Go to Attachment app in AdminCP > Apps
  • Click Add New Type on the top right of the screen.

Image Added

  • You'll see a popup with boxes to fill in. We will use .zip as an example for our attachment. You will need to look up the various attachment Mime types in order to add whatever attachments you want to add. For zip, fill it in like this:
    1. Extension - for our example we put zip without a period in the front.
    2. MIME type - for our example it is application/zip.
    3. Image - No as this is not an image type of attachment.
    4. Active - Yes as we want to activate this.
    5. Submit when done.

Image Added

Editing Attachment Types

  • When in the Attachments settings, click Manage Types

Image Added

  • Find the attachment you want to edit and click the left arrow and choose Edit.

Image Added

  • Change the values in the popup as you want them and Submit when done. 

Enable or Disable Attachment Types

  • When in the Attachments settings, click Manage Types.
  • To the right of each Attachment type, you will see a Red or Grey button. Red is enabled and Grey is disabled. Click to toggle.

Image Added

Managing Attachment Thumbnails

  • When in the Attachments Settings page, click Settings.

Image Added

  • You can add attachment types to the thumbnail settings so it shows a default icon for each type.

Image Added

Managing Thumbnail Size

  • When in the Attachments Settings page, click Settings.

Image Added

  • Scroll down to the Thumbnail sizes and you can change them to what you want. You might need to tweak your theme to fit in bigger or smaller sizes.

Image Added

Managing Attachments (v4.4 and up)

  • When in the Attachments Settings page, click Manage.

Image Added

  • You will see a listing of all Attachments to the right.
    1. Attachment list.
    2. Delete Attachment.
    3. Delete Attachment Popup Yes/No choice.
    4. Search for Attachments.

Image Added

Info
titleTip

Always clear cache after making any changes.