Image preview instread of full sized imagesor in other (maybe better) words:
Thumbnails for attached imagesDo you want to allow file attachments in your YAF, specially images? Do you know there are displayed with the original size of the image and may can cause problems in your page or forum layout if they are to large?
Well, then read on, this is maybe your solution

I have had this problem, also I have seen something like this in some other forums, and I thought it was time to create this. So i spend an hour or two into this, and now everything looks very well (see the attached image below, it's out of my forum).
Important:This enhancement REQUIRES that you are running
YAF v1.9.3 RC2 ( Dated 10/7/2008 )This is the version that I use. If there are new versions of YAF available please be patient, I will update this, too.
Otherwise you can implement this in I think most newer YAF versions your choise, too, if you have the (yaf) source files of it and know how to compile it. Any changes I have made are commented in my SRC files using tag // TommyB: Start / End MOD.
Binary? Source?Use the BIN if you want to add this to a compiled instalation (ONLY for 1.9.3 RC2).
Otherwise use the SRC if you want to compile your own YAF with preview images added. You can simply overwrite the source files (ONLY 1.9.3 RC2) or merge my changes with your files.
Installation: (
BINary version)
- Verify that your web is running version 1.9.3 RC2
- Download the attached BIN file and extract it
- Go to your web root and backup the file "resource.ashx"
- Go to /Bin and backup the file "YAF.Controls.dll"
- Upload the resource.ashx from the archive to your web root, overwrite the existing one
- Upload the /Bin/YAF.Controls.dll from the archive to your web root's bin directory. Overwrite again
*) With
web root I mean the web root of your forum, mostly / if you have it directly on your page, or /forum if it's placed in an subdirectory called "forum"
Installation (
Sou
RCe version)
- Download the attached SRC file and extract it
- Go to your source root, backup the file "\YetAnotherForum.NET\resource.ashx"
- Go to your source root, backup the file "\YAF.Controls\MessageAttached.cs"
- Overwrite the files above with that ones out of the archive (ONLY 1.9.3 RC2) or merge it with my changes out of the archived files.
Notice:If you, members or guests only see something like:
Quote:joeuser attached the following image(s):
test2.JPG (37kb) downloaded 0 time(s).
... instread of the preview images, then you need to enable the "Download" access mask.
Thanks to camoto for figuring this out

Feel free to post a comment, thanks, questions, whatever ^^
Greetz
File Attachment(s):
TommyB attached the following image(s):
- Sry for my english
BattCursor.Net - Official homepage of
that tool for vista laptops!