Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Resize IMG tag with Highslide! Details »»
Resize IMG tag with Highslide!
Version: 2.1.1, by ry215 ry215 is offline
Developer Last Online: May 2022 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.7.x Rating:
Released: 03-03-2008 Last Update: 12-18-2008 Installs: 477
Uses Plugins Auto-Templates
Additional Files  
No support by the author.

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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 03-05-2008, 08:27 AM
Aligator21 Aligator21 is offline
 
Join Date: Sep 2005
Location: Greece
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

fixed it has an error in the first line of the product
Reply With Quote
  #33  
Old 03-05-2008, 08:46 AM
Playa82 Playa82 is offline
 
Join Date: Mar 2006
Location: Germany
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
  #34  
Old 03-05-2008, 09:11 AM
Aligator21 Aligator21 is offline
 
Join Date: Sep 2005
Location: Greece
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #35  
Old 03-05-2008, 04:41 PM
Alex_Volovenko Alex_Volovenko is offline
 
Join Date: Jul 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nominated for MOTM! Thank you very much
Reply With Quote
  #36  
Old 03-05-2008, 08:40 PM
ry215 ry215 is offline
 
Join Date: Apr 2006
Location: Paraguay
Posts: 508
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alex_Volovenko View Post
Nominated for MOTM! Thank you very much
Thank a lot! Hope you like this Mod.
Reply With Quote
  #37  
Old 03-06-2008, 01:16 AM
CrashPush's Avatar
CrashPush CrashPush is offline
 
Join Date: Feb 2007
Location: New York
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #38  
Old 03-06-2008, 06:55 AM
Playa82 Playa82 is offline
 
Join Date: Mar 2006
Location: Germany
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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:

https://vborg.vbsupport.ru/showpost....5&postcount=32
Reply With Quote
  #39  
Old 03-06-2008, 07:03 AM
Playa82 Playa82 is offline
 
Join Date: Mar 2006
Location: Germany
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #40  
Old 03-06-2008, 11:30 AM
anestetic anestetic is offline
 
Join Date: Mar 2007
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

MOVE don't worked my forum
Reply With Quote
  #41  
Old 03-06-2008, 11:36 AM
CrashPush's Avatar
CrashPush CrashPush is offline
 
Join Date: Feb 2007
Location: New York
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10758 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete