Technology Tools for Ministry

Community

Web-Empowered Church User Community
Total Posts: 4 - Pages (1): [1]
Author: Guoheng Wei
Posted: Jan 15 2008 - 10:28 PM
Subject: attachment in post
Hi,

How do I setup the configuration so that the users can attach files in their post? I tried to post a message and attach a pdf file, but it gives me a error:

Your post contained errors:
This type of attachment is not allowed.
Author: Dave Slayback
Posted: Jan 16 2008 - 02:59 PM
Subject: re: attachment in post
It seems that this is not handled right now. I will add it to the next version, but if you want to get it working, you will have to edit .php files in the wec_discussion extension directory. You can do this with Ext Manager->Loaded Extensions->[choose wec_discussion]->Edit files.

Edit the tca.php. Search for "attachment". Add the disallowed field like below:

"attachment" => Array (
"exclude" => 1,
"label" => "LLL:EXT:wec_discussion/locallang_db.php:tx_wecdiscussion_post.attachment",
"config" => Array (
"type" => "group",
"internal_type" => "file",
"allowed" => "",
"disallowed" => "php,php3,sh",
"max_size" => 500,
"uploadfolder" => "uploads/tx_wecdiscussion",
"size" => 1,
"minitems" => 0,
"maxitems" => 4,
)
),

Then save this file, clear the typo3conf cache, and try again. This should fix it.

-Dave
Author: Guoheng Wei
Posted: Jan 24 2008 - 10:10 PM
Subject: re: attachment in post
Hi,

I just have time to try this. But it's still not working.

What I want to do is to create an area that the front-end user can upload files. I think the discussion forum would be a good place to do this. What's the other solution?
user picture Author: Mark Stephenson
Posted: Jan 25 2008 - 07:28 AM
Subject: re: attachment in post
Hi,

At our church we use moc_filemanager and put it on a page that only gives access to the people who can upload files. It looks great and has worked beautifully. It is like a simple file manager and they can even create directories.

In Him,
Mark
Total Posts: 4 - Pages (1): [1]
You must login to post a message to this conference.