Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Resize IMG tag with Highslide! Details »»
Resize IMG tag with Highslide!
Mod Version: 2.1.1, by ry215 (Coder/Designer) ry215 is offline
Developer Last Online: May 2013 I like it Show Printable Version Email this Page

vB Version: 3.7.x Rating: (96 votes - 4.33 average) Installs: 475
Released: 04 Mar 2008 Last Update: 19 Dec 2008 Downloads: 5813
Not Supported Uses Plugins Auto-Template Additional Files  

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)
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!

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	hs_demo.PNG
Views:	2124
Size:	491.5 KB
ID:	90741Click image for larger version

Name:	acp_demo.png
Views:	1373
Size:	58.8 KB
ID:	90742

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
vBgallery - vBulletin Highslide integration Sakera vBulletin 3.6 Add-ons 24 21 Sep 2008 14:18

  #31  
Old 05 Mar 2008, 09:27
Aligator21 Aligator21 is offline
 
Join Date: Sep 2005
fixed it has an error in the first line of the product
__________________
http://www.online-games.gr
Reply With Quote
  #32  
Old 05 Mar 2008, 09:46
Playa82 Playa82 is offline
 
Join Date: Mar 2006
Originally Posted by furst View Post
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
Reply With Quote
  #33  
Old 05 Mar 2008, 10:11
Aligator21 Aligator21 is offline
 
Join Date: Sep 2005
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?
__________________
http://www.online-games.gr
Reply With Quote
  #34  
Old 05 Mar 2008, 17:41
Alex_Volovenko Alex_Volovenko is offline
 
Join Date: Jul 2007
Nominated for MOTM! Thank you very much
Reply With Quote
  #35  
Old 05 Mar 2008, 21:40
ry215's Avatar
ry215 ry215 is offline
 
Join Date: May 2006
Real name: Nelson
Originally Posted by Alex_Volovenko View Post
Nominated for MOTM! Thank you very much
Thank a lot! Hope you like this Mod.
__________________
My Mods & Styles

Contace me now for more details!
Reply With Quote
  #36  
Old 06 Mar 2008, 02:16
CrashPush's Avatar
CrashPush CrashPush is offline
 
Join Date: Feb 2007
Real name: Harry
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?
Reply With Quote
  #37  
Old 06 Mar 2008, 07:55
Playa82 Playa82 is offline
 
Join Date: Mar 2006
Originally Posted by CrashPush View Post
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:

http://www.vbulletin.org/forum/showp...5&postcount=32
Reply With Quote
  #38  
Old 06 Mar 2008, 08:03
Playa82 Playa82 is offline
 
Join Date: Mar 2006
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 ;-)
Reply With Quote
  #39  
Old 06 Mar 2008, 12:30
anestetic anestetic is offline
 
Join Date: Mar 2007
MOVE don't worked my forum
Reply With Quote
  #40  
Old 06 Mar 2008, 12:36
CrashPush's Avatar
CrashPush CrashPush is offline
 
Join Date: Feb 2007
Real name: Harry
Originally Posted by Playa82 View Post
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?
Reply With Quote
  #41  
Old 06 Mar 2008, 12:49
Playa82 Playa82 is offline
 
Join Date: Mar 2006
Originally Posted by CrashPush View Post
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?

This is what i got at my Site:



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


vvvvv Preview here vvvv
http://crackmuzik-gfx-elite.de/site-...ide-added.html
Reply With Quote
  #42  
Old 06 Mar 2008, 23:48
furst furst is offline
 
Join Date: Dec 2005
Originally Posted by Playa82 View Post

This is what i got at my Site:



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


vvvvv Preview here vvvv
http://crackmuzik-gfx-elite.de/site-...ide-added.html
That's the same result that I got.

I don't like how the highslide effects even very small pictures (like the ones in the sigs on your site). I want it to leave small pictures alone.

I'm using Firefox, BTW.
Reply With Quote
  #43  
Old 07 Mar 2008, 02:29
beduino's Avatar
beduino beduino is offline
 
Join Date: Dec 2005
Real name: Joao
a little thing ... to fix a problem with vbadvanced I change hs_show template to

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and works fine !
tks
beduino
Reply With Quote
  #44  
Old 07 Mar 2008, 05:17
Playa82 Playa82 is offline
 
Join Date: Mar 2006
Originally Posted by furst View Post
That's the same result that I got.

I don't like how the highslide effects even very small pictures (like the ones in the sigs on your site). I want it to leave small pictures alone.

I'm using Firefox, BTW.

oh, i dunno how to do that. but maybe the creator of this hack...
Reply With Quote
  #45  
Old 07 Mar 2008, 12:41
sensimilla sensimilla is offline
 
Join Date: Dec 2004
Real name: Eric Estrada
Hmmm.. your demo site is down.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 03:39.

Layout Options | Width: Wide Color: