vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Auto resize large image (https://vborg.vbsupport.ru/showthread.php?t=99286)

Freesteyelz 02-27-2006 07:44 PM

Quote:

Originally Posted by Barakat
iam useing this and its usefull also .
in the same file and the same code just find this code :-

PHP Code:

return '<img src="' $link '" border="0" alt="" />'

replace it with :-

PHP Code:

return '<div style="width: 800px; overflow: auto;"><img src="' $link '" border="0" alt="" /></div>'

it will give u a frame on large pictures and will save ur style as it is .
just choose the width as u want the picture to be shown and thats all ...

any way i will try ur code also

Actually a better way (without editing a .php core file) is to modify the template "postbit" or "posbit_legacy" such as:

Find:

Code:

<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div> <!-- / message -->

Replace with:

Code:

<!-- message -->
                                <div id="hideauto">
<div id="post_message_$post[postid]">$post[message]</div>
                                </div>
<!-- / message -->

And in the Main CSS in the " Additional CSS Definitions " add:

Code:

#hideauto {
width:540px;
padding-bottom:10px;
overflow:auto;
}

1. Change width to specified dimension.
2. Padding is to prevent images (smilies) from being cut off.
3. Overflow can be set to "auto" (for scrollbars) or "hidden" (cutoff excessive images).

*Again, no .php files have been modified for this to work.

Mr Chad 03-04-2006 09:11 PM

Quote:

Originally Posted by Allan
so , don't work with IE

Works great with IE and FF... Only one out that works this good.

Currently useing it on VB 3.5.4

drewclark 03-27-2006 03:25 AM

This is working great in my forums but I use CMPS and it doesn't resize the images that get featured in the news section (pulled from the forums). Any clues on how to get those resized, too? They're the bigger problem for me as the oversized images distort the homepage worse than the forums...

bhxtyrant 07-09-2006 10:02 PM

Hey guys,I was looking for something like this for my forums but having a bit of a problem.I installed this mod and it seems to work sometimes but other times it doesnt.For example i made a test thread and posted a large image around 1024x768 width.I have the mod set to reduce the image to 600px width.It seems to work but if i refresh the page then it is huge again and the only way to get it back to the reduced size is edit the post and save it again.

Small edit:
This seems to work in firefox but the problem occurs in the latest version of IE6.Peraps due to cookies?I tryed deleting temp files to see if that was the cause but problem persists.

jamiepryer@hotm 07-09-2006 10:42 PM

anyone got an example of this working please?
some screen shots please :tu

bhxtyrant 07-10-2006 02:13 AM

Small update again.I notice that this mod is working in other area's such as "view single post" but only not in "Showthread" it seems to be my custom theme that is causing the issue and it seems to work fine on Vb's default theme.I've been going through the code in Showthread template but i cant seem to find whats causing the problem.Anyone think they can assist me?

bhxtyrant 07-12-2006 06:11 PM

Is this mod still supported?

PJSkiboy 07-13-2006 03:39 AM

I installed this in my custom theme and it does not work. I have no idea which mod has this messed up. That's a lot of mods to look through.........eeeeesh.

WeArab 08-07-2006 08:45 AM

Hello,

Great add-on, thank you!

When VB 3.6.0 would be supported?

Eagle Creek 08-08-2006 01:24 AM

Extreme great!!!!!!!

Thankyou!


All times are GMT. The time now is 03:41 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01228 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete