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 09:28AM |
Admin Registered: 19 years ago Posts: 8,532 |
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
Re: In-body attachment links/images (for 5.1.5 beta or later) February 23, 2006 11:25PM |
Registered: 18 years ago Posts: 179 |
Re: In-body attachment links/images (for 5.1.5 beta or later) April 04, 2006 06:07AM |
Registered: 19 years ago Posts: 68 |
Re: In-body attachment links/images (for 5.1.5 beta or later) April 04, 2006 08:34AM |
Admin Registered: 19 years ago Posts: 8,532 |
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
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 09:13AM |
Admin Registered: 21 years ago Posts: 9,240 |
Re: In-body attachment links/images (for 5.1.5 beta or later) April 05, 2006 04:53AM |
Registered: 22 years ago Posts: 1,076 |
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 ]=-
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 03:12PM |
Registered: 18 years ago Posts: 16 |
Re: In-body attachment links/images (for 5.1.5 beta or later) June 28, 2006 01:10AM |
Registered: 18 years ago Posts: 16 |
Re: In-body attachment links/images (for Phorum 5.1 or later) July 21, 2006 09:00AM |
Admin Registered: 19 years ago Posts: 8,532 |
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
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 07:12AM |
Admin Registered: 18 years ago Posts: 744 |
Sorry, only registered users may post in this forum.