Firefox PHP

In-body attachment links/images (for Phorum 5.1 or later)

Posted by Maurice Makaay 
All files from this thread

File Name File Size   Posted by Date  
in_body_attachments-1.4.0_Phorum5.1.tar.gz 95 KB open | download Maurice Makaay 07/09/2007 Read message
in_body_attachments-1.4.0_Phorum5.1.zip 105.3 KB open | download Maurice Makaay 07/09/2007 Read message
In-body attachment links/images (for Phorum 5.1 or later)
January 10, 2006 03:28PM
This module makes it possible to put links to attachment inline on any position in the message body. Moreover, image attachments can be displayed inline, so users that are reading the message can view them directly. For inline viewing, you can set a maximum width in the module's settings. Images that are too large will be shown scaled down and visitors can click the scaled down image to see the full size image. Scaling down can also be applied to bbcode
Attachments:
open | download - in_body_attachments-1.4.0_Phorum5.1.tar.gz (95 KB)
open | download - in_body_attachments-1.4.0_Phorum5.1.zip (105.3 KB)
Re: In-body attachment links/images (for 5.1.5 beta or later)
February 24, 2006 05:25AM
This is a great mod, by the way. Exactly what I was looking for!

Steel Rat
[infinite-realities.com]
wnd
Re: In-body attachment links/images (for 5.1.5 beta or later)
April 04, 2006 12:07PM
Great module! Thanks!

But I've got one proposition. AutoMake thumbnail and display it in body message.

mmakaay, what do you think?

Regards,
wnd
Re: In-body attachment links/images (for 5.1.5 beta or later)
April 04, 2006 02:34PM
What I have planned myself is scaling down uploaded image attachments in a separate mod, so they will be in my desired size when displayed in the message body. That is something different than creating thumbnails though. I'll give your request some thought when I start coding on my image rescaling.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: In-body attachment links/images (for 5.1.5 beta or later)
April 04, 2006 03:13PM
I wouldn't want to do on-the-fly thumbnail creation as this would increase the server-load too much.
It would be much better to do this on upload-time, so the thumbnail needs to be only created once.


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Re: In-body attachment links/images (for 5.1.5 beta or later)
April 05, 2006 10:53AM
Or caching thumbnail generator.

I'm using [phpthumb.sourceforge.net] for some specific needs. And it doesn't work with db resourses.

But the quality it produces is really good (unsharp mask...)

---
-=[ Panu ]=-
Re: In-body attachment links/images (for 5.1.5 beta or later)
June 27, 2006 09:12PM
Hi guys,

Is there a way to use this module and the Smiley one (Smiley Replacement Mod).
When both are enable the picture is not showing correctly.

Is there a way to solve this issue?

Regards
Re: In-body attachment links/images (for 5.1.5 beta or later)
June 28, 2006 07:10AM
Hi,

I have found the solution!
I have a smiley with this shorcut :/ I have renamed it and it works ;)
Re: In-body attachment links/images (for Phorum 5.1 or later)
July 21, 2006 03:00PM
I just uploaded a new version of the in-body attachments module. I added support for scaling down images if they are larger than the width that can be configured from the module settings screen. Scaled down images can be clicked by the visitors to view them full size.

In my implementation, I have not really scaled down the images themselves. What I do instead is applying a width=".." attribute to the <img> tags if needed. The advantage of this, is that it's very easy to change the maximum width setting for the module. Pages will automatically follow the new value. Also it is possible to implement this scaling method within JavaScript. I added some JavaScript resizing code as a fallback mechanism for people that do not have the GD tools enabled in PHP on their server.

Maybe that I will add real scaling code to the module at a later stage (mainly because it helps bringing down bandwidth usage when users post a lot of large pictures). For implementing that, I'll have to figure out some good way to store the scaled down images. The best thing would be to store them in the standard file table IMO (next to and not overwriting the original image files). Before I start on this, I first want to test out the current code base.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: In-body attachment links/images (for Phorum 5.1 or later)
July 26, 2006 01:12PM
Hi Maurice,

here is a german language file to include in your mod.

Regards
Oliver

Note: The language file attachment was deleted from this post, since the translation has been included in the distribution (Maurice)



Edited 2 time(s). Last edit at 07/26/2006 03:00PM by mmakaay.
Sorry, only registered users may post in this forum.

Click here to login