у меня немного модифицированная версия стоит:
найти:
PHP Code:
return '<img src="' . $link . '" border="0" alt="" />';
и заменить на:
PHP Code:
$navigator_user_agent = (isset($_SERVER['HTTP_USER_AGENT'])) ? strtolower($_SERVER['HTTP_USER_AGENT']) : '';
if (stristr($navigator_user_agent, "msie"))
{
return '<a href=' . $link . ' target="_blank"><img src="' . $link . '" onload="if(screen.width-600 < this.width) {this.width=screen.width-600;this.alt=\'в полный размер\';}" onmouseover="if(this.alt) this.style.cursor=\'hand\';" style="width: expression(this.width > 600 ? 600 : true);" border="0" /></a>';
}
else
{
return '<a href=' . $link . ' target="_blank"><img src="' . $link . '" onload="if(screen.width-600 < this.width) {this.width=screen.width-600;this.alt=\'в полный размер\';}" onmouseover="if(this.alt) this.style.cursor=\'hand\';" border="0"></a>';
}
размеры выставляем свои...
а еще есть такое (ахтунг инглиш, всем недругам инглиша - курить...):
======================
Finally, let's edit!
(Or you can download the .txt file for the installation instructions)
1. Back up your templates!
2. In your postbit or postbit_legacy template find this or something similar to:
Code:
<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message -->
Replace it with:
Code:
<!-- message -->
<div id="post_message_$post[postid]" class="hidemsg">$post[message]</div>
<!-- / message -->
3. Click "Save".
4. In Main CSS go to the bottom at Additional CSS Definitions and add code bit:
Code:
.hidemsg {
width:700px;
padding-bottom:20px;
overflow:auto;
overflow-x:auto;
overflow-y:hidden;
}
5. Change the width "700px" to whatever you want. All other settings keep.
6. Click "Save".
7. Click if you use it.
Finished!
*For those of you who use a fluid layout take a look at this post. Thanks 007 for sharing.
=====================
Optional Modifications (Below)!!!:
*The 3 (A, B & C) optional modifications below follow the same steps as above with the exception of #2, #4 and #5.
A) For Signatures (Hide Oversized Images width & height):
2. In your postbit or postbit_legacy template find this or something similar to:
Code:
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
Replace it with:
Code:
<!-- sig -->
<div class="hidesig">
__________________<br />
$post[signature]
</div>
<!-- / sig -->
4. In Main CSS go to the bottom at Additional CSS Definitions and add code bit:
Code:
.hidesig {
width:700px;
height:400px;
overflow:hidden;
}
5. Change the width "700px" and height "400px" to whatever you want. Signatures (text or image) that exceed either width or height limit will be cut off. This code does not affect the message Table. Keep the remaining codes the same.
*If the center tag doesn't work in the signature after implementing the code above see this post for the solution.
---------------------------------
B) For vBAdvanced Newsbits:
2. In your vBadvanced CMPS Templates --> adv_portal_newsbits template find this or something similar to:
Code:
$news[message]
Replace it with:
Code:
<!-- message -->
<div class="hideadvnews">
$news[message]
</div>
<!-- / message -->
4. In Main CSS go to the bottom at Additional CSS Definitions and add code bit:
Code:
.hideadvnews {
width:700px;
padding-bottom:20px;
overflow:auto;
overflow-x:auto;
overflow-y:hidden;
}
5. Change the width "700px" to whatever you want. All other settings keep.
---------------------------------
C) For vBAdvanced Newsbits (Signature):
2. In your vBadvanced CMPS Templates --> adv_portal_newsbits template find this or something similar to:
Code:
<if condition="$show['signature']">
<div>__________________<br />
$news[signature]</div>
</if>
Replace it with:
Code:
<if condition="$show['signature']">
<div class="hideadvsig">__________________<br />
$news[signature]</div>
</if>
4. In Main CSS go to the bottom at Additional CSS Definitions and add code bit:
Code:
.hideadvsig {
width:700px;
height:400px;
overflow:hidden;
}
5. Change the width "700px" and height "400px" to whatever you want. Signatures (text or image) that exceed either width or height limit will be cut off. This code does not affect the vBadvanced message Table. Keep the remaining codes the same.