vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Show Thread Enhancements - Resize IMG tag with Highslide! (https://vborg.vbsupport.ru/showthread.php?t=172024)

kevcj 04-24-2008 11:50 AM

Quote:

Originally Posted by Magnumutz (Post 1497037)
Ok, so will it be fixed? I really don't like small images to be "resized".

There is nothing to fix, just change these values

"width: expression(this.width > 640 ? 640 : true);" /></a>';

<img src="' . $link . '" border="0" alt="" style="max-width: 800px;" /></a>';

The mod works fine, you just have to put in the size that you want to use.

the 640 twice means everything bigger then 640 will be resized to 640

this is a fine mod and I do not understand what people are complaining about? Just put in the values that you want to use.

The first 640 - Anything bigger then this will be resized.

the second 640 - resized to this size.

So if you want anthing bigger then 800 to be resized to 640, put exactly that in the values.

Magnumutz 04-24-2008 01:54 PM

AS i said, that does NOT help.
Here's a screenshot: http://img355.imageshack.us/img355/7...pimage7tj6.jpg

MissKalunji 04-24-2008 02:05 PM

open a thread here : https://vborg.vbsupport.ru/forumdisplay.php?f=15

and ask its probably just an if statement but id on't know it

kevcj 04-24-2008 03:29 PM

Quote:

Originally Posted by Magnumutz (Post 1496064)
No, that's the maximum size to which a picture should get expanded by default.

This line of code defines what size images should be resized -
Quote:

"width: expression(this.width > 340 ? 180 : true);"
If an image is over 340, it will be resized to 180.

Please post the code you are using. If the script is not working, lets see what you have it set to.

I had the same problem, even small images were getting resized. All I did was change that code to

Quote:

"width: expression(this.width > 640 ? 640 : true);"
and everything is working good.

Here is a thread on my site - http://www.survivalistboards.com/showthread.php?t=11115

The images are at photobucket, are 640X480 and are not being resized.

MissKalunji 04-24-2008 04:05 PM

What his trying to say is to resize but not to include the Signature image to the slideshow...some of my users have images over 350 they get resized fine but when you click highslide and next you will see each of those images...and he would want to exclude those from the slideshow

NoKawaii 04-24-2008 08:06 PM

Installed resize works fine, but a got an error even on moin page where is nothing to resize..
Error: 'hs' is undefined
Code: 0

Line ***
----------------------------------------------------------------------------
on line ***
we got:
Code:

        <script type="text/javascript">
                hs.allowSizeReduction = true;
        </script>

<script type="text/javascript">
                hs.easing = 'easeInBack';
        </script>
        <script type="text/javascript">
                hs.allowSizeReduction = true;
        </script>

Same function twice ? Can someone explane me this error and how to fix it ?!

MissKalunji 04-24-2008 08:14 PM

I take that your main page is Vbadvanced right?

Try this : https://vborg.vbsupport.ru/showpost....&postcount=108

NoKawaii 04-24-2008 08:30 PM

MissKalunji
By the way resize still doesnt work in Opera (9.27)
Screen1http://img90.imageshack.us/img90/320...en01jl3.th.jpg
Screen2http://img90.imageshack.us/img90/266...en02na7.th.jpg
Screen3http://img90.imageshack.us/img90/270...en03nk6.th.jpg

MissKalunji 04-24-2008 08:45 PM

can you pm me ur url?

i know that error is cause ur missing the script

Magnumutz 04-25-2008 05:20 AM

Ok, here's my code:
Code:

        /* Start Image RESIZE */ 

        $navigator_user_agent = ( isset( $_SERVER['HTTP_USER_AGENT'] ) ) ? strtolower( $_SERVER['HTTP_USER_AGENT'] ) : ''; 
    if (stristr($navigator_user_agent, "msie")) { 
        return '<a href="' .  $link . '" class="highslide" onclick="return hs.expand(this)" ><img src="' .  $link . '" border="0" alt="" style="width: expression(this.width > 640 ? 400 : true);" /></a>'; 
    } else { 
        return '<a href="' .  $link . '" class="highslide" onclick="return hs.expand(this)" ><img src="' .  $link . '" border="0" alt="" style="max-width: 800px;" /></a>'; 
    }   
/* End Image RESIZE */

As you can see the code is fine... but as MissKalunji said, i DON'T want small pictures to get into the resizer's way. I want them to be ignored by it... is it possible?


All times are GMT. The time now is 06:51 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.01754 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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