Firefox PHP

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
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
Attachments:
open | download - inline_attachments.zip (719 bytes)
Re: Inline-Attachments-Module
October 15, 2004 01:17PM
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.
Re: Inline-Attachments-Module
October 15, 2004 05:06PM
No.
Its quite simple to try it out.


Thomas Seifert
Re: Inline-Attachments-Module
October 15, 2004 05:12PM
Sorry, had editted out my very moronic question (I ought to know what inline attachment is, and now I do; no need for snapshots) and replaced it with something else.

-------------------------------------------

"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Re: Inline-Attachments-Module
October 24, 2004 06:21AM
Hello
I am sure it's simple, but I do not see how to use the file "inline_attachments.php" ?
i must include it....
Thanks
Re: Inline-Attachments-Module
October 24, 2004 06:42AM
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
Re: Inline-Attachments-Module
October 24, 2004 08:14AM
Thanks.
I did'nt understood the principe. Now yes :)
Re: Inline-Attachments-Module
February 28, 2005 09:23AM
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
Re: Inline-Attachments-Module
March 04, 2005 12:38PM
hey guys,

I am trying to add the module to my phorum. Cant figure out where do make the changes.

Which file do i edit? I cant find those lines in read.php or attach.php

please reply.
Re: Inline-Attachments-Module
March 04, 2005 12:49PM
huh? which changes? no one told to make changes to these files.


Thomas Seifert
Sorry, only registered users may post in this forum.

Click here to login