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 01:01PM |
Admin Registered: 18 years ago Posts: 9,239 |
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
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
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
Phorum Development Team / Mysnip-Solutions.de


October 15, 2004 07:17PM |
Registered: 16 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 10: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 10:31PM by portal of curiousity.
Re: Inline-Attachments-Module October 15, 2004 11:06PM |
Admin Registered: 18 years ago Posts: 9,239 |
No.
Its quite simple to try it out.
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Its quite simple to try it out.
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de


October 15, 2004 11:12PM |
Registered: 16 years ago Posts: 666 |
Re: Inline-Attachments-Module October 24, 2004 12:21PM |
Registered: 16 years ago Posts: 22 |
Re: Inline-Attachments-Module October 24, 2004 12:42PM |
Admin Registered: 18 years ago Posts: 9,239 |
just like each other module ... copy the *whole* inline_attachments-folder into the mods-folder and then disable/enable it in the admin -> modules -part.
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de


Re: Inline-Attachments-Module October 24, 2004 02:14PM |
Registered: 16 years ago Posts: 22 |
Re: Inline-Attachments-Module February 28, 2005 03:23PM |
Registered: 16 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 06:38PM |
Registered: 15 years ago Posts: 5 |
Re: Inline-Attachments-Module March 04, 2005 06:49PM |
Admin Registered: 18 years ago Posts: 9,239 |
huh? which changes? no one told to make changes to these files.
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de


Sorry, only registered users may post in this forum.