Inline-Attachments-Module
Posted by Thomas Seifert
All files from this thread
File Name | File Size | Posted by | Date | ||
---|---|---|---|---|---|
inline_attachments.zip | 719 bytes | open | download | Thomas Seifert | 10/14/2004 | Read message |
inline_attachments.php | 903 bytes | open | download | Smith | 08/15/2005 | Read message |
Inline-Attachments-Module October 14, 2004 07:01AM |
Admin Registered: 22 years ago Posts: 9,240 |
thats a simple module which turns any attachments to a message into an image-tag which is attached to the body of the message.
so its the same result as in phorum3, every attachment is shown as image, whether it could be done or not.
Left for anyone who wants to do it:
- settings to tell which file-types should be shown as image
- working with both html- and bbcode-mod
Thomas Seifert
so its the same result as in phorum3, every attachment is shown as image, whether it could be done or not.
Left for anyone who wants to do it:
- settings to tell which file-types should be shown as image
- working with both html- and bbcode-mod
Thomas Seifert
October 15, 2004 01:17PM |
Registered: 21 years ago Posts: 666 |
Very interesting, but it seems to just turn the attachment (if not a picture but a zipped file) into just text instead of a link to it.
-------------------------------------------
"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Edited 1 time(s). Last edit at 10/15/2004 04:31PM by portal of curiousity.
-------------------------------------------
"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Edited 1 time(s). Last edit at 10/15/2004 04:31PM by portal of curiousity.
Re: Inline-Attachments-Module October 15, 2004 05:06PM |
Admin Registered: 22 years ago Posts: 9,240 |
October 15, 2004 05:12PM |
Registered: 21 years ago Posts: 666 |
Re: Inline-Attachments-Module October 24, 2004 06:21AM |
Registered: 20 years ago Posts: 22 |
Re: Inline-Attachments-Module October 24, 2004 06:42AM |
Admin Registered: 22 years ago Posts: 9,240 |
Re: Inline-Attachments-Module October 24, 2004 08:14AM |
Registered: 20 years ago Posts: 22 |
Re: Inline-Attachments-Module February 28, 2005 09:23AM |
Registered: 20 years ago Posts: 264 |
two things
1) I didn't see this in the "Index of Modules"
[phorum.org]
2) I changed the following line
$msgs[$id]['body'].="<img src=\"".$att_data['url']."\" alt=\"".$att_data['name']."\" title=\"".$att_data['name']."\"><br />\n";
to:
$msgs[$id]['body'].="<a href=\"".$att_data['url']."\"><img src=\"".$att_data['url']."\" alt=\"".$att_data['name']."\" title=\"".$att_data['name']."\"></a><br />\n";
Which allows you to click the link and download items .
If there is a more effecient way to do this I'd like to hear it.
http://www.krang.org
1) I didn't see this in the "Index of Modules"
[phorum.org]
2) I changed the following line
$msgs[$id]['body'].="<img src=\"".$att_data['url']."\" alt=\"".$att_data['name']."\" title=\"".$att_data['name']."\"><br />\n";
to:
$msgs[$id]['body'].="<a href=\"".$att_data['url']."\"><img src=\"".$att_data['url']."\" alt=\"".$att_data['name']."\" title=\"".$att_data['name']."\"></a><br />\n";
Which allows you to click the link and download items .
If there is a more effecient way to do this I'd like to hear it.
http://www.krang.org
Re: Inline-Attachments-Module March 04, 2005 12:38PM |
Registered: 20 years ago Posts: 5 |
Re: Inline-Attachments-Module March 04, 2005 12:49PM |
Admin Registered: 22 years ago Posts: 9,240 |
Sorry, only registered users may post in this forum.