Cotonti / Open Source PHP Content Management FrameworkContent Management Framework

Working with Personal File Storage

Документация / Модули / Working with Personal File Storage

How the PFS works

Эта страница еще не переведена на русский. Отображен оригинал страницы на английском языке. Вы можете зарегистрироваться и помочь с переводом.

#1. Basic usage

The Personal File Storage (PFS) is the place where you store photos, files or similar, that you want to be able to publish on the site. The PFS is located in the menu, under "My Files"

Before you can add an e.g. image or video to a forum post, you need to upload it to your PFS. Not all file types are allowed. It is the site Administrator that decides what files you can upload, and how big they are allowed to be.

Looking at the picture below, we will explain the different things available in the PFS:

pfs screenshot

  1. Here you see the total space you have available in your PFS. You will also see the maximum size allowed for the files you upload. These limits are set by the Administrator.
  2. Here you see the folders you have created, and how many files they contain. the actual creation of folders is done at point 5.
  3. This is a list of the files stored in the root directory of your PFS.
  4. Here you can upload your files. Select a directory from the drop-down box, or else the files will be uploaded to your PFS root. Browse your computer and select the file you want to upload. Then just click "Upload".
  5. Here you can create directories in your PFS. If you select "Public", other users may access your PFS. If you select "Gallery", the images here will automatically be published in the site gallery, or "Photo Album" if the site has such a feature installed.

#2. Inserting an image in to a post or page

First of all, make sure that you have uploaded your image to your PFS. Naveigate to the place where you want to insert an image (Like a forum post,or a page). Then you select "My Files" that is located underneath the Markitup editor. A pop-up windows will appear that looks like this:

PFS screenshot 2

Here you will see 3 icons next to your image. Depending on which of the icons you click, the image will be inserted differently:

  • Clicking his icon will insert your picture as a thumbnail.
  • Clicking his icon will insert your picture as an image.
  • Clicking his icon will insert a link to your picture.

Depending on the browser you use, the link to the PFS will either be inserted where your cursor is, or at the end of the text. However, just copy/paste the link at the appropriate location within your text.

As an example of how it can look in the text (in this example BBcode is used as markup), this is what the text for the 3 icons look like, incl. the links:

[url=datas/users/full_picture.gif][img]datas/users/icon-pastethumb_1.gif[/img][/url] Clicking this icon will insert your picture as a thumbnail.
[img]datas/users/icon-pasteimage_1.gif[/img] Clicking this icon will insert your picture as an image.
[url]datas/users/icon-pastefile_1.gif[/url]Clicking this icon will insert a link to your picture.

Комментарии отсутствуют
Добавление комментариев доступно только зарегистрированным пользователям