Special User Sections > Site/Forum Features
new forum feature coded - ability to inline link attachments!
Timo Trallala:
Hi Mouser,
once again: Is there a way to set a max width for fullsizeInlineImages so they will not crash my layout.
The following function should solve my problem, but I really don't know how to edit my files
--- ---
function resizeImage($width, $height, $maxWidth, $maxHeight)
{
$srcRatio=$width / $height; // width/height ratio
$destRatio=$maxWidth / $maxHeight;
if ($destRatio > $srcRatio)
{
$destSize[1]=$maxHeight;
$destSize[0]=ceil($maxHeight * $srcRatio);
}
else
{
$destSize[0]=$maxWidth;
$destSize[1]=ceil($maxWidth / $srcRatio);
}
return $destSize;
}
Thanks for some instructions
Greetz from Germany
Timo
mouser:
Hi Timo,
This is a nice idea actually.. Let me add it to the code and test, and then paste instructions on where to do it.
-mouser
digit2:
Is there any chance we can get this mod to work with Recent.template.php?
In my recent results I see
--- ---[attach=x][/attach]
Thanks!
Nod5:
Hi, I can't get Insert Flash to work :(
I have attached a .swf flash animation, inserted the flash tags: [ flash=607,431][ /flash], then tried in various ways to insert a link to the attached file but it doesn't work. Any suggestions on how to do this? Or is the flash option only meant for externally hosted flash animations?
mouser:
yeah there is no way currently to inline link flash images in a post.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version