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)

ry215 03-03-2008 10:00 PM

Resize IMG tag with Highslide!
 
This is small hack and easy to resize large Images in [IMG] tag with using Highslide.

vBulletin Version: 3.6.x, 3.7.x and 3.8.x
File Edits: 0
New Files: Yes
Template Edits: 0
New Templates: 2
New Phrases: 11
Uses Hooks: 7
Setting: 5
Uses Plugins: Yes
Time to install: 1 minute max

New Install:

1) Upload folder highslide in your root folder.

2) Import file XMl via Manage Products ACP >> Plugins & Products >> Manage Products >> [Add/Import Product]


Upgrade from v 2.x.x:


1) Upload folder highslide in your root folder.

2) Import XML file via Manage Products
ACP >> Plugins & Products >> Manage Products >> [Add/Import Product]

Choose YES for Allow Overwrite


Upgrade from v 1.3:

1) Upload folder highslide in your root folder.

2) Reupload file includes/class_bbcode.php.

3) Import XML file via Manage Products
ACP >> Plugins & Products >> Manage Products >> [Add/Import Product]
Choose YES for Allow Overwrite

4) Revert template postbit_attachmentthumbnail.


Options:
ACP >> vBulletin Options >> HS IMG Tag Resize Options


History:
v 1.0 (04-03-2008) - First Released.
v 2.0 (30.08.2008) - Update mod
  • Don?t edit file includes/class_bbcode.php
  • Options for maxwidth and maxheight to resize
v 2.0.1 (05.09.2008) -
Update mod
  • Resize in Signature
v 2.0.2 (04.10.2008) - Update mod
  • Add Resize IMG TAG in Blog Entry
v 2.0.3 (28.10.2008) - Update mod
  • Add option for Signature (Enable/Disable) :D
v 2.0.4 (05.11.2008) - Fixed
  • Don't Resize on Quick Edit
v 2.0.5 (13.12.2008) - Fixed
  • Option for Signature don't work
v 2.1.0 (17.12.2008) - update
  • Update with new Highslide ver 4.0.1
  • Work fine with vBulletin 3.8.x (tested)
v 2.1.0 (20.12.2008) - fixed
  • Just fixed some bugs with IE!


Thank you for using this mod!

That?s all
Have fun! ;)

7lanet 03-04-2008 12:47 AM

thanks

very nice

^_^

mauro1947 03-04-2008 01:47 AM

Very nice mod.
Can you make it "Multilanguage" (i can translate it into Spanish)?
Thanks
Regards!

Brew 03-04-2008 03:40 AM

Seems to work as intended.

However, when editing the code gets some added stuff. It may be something you need to look at.

:)

dj_f16 03-04-2008 06:04 AM

WooooooWwWwW
wonderful work :) thanx ry215, very nice but :D signature pictures is highslide appearing :)

Mike-D 03-04-2008 08:25 AM

That's what I've been looking for. Because I'm a great fan of Highslide I decided to install your great hack and Nominated for MOTM! :up: Thank you very much, Sir ;) -Mike

BTW: Nicky Nguyễn... Whoooaaaa... what a damn nice looking young lady :up: Nominated for GOTM :D

ry215 03-04-2008 08:34 AM

Thanks all :)

RvG2 03-04-2008 08:36 AM

nominated to MOTM also. :)

Opelx 03-04-2008 09:10 AM

Thank you

Playa82 03-04-2008 09:12 AM

very nice, i try that later. thanks in advance

barroca 03-04-2008 01:07 PM

Only to confirm ... works in vb 3.6.8?

I already nominated too :D
All the best
Joao barroca
aka beduino


Quote:

Originally Posted by Mike-D (Post 1456579)
That's what I've been looking for. Because I'm a great fan of Highslide I decided to install your great hack and Nominated for MOTM! :up: Thank you very much, Sir ;) -Mike

BTW: Nicky Nguyễn... Whoooaaaa... what a damn nice looking young lady :up: Nominated for GOTM :D

Quote:

Originally Posted by RvG2 (Post 1456582)
nominated to MOTM also. :)


TWTCommish 03-04-2008 01:14 PM

Most hacks which use Lightbox and Highslide tend to break the inline editing on threads. Does this?

ry215 03-04-2008 01:16 PM

Quote:

Originally Posted by barroca (Post 1456733)
Only to confirm ... works in vb 3.6.8?

I already nominated too :D
All the best
Joao barroca
aka beduino

Thanks! :)

?t?s work well in vbb 3.6.8.

Have fun!

ry215 03-04-2008 01:21 PM

Quote:

Originally Posted by TWTCommish (Post 1456737)
Most hacks which use Lightbox and Highslide tend to break the inline editing on threads. Does this?

I don?t know, but i using this mod for my Forum and without problem, hope you like.

Thanks for your reply! :)

Evolution06 03-04-2008 04:05 PM

This mod is friggen awesome good job!

Martell 03-04-2008 04:22 PM

Thanks! But 2 inquiries in base and
(2 queries for uncached templates)
Uncached templates: hs_resize (1)
Uncached templates: hs_resize_bg (1)

Mike-D 03-04-2008 04:29 PM

Quote:

Originally Posted by barroca (Post 1456733)
Only to confirm ... works in vb 3.6.8?

Yep, without any problems, Sir ;)

Playa82 03-04-2008 05:40 PM

Quote:

Originally Posted by dj_f16 (Post 1456532)
WooooooWwWwW
wonderful work :) thanx ry215, very nice but :D signature pictures is highslide appearing :)

yep, is there a option to turn it off at your sigs ?

RvG2 03-04-2008 06:01 PM

Quote:

Originally Posted by Martell (Post 1456842)
Thanks! But 2 inquiries in base and
(2 queries for uncached templates)
Uncached templates: hs_resize (1)
Uncached templates: hs_resize_bg (1)

kindly find a way to fix this... :)

ry215 03-04-2008 06:23 PM

Quote:

Originally Posted by Martell (Post 1456842)
Thanks! But 2 inquiries in base and
(2 queries for uncached templates)
Uncached templates: hs_resize (1)
Uncached templates: hs_resize_bg (1)

Done, i have fixed. Have fun! :D

vietfancy 03-04-2008 07:07 PM

wow....

Good Job anh ban. Minh dang luc tim cai nay.

Martell 03-04-2008 07:31 PM

ry215,
Uncached templates: hs_resize (1)
Uncached templates: hs_resize_bg (1) fixed.

But has appeared Uncached templates: hs_show (1) :confused:

ry215 03-04-2008 07:55 PM

Quote:

Originally Posted by Martell (Post 1456987)
ry215,
Uncached templates: hs_resize (1)
Uncached templates: hs_resize_bg (1) fixed.

But has appeared Uncached templates: hs_show (1) :confused:

No Sir, that?s Script and Style added to Temp headinclude for Show HS. Sorry for my Eng.

ayam 03-05-2008 04:31 AM

everytime i'm try to install highslide mod, nothing happening but just have 'loading' on the pictures...how can i fixed this problem? i;m heard that highslide can't work with vbseo..please can someone give me a solution to this matter?

Playa82 03-05-2008 04:31 AM

Quote:

Originally Posted by Playa82 (Post 1456901)
yep, is there a option to turn it off at your sigs ?

^^^^ ???

/* 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 */

^^^^ do i have to edit both numbers for my width ?

ry215 03-05-2008 05:44 AM

Quote:

Originally Posted by Playa82 (Post 1457257)
^^^^ ???

^^^^ do i have to edit both numbers for my width ?

Yeah! if you want, no problem ^_^

ry215 03-05-2008 05:48 AM

Quote:

Originally Posted by ayam (Post 1457256)
everytime i'm try to install highslide mod, nothing happening but just have 'loading' on the pictures...how can i fixed this problem? i;m heard that highslide can't work with vbseo..please can someone give me a solution to this matter?

I using highslide for my Forum without problem. This mod work with vbseo, my Forum using vbseo. Look at Live Demo :)

ayam 03-05-2008 06:15 AM

ok thanks..i'm try to install back..really hope its working..

furst 03-05-2008 07:14 AM

Is it supposed to apply the highslide to really small pictures too?

Even my tiniest pictures are effected by it, but not resized.

It's kinda annoying if you can't have it ignore small pictures.

Maybe I'm doing something wrong.

Aligator21 03-05-2008 08:22 AM

i get the following error

XML Error: XML_WAR_UNKNOWN_VERSION at Line 229

in the 229 line the only think exist is "</product>"

Aligator21 03-05-2008 08:27 AM

fixed it has an error in the first line of the product

Playa82 03-05-2008 08:46 AM

Quote:

Originally Posted by furst (Post 1457332)
Is it supposed to apply the highslide to really small pictures too?

Even my tiniest pictures are effected by it, but not resized.

It's kinda annoying if you can't have it ignore small pictures.

Maybe I'm doing something wrong.


/* 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 */

^^^^ EDIT THIS NUMBERS ^^^^

That will fix your problem

Aligator21 03-05-2008 09:11 AM

I discovered one think.

If an image has a link, doesnt not open the link, its opening the image with this effect :(
is there any solution?

Alex_Volovenko 03-05-2008 04:41 PM

Nominated for MOTM! Thank you very much

ry215 03-05-2008 08:40 PM

Quote:

Originally Posted by Alex_Volovenko (Post 1457780)
Nominated for MOTM! Thank you very much

Thank a lot! Hope you like this Mod.;)

CrashPush 03-06-2008 01:16 AM

This hack is great but how do I exclude signatures from using highslide. I edited the image sizes and it still does not exclude signatures.

What sizes have to be put for it to work correctly?

Playa82 03-06-2008 06:55 AM

Quote:

Originally Posted by CrashPush (Post 1458083)
This hack is great but how do I exclude signatures from using highslide. I edited the image sizes and it still does not exclude signatures.

What sizes have to be put for it to work correctly?

Try this:

https://vborg.vbsupport.ru/showpost....5&postcount=32

Playa82 03-06-2008 07:03 AM

once again for everybody:

/* 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 */

----------------------------------------------------------------------------------------------------

(this.width > 340 ? 180 : true);

this width 340 ? means max size before the hack make it small to this size ? 180

u have to edit both numbers !!!

style="max-width: 430px;

here u have to add ur max size again !!!

i hope my english is not that bad ;-)

anestetic 03-06-2008 11:30 AM

MOVE don't worked my forum

CrashPush 03-06-2008 11:36 AM

Quote:

Originally Posted by Playa82 (Post 1458275)
once again for everybody:

/* 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 */

----------------------------------------------------------------------------------------------------

(this.width > 340 ? 180 : true);

this width 340 ? means max size before the hack make it small to this size ? 180

u have to edit both numbers !!!

style="max-width: 430px;

here u have to add ur max size again !!!

i hope my english is not that bad ;-)

Your English is a little hard to understand. You're not explaining what exactly has to be entered in the red. I entered all kinds of sizes and it doesn't work. Give an example of what number we have to input.

If you were doing it for your forum, what would you enter in those fields?


All times are GMT. The time now is 09:12 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.01637 seconds
  • Memory Usage 1,836KB
  • 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
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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