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)

Magnumutz 04-21-2008 01:56 PM

Ok, take a look here: http://www.arcademania.ro/showthread.php?t=149
It gives that javascript thing to all the sigs and even a smilie in someone's signature.

ry215 04-21-2008 02:07 PM

Quote:

Originally Posted by Magnumutz (Post 1495807)
Ok, take a look here: http://www.arcademania.ro/showthread.php?t=149
It gives that javascript thing to all the sigs and even a smilie in someone's signature.

This Mod for IMG tag: [IMG]url[/IMG]

rapidphim 04-21-2008 02:39 PM

Yes, I was first thought the mod was not working when I attached an image. Then, I later realized it was designed for img bbcode tag.

Take a look here for yourself http://www.viet-tube.com/showthread.php?p=7#post7

Magnumutz 04-21-2008 03:43 PM

Quote:

Originally Posted by ry215 (Post 1495818)
This Mod for IMG tag: [IMG]url[/IMG]

Yes dude, that's just an example link, look at the signature pics of the posters... even tiny pictures get "resized".
That shouldn't be happening, right?

ry215 04-21-2008 03:55 PM

@Magnumutz: if you get picture in the [IMG] tag , then this Mod works. Thanks!

MissKalunji 04-21-2008 03:56 PM

what his saying that he doesn't want Small pictures to use high slide

nirvana43 04-21-2008 04:42 PM

voted for mod of the month!!! wow man honestly telling this is some real cracking stuff i came across!!!! thanks a million bro! :)

Magnumutz 04-21-2008 05:39 PM

Quote:

Originally Posted by MissKalunji (Post 1495897)
what his saying that he doesn't want Small pictures to use high slide

Yeah, that's exactly what i'm trying to say.
Can this be modified or set to the limit i want?

MissKalunji 04-21-2008 06:56 PM

Quote:

Originally Posted by Magnumutz (Post 1495989)
Yeah, that's exactly what i'm trying to say.
Can this be modified or set to the limit i want?

i suppose a simple code would fix that but i wouldn't know :-/ sorry

rapidphim 04-21-2008 07:07 PM

He already provided you the code and you can manipulate the size at your liking.
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 > 340 ? 180 : true);" /></a>'; 
} else { 
    return '<a href="' .  $link . '" class="highslide" onclick="return hs.expand(this)" ><img src="' .  $link . '" border="0" alt="" style="max-width: 430px;" /></a>'; 
}   
/* End Image RESIZE */


Magnumutz 04-21-2008 07:15 PM

No, that's the maximum size to which a picture should get expanded by default.

Pipe Hitter 04-21-2008 10:59 PM

The mod is working beautifully on my site with one exception.

Some of my images are using some weird redirect path, the images using this are not working, they show as loading but do nothing. Where is this coming from and what can I do to change/fix it?

Example:
PHP Code:

http://www.registerofmerit.com/forums/redirect-to/?redirect=http:/www.ironlinekennels.com/Page_27_Norrod/IMAG0010.JPG 


Pipe Hitter 04-21-2008 11:48 PM

Quote:

Originally Posted by Pipe Hitter (Post 1496190)
The mod is working beautifully on my site with one exception.

Some of my images are using some weird redirect path, the images using this are not working, they show as loading but do nothing. Where is this coming from and what can I do to change/fix it?

Example:
PHP Code:

http://www.registerofmerit.com/forums/redirect-to/?redirect=http:/www.ironlinekennels.com/Page_27_Norrod/IMAG0010.JPG 


*FIXED*

It was my VBSEO

Works like a champ now!

No problem with images in signatures. If there is I haven't noticed yet.

notrious 04-22-2008 01:08 AM

.. Getting this error..

Vbulletin Version: 3.6.8

every thing seems fine ... but browse scrolling bar ... is stat .

any help ...

nirvana43 04-22-2008 03:38 AM

Quote:

Originally Posted by notrious (Post 1496256)
.. Getting this error..


Vbulletin Version: 3.6.8

every thing seems fine ... but browse scrolling bar ... is stat .


any help ...

can you please mention more details about your error?

anoob 04-22-2008 09:45 AM

I am confused, I read here where it says it works in 3.6.8 and I read elsewhere it says you need 3.7 Which is it?

I ask, because I have 3.6.8 and tried installing it, and although it works, the scroll bar on my browser stopped working, along with you can not use your mouse to highlight text anymore.

I've temporarily un-installed this mod til I figure this out. Any thoughts?

Quote:

Originally Posted by ry215 (Post 1456738)
Thanks! :)

?t?s work well in vbb 3.6.8.

Have fun!


Magnumutz 04-23-2008 04:44 AM

Ok, so will it be fixed? I really don't like small images to be "resized".

Magnumutz 04-24-2008 03:11 AM

Bump??

rapidphim 04-24-2008 03:43 AM

never mind

MrD 04-24-2008 09:37 AM

Hi,
vb3.7 have highslide on board.
Is there any option, that the onboard Higslide are using for resizing?

Sorry for my Bad English.

In german:
VB 3.7 hat ja von Haus aus highslide.
Gibt es die Möglichkeit, dieses für den Resizer zu verwenden?

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?

nirvana43 04-26-2008 07:13 AM

hey there...
can you tell me whats causing this :
http://validator.w3.org/check?uri=ht...Inline&group=0

Magnumutz 04-27-2008 09:08 PM

Any news on my problem?

Brew 05-01-2008 02:23 PM

When installing the Product I get the following error:

XML Error: XML_WAR_UNKNOWN_VERSION at Line 229

Any idea what to do?

Thanks!

KHALIK 05-01-2008 08:19 PM

Does this work with 3.7.0 gold ?

any one got this working on the latest gold version ?

MissKalunji 05-01-2008 09:36 PM

i have it working on gold

adiboy.net 05-01-2008 10:42 PM

I got a problem. It resized images in the signature too!

KHALIK 05-02-2008 01:17 AM

installed :)

tintructo 05-02-2008 02:07 AM

Quote:

Originally Posted by adiboy.net (Post 1505098)
I got a problem. It resized images in the signature too!

i don't want this to happen either, is there any way to disable highlight in signatures ?

also, the .gif images aren't animated anymore

edit: what i'd like to know too, is if there is a way to allow the links on the images, maybe adding "go url" in the highlight box or something ?

alvin_mx 05-02-2008 03:19 PM

Quote:

Originally Posted by kevcj (Post 1493386)
Works fine, see live demo - http://www.survivalistboards.com/showthread.php?t=11115

I installed RC3 - 3 days ago and this mod yesterday, everything is working fine.

========EDIT=========

Users with IE 7 are complaining that they get an error after the last image. The error is that it can not open the thread.

Here is a screen print of the image. My site is using VB 3.7 RC3.

http://img88.imageshack.us/img88/883...messagekz6.jpg

Same error for me... and i am the Admin... i have to REFRESH the page some fix?

Quote:

Originally Posted by adiboy.net (Post 1505098)
I got a problem. It resized images in the signature too!

LOL read the others post in this thread :D

beheshtnet 05-02-2008 06:33 PM

thanx , very nice but


All times are GMT. The time now is 06:55 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.01731 seconds
  • Memory Usage 1,832KB
  • 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
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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