vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Prevent Oversized Images Breaking Message Tables & Sigs 2.1 (https://vborg.vbsupport.ru/showthread.php?t=110310)

UtahNissans 05-13-2006 05:47 AM

Sweet it works now. The only thing I am confused about is in phpbb2 they had a script that would actually resize teh images automatically and then with the mouse over the image it would show the actual size. Does anyone know how to do that?

Also I seem to just have the scrolling bar. How do I apply example #2 to my site?

Freesteyelz 05-14-2006 12:11 AM

There is a mod here that automatically resizes large images based on defined rules but it strains server resources. I think it's in the Code Modifications.

As for example #2, images that are within the width perimeter will post in full while images outside the width perimeter will show a scrollbar or get cut off, depending on the "auto" and "hidden" values. :)

UtahNissans 05-14-2006 08:20 PM

Well I did input the code already and it creates the scroll bar. If the other method is stressful on the server then I might not want to do that. But right now my board is fairly small and I am given 13GB of tranfer per day. So if I wanted to do it so that the board would resize automatically where would I look?

Freesteyelz 05-14-2006 10:22 PM

You can find it here. :)

Aurous 05-15-2006 10:45 AM

Quote:

Originally Posted by 007
Good work.

For those of you with variable width forums, I would suggest using:

Code:

.hideadvnews {
  width:auto;
  padding-bottom:20px;
  overflow:auto;
  overflow-x:auto;
  overflow-y:hidden;
  }

By setting the width to auto it will automatically adjust to fit the length of your screen. :)


width:auto; only works fine in FireFox. Even 100% doesnt work well in IE. So basically you need to set a width value for IE users.

Freesteyelz 05-16-2006 12:30 AM

That's correct. :)

While this modification was designed for fixed width layouts various members have offered solutions for fluid layouts. We haven't come across an effective code that warrants me changing the instructions or mod version. If we do then I will send an update via e-mail to all of the members who have cliced the "Install" link.

GrendelKhan{TSU 05-28-2006 03:45 PM

works great!

[high]* GrendelKhan{TSU clicks install :)[/high]

Freesteyelz 05-28-2006 11:55 PM

Thank you. :)

dwgotz 06-18-2006 06:07 PM

Just wanted to post and say this is a fantastic mod

Freesteyelz 06-18-2006 08:47 PM

Thanks for the feedback. :)

Bernd 06-26-2006 10:40 AM

I have noticed that this hack does not resize images when replying to a post. When replying, the firs\original post is usually listed below the reply box. If that post contains a large image, it will not resize.

How can this be fixed?

Thanks in advance.

Freesteyelz 06-27-2006 09:51 PM

The hack only adds a scrollbar if an enlarge image is posted on fixed width layouts; it doesn't resize them. :)

dinodonk 06-28-2006 04:46 PM

can we use this ??
Code:

      <div id="post_message_$post[postid]" STYLE="width: 700px; padding-bottom:20px; overflow: auto; overflow-x:auto; overflow-y:hidden; ">$post[message]</div>
so no need to edit another css

Bernd 06-28-2006 08:43 PM

Quote:

Originally Posted by Freesteyelz
The hack only adds a scrollbar if an enlarge image is posted on fixed width layouts; it doesn't resize them. :)

Right, it doesn't do that neither when replying to a post that contains an image that is too large, so the issue still stands ;)

Freesteyelz 06-28-2006 09:40 PM

@dinodonk: If it works, sure. :)

@Bernd: Can you please give me a screenshot and the codes you layed out so I can help with resolving the issue.?

I just tested it and for me it's working in IE and Firefox (screenshot here). The second post is a quote of the first post. :)

Bernd 06-29-2006 09:11 AM

<a href="http://www.c4dportal.com/issue/newreply.php.htm" target="_blank">http://www.c4dportal.com/issue/newreply.php.htm</a>

Here is a screenshot (scroll all the way down). And thanks.

Freesteyelz 06-30-2006 01:50 AM

Ahh, that's what you meant. :)

It's not an issue as that was never part of the modification. Nevertheless, try either these two codes to correct the reviewbit:

Assuming you already have the hack installed...In "newreply_reviewbit" template find:
Code:

        <td class="alt2">$reviewmessage</td>
And replace it with:
Code:

        <td class="hidemsg alt2">$reviewmessage</td>
or

Code:

        <td class="alt2"><div class="hidemsg">$reviewmessage</div></td>
I use the latter on my forum. The "hidemsg" then inherits whatever setting you use for the postbit pages. :)

Nuguru 08-19-2006 08:59 AM

Hello Everyone,

First of all I really like this hack. However I just noticed that the width that its set to becomes the width of all forum posts regardless of having a oversized image or not as well as the width of PM's.

So this hack seems to be affecting the width of not just all forum posts but also PM's.

Is there a way to fix the width of forum posts that don't have oversized images and PM's without losing the ability to have the scroll bar on posts with oversized images?


Thank You,

Nuguru :)

Freesteyelz 08-20-2006 08:10 AM

Hmm...Those are good questions that I didn't really consider for this mod. I believe you can use a conditional for the PM's in the postbit such as:

Code:

<if condition="THIS_SCRIPT == 'private'">
pm_postbit_code_here
<else />
regular_postbit_code_here
</if>

As for the width settings I don't think there's a way to do it by a template edit; unless there's a Javascript code that deciphers when images appear oversized versus regular posts. Though, if you're going to do that then you may want to consider the 3.6 image resize mod in the Addon section. :)

Mudvayne 09-23-2006 06:36 PM

Edit: Fixed.. I miss Private Message conditional posted by kennn

mauro1947 02-07-2007 12:57 AM

Hi!
@Freesteyelz: Can you take a look at my forum (i'm having problem with large images)?
If you can, i will send you a PM with the information.
Thanks a lot

StarshipTrooper 03-13-2007 09:33 AM

Quote:

Originally Posted by Nuguru (Post 1055664)
Hello Everyone,

First of all I really like this hack. However I just noticed that the width that its set to becomes the width of all forum posts regardless of having a oversized image or not as well as the width of PM's.

So this hack seems to be affecting the width of not just all forum posts but also PM's.

Is there a way to fix the width of forum posts that don't have oversized images and PM's without losing the ability to have the scroll bar on posts with oversized images?


Thank You,

Nuguru :)

Hi,

Yes, there is... by editing vBulletin's IMG code tag.

Edit this file (make a backup first): upload\includes\class_bbcode.php

*** Replace ***

PHP Code:

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

*** With ***

PHP Code:

return '<div class="hidemsg"><img src="' .  $link '" border="0" alt="" /></div>'

That will fix it. Only the picture width is affected; not the width of the rest of the message text. Also, this updates the IMG code in all parts of the forum: posts, PM's, siggies, and extensions like vbPortal and vBAdvanced.

Regards,

Nathan

sumacbob 05-01-2007 12:32 AM

Great mod, thanks.

One thing I noticed and it may have been something I have or haven`t done. When replying to a thread/post with an oversize image, it appears full size thus breaking the layout and sending everything all over the place!

It works fine otherwise, just doesn`t when replying.

RTMdotORG 03-30-2009 04:56 PM

can we get this for 3.8?


All times are GMT. The time now is 01:04 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.02048 seconds
  • Memory Usage 1,777KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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