Firefox PHP

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

Posted by Maurice Makaay 
Re: In-body attachment links/images (for Phorum 5.1 or later)
July 26, 2006 02:57PM
Thanks Oliver. I added it to the new distribution, version 1.0.3.

In this new release, a zoom icon is placed in the top-right corner of scaled down images. This is done to notify visitors that a larger view is available.

The new distribution is attached tot he first message in this thread.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: In-body attachment links/images (for Phorum 5.1 or later)
July 27, 2006 01:50PM
Yet another release of the In-body Attachments module.

What I really disliked about the scaling method that I used in the previous version (settings the image width and let the browser to the scaling down), was that:

1) browsers do a bad job when scaling images down, because the resulting images look too chunky.

2) images were still fully downloaded, where scaling them down at the server side could save on the bandwidth that is used.

So what I did was fully implement a GD based image scaling mechanism for the in-body attachments. Images are scaled down on the fly and cached for followup requests. The icon which notifies users that the image can be viewed at full size, is now drawn directly into the scaled down image.

The new version 1.1.0 is attached to the first message of this thread. As a demo, I put up some images on my development site. You can take a look here to see what the mod does.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce



Edited 1 time(s). Last edit at 07/27/2006 02:06PM by mmakaay.
Re: In-body attachment links/images (for Phorum 5.1 or later)
July 28, 2006 07:53AM
Very nice work!

Thanks

[opensourceCMS.com]
[ongetc.com]
Chanh Ong
Re: In-body attachment links/images (for Phorum 5.1 or later)
August 15, 2006 11:46PM
I just uploaded a new version (1.2.0) of the In-body Attachments module. In the new version, a feature is added for scaling down images that are put in the body using bbcode
Re: In-body attachment links/images (for Phorum 5.1 or later)
August 18, 2006 05:00AM
Hi guys

i succesfully installed this mod, and i can set the settings at the Admin Panel.

however as a regular user who wishes to post a new msg, there is no link or button for me to attach my images.

Where n how do i activate it?

Thanks!!

Adrian
Re: In-body attachment links/images (for Phorum 5.1 or later)
August 18, 2006 05:59AM
That is not part of this module. This module just makes it easy to link the attachments. The attachment options are in the forum settings in the admin.

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: In-body attachment links/images (for Phorum 5.1 or later)
September 11, 2006 03:06PM
I uploaded version 1.3.0 of this mod to the start of this thread. Version 1.3.0 implements "Lightbox" as a viewer for full size images. This viewer uses javascript to display the images in the same window in a very fancy way. See the Lightbox website for more information.

For a demo of how this looks in Phorum, you can take a look at my development site (the template that you see there is the new Phorum 5.2 default template).

If you install 1.3.0, you can activate Lightbox from the module's settings screen.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Ta
Re: In-body attachment links/images (for Phorum 5.1 or later)
September 11, 2006 03:47PM
Works like a dream, Maurice. Just brilliant.
Thanks so much.

Ta
Re: In-body attachment links/images (for Phorum 5.1 or later)
September 11, 2006 03:49PM
You're welcome ;-) And thank you for pointing at the Lightbox script in the first place. I just uploaded 1.3.1, which contains a small javascript fix. If you want to upgrade, you only need to replace the in_body_attachments.php script.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: In-body attachment links/images (for Phorum 5.1 or later)
September 25, 2006 10:18AM
Quote
Adrianquah
Hi guys

i succesfully installed this mod, and i can set the settings at the Admin Panel.

however as a regular user who wishes to post a new msg, there is no link or button for me to attach my images.

Where n how do i activate it?

Thanks!!

Adrian

hello

I have the same probleme.

have you any solution please ?
Sorry, only registered users may post in this forum.

Click here to login