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)

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


All times are GMT. The time now is 12:23 AM.

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.01202 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
  • (5)bbcode_code_printable
  • (1)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