Previous Thread
Next Thread
Print Thread
Hop To
#193456 07/30/2007 7:21 PM
Joined: Jun 2006
Posts: 16,369
Likes: 126
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,369
Likes: 126
There are several areas that you'll need to visit to setup attachments; we'll cover them all here, including inline embedding of graphics.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #193457 07/30/2007 7:21 PM
Joined: Jun 2006
Posts: 16,369
Likes: 126
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,369
Likes: 126
The Configuration
First, you'll need to create a new directory on your server, and make it fully writable by the webserver (chmod 777 in *nix), we'll assume this is named "uploads" under your ubb install directory. (forums/uploads).

Secondly, you'll need to know the full filesystem path (the "relative" path will not work here) to this directory, it should be something similar to:
/home/ubbcentral.com/public_html/forums/uploads/
-or-
c:/htdocs/ubbcentral.com/public_html/forums/uploads/

Now, there are a few places you'll need to visit in the control panel, firstly, we'll want to set our "max inline image size"; this setting will allow you to set how large of an image you'll want to display embedded in your forums when a user preforms an upload.

Go to:
CP -> Display Options -> General -> Primary Tab -> Topic Display Options -> Max Size for inline uploaded images

The setting is in bytes, 1048576 bytes is one megabyte, however I would recommend not allowing images over say 50000 to be displayed inline (keep in mind that in this age high speed internet lines are the norm, but there are still slower connections so it's good to be courteous and to keep in mind that most users will upload more than one graphic and numerous users may upload graphics as well).

Now you'll want to set your general attachment settings:
CP -> Master Settings -> Feature Settings -> Attachments Tab

1. Attachment Storage Directory - This is the directory we created in the first steps in this entry, this is a full server path to your uploads directory.
2. Full URL to Attachment Storage Directory - This is the URL (web-address) to the directory we created in the first steps in this entry.
3. Allowed Attachment File Extensions - What filetypes do you want users to be able to upload? (Default: .gif,.jpg,.txt,.zip,.png)
4. Maximum Attachment Size - This is the max size you want users to be uploading, specified in bytes (1048576 bytes is one megabyte). This is a PER FILE setting.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #193459 07/30/2007 7:27 PM
Joined: Jun 2006
Posts: 16,369
Likes: 126
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,369
Likes: 126
The Usage
When creating a new thread or response, you'll see a "File Manager" link on the "Full Reply" or "New Post" page. When selecting this option you'll receive a popup which will allow you to attach files to your post.

Steps:
1. Click "File Manager" to bring up the "Attachment" window.
2. Click "Browse" to bring up the file browser window; this will allow you to browse your computer for any files or images you wish to upload; please note that you're bound by whatever the "allowed file type" setting is in the control panel.
3. Click "open" on the file you wish to upload.
4. Enter a description of what the file is (if you want to).
5. Click "add file" to add another file, or "done" to close the window and complete your posting.

Please note that you must enter some text in both the "subject" and "post" fields when responding otherwise you will receive an error; you cannot just respond with an attachment wink.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
"Recent Posts" box
by SenecaFlyer - 12/13/2024 12:06 PM
Sticky posts and global announcements
by Larry Miller - 12/08/2024 2:30 PM
Profile avatar storage settings
by SenecaFlyer - 12/05/2024 1:24 PM
Not allowing attachment over 2m
by ehill - 12/03/2024 3:16 PM
New Admin Here
by SenecaFlyer - 12/02/2024 4:14 PM
Who's Online Now
3 members (Ruben, SenecaFlyer, 1 invisible), 1,719 guests, and 157 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)