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
  #182  
Old 04-24-2008, 11:50 AM
kevcj's Avatar
kevcj kevcj is offline
 
Join Date: Mar 2007
Location: East Texas
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Magnumutz View Post
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.
Reply With Quote
  #183  
Old 04-24-2008, 01:54 PM
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Location: Romania
Posts: 731
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AS i said, that does NOT help.
Here's a screenshot: http://img355.imageshack.us/img355/7...pimage7tj6.jpg
Reply With Quote
  #184  
Old 04-24-2008, 02:05 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #185  
Old 04-24-2008, 03:29 PM
kevcj's Avatar
kevcj kevcj is offline
 
Join Date: Mar 2007
Location: East Texas
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Magnumutz View Post
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.
Reply With Quote
  #186  
Old 04-24-2008, 04:05 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #187  
Old 04-24-2008, 08:06 PM
NoKawaii NoKawaii is offline
 
Join Date: Apr 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?!
Reply With Quote
  #188  
Old 04-24-2008, 08:14 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I take that your main page is Vbadvanced right?

Try this : https://vborg.vbsupport.ru/showpost....&postcount=108
Reply With Quote
  #189  
Old 04-24-2008, 08:30 PM
NoKawaii NoKawaii is offline
 
Join Date: Apr 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

MissKalunji
By the way resize still doesnt work in Opera (9.27)
Screen1
Screen2
Screen3
Reply With Quote
  #190  
Old 04-24-2008, 08:45 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you pm me ur url?

i know that error is cause ur missing the script
Reply With Quote
  #191  
Old 04-25-2008, 05:20 AM
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Location: Romania
Posts: 731
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
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 01:40 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.07864 seconds
  • Memory Usage 2,323KB
  • 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
  • (2)bbcode_code
  • (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
  • (2)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