Quote:
Originally Posted by NuclioN
Great hack but i'm confused with the upload permissions. When my upload dir is forum/uploads how must i specify the *local_file_root* and
*local_file_root_prefix* and further in the settings: upload_dir ?
|
local_file_root: indicates whether files are located in terms of their position on your web site ('web space') or the raw server ('server space')
local_file_root_prefix: force files to be in a particular part of 'web space' or 'server space'
upload_dir: the specific directory in which the uploads are stored, relative to the constraints imposed by the above
Example 1: your upload directory, uploads, is a top-level directory in
http://yoursite, ie all uploads will be stored inside
http://yoursite/uploads -> set local_file_root to 0, leave local_file_root_prefix blank and set upload_dir to /uploads
Example 2: your upload directory, uploads, is to be kept outside your website so that curious users can't get at it. You want it to be a subdirectory of /data on the the computer which is acting as server. All local documents that you will 'serve' to your user community will also be held in subdirectories of /data: set local_file_root to 1, set local_file_root_profix to /data and set upload_dir to /uploads
Quote:
Originally Posted by NuclioN
Also i wonder how you can add an image beside the added link. Tnx in advance.
|
Two ways: Either use standard BBcodes [img] within the descriptions or title. Or set link_image_size to a non-zero value, in which case the link entry form will extend to include an additional item, which is the image to accompany the entry. In the second case, your web server must have the GD2 library available.