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
  #402  
Old 03-15-2009, 12:39 AM
wapsilog wapsilog is offline
 
Join Date: May 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

super cool... awesome mod...
best ever...
Reply With Quote
  #403  
Old 03-15-2009, 04:59 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me uninstalled due to xhtml errors in the validation and IE throwing errors
Reply With Quote
  #404  
Old 03-15-2009, 05:55 PM
nikosb nikosb is offline
 
Join Date: Dec 2008
Location: Greece
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedHacker View Post
With BBCode Hidden are problem the HighSlide..!!!Why....?
i have the same problem
Reply With Quote
  #405  
Old 03-15-2009, 06:03 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

linked images didnt work either
Reply With Quote
  #406  
Old 03-16-2009, 10:32 PM
SEW810's Avatar
SEW810 SEW810 is offline
 
Join Date: Mar 2008
Location: M?xico City
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Linked images like imageshack sometimes are NOT resized by the MOD.
Another thing, my forum goes a little bit slow when the mod is On. :'( Pretty bad.

Edited:

Almost forget... usin' IE here!!!
Reply With Quote
  #407  
Old 03-20-2009, 09:35 PM
Phantasmagoric Phantasmagoric is offline
 
Join Date: Feb 2009
Location: United Kingdom
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MissKalunji View Post
I found it

in class_bbcode
Code:
$replace[] = "<a href=\"{$this->registry->options['bburl']}/attachment.php?{$this->registry->session->vars['sessionurl']}attachmentid=\\1&amp;d=$attachment[dateline]\" $addtarget><img src=\"{$this->registry->options['bburl']}/attachment.php?{$this->registry->session->vars['sessionurl']}attachmentid=\\1&amp;thumb=1&amp;d=$attachment[thumbnail_dateline]\" class=\"thumbnail\" border=\"0\" alt=\""
Search for

and replace it with :

Code:
$replace[] = "<a href=\"{$this->registry->options['bburl']}/attachment.php?{$this->registry->session->vars['sessionurl']}attachmentid=\\1&amp;d=$attachment[dateline]\" $addtarget class=\"highslide\" onclick=\"return hs.expand(this)\"><img src=\"{$this->registry->options['bburl']}/attachment.php?{$this->registry->session->vars['sessionurl']}attachmentid=\\1&amp;thumb=1&amp;d=$attachment[thumbnail_dateline]\" class=\"thumbnail\" border=\"0\" alt=\""
									.
I've put in bold all i added to make it work.

Thanks!
Could ask a question please!
A long shot maybe, would you happen to know how to get that solution to work with 3.8.1, the lightbox that comes with 3.8 has a habit of not displaying attachments at 100% causing the images to be out of focus. This mod is fantastic when handling the img bbcode tags, I'd be over the moon if this mod could handle attached images as well.
Reply With Quote
  #408  
Old 04-01-2009, 07:19 PM
opl opl is offline
 
Join Date: Mar 2009
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well it is Loading and loading picture for years now
No like in demo.
Reply With Quote
  #409  
Old 04-11-2009, 09:54 AM
ABDALWAHID ABDALWAHID is offline
 
Join Date: Aug 2006
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Golzarion View Post
Thanks for update.
Although I have one strange problem when I use this hack on my Persian language ( Right_to _left language ) ! I try to fix it ...

**********
Edit :
**********
If you replace the "hs_headinclude" codes with the code below it will be xhtml valid !
HTML Code:
            <!-- HS Images Resize -->
            <script type="text/javascript">

            <!--
            folder="./highslide/";
            //-->
            </script>
            <script type="text/javascript" language='javascript1.2' src='./highslide/highslide.js'></script>
            <link rel="stylesheet" type="text/css" href="highslide/style.css" />
<script type="text/javascript">
hs.registerOverlay(
    {
        thumbnailId: null,
        overlayId: 'controlbar',
        position: 'top right',
        hideOnMouseOut: true
    }
);
hs.graphicsDir = 'highslide/graphics/';
hs.outlineType = 'rounded-white';
hs.restoreTitle = 'Click to close, use arrow keys for next and previous';
hs.loadingText = 'Loading...';
hs.fullExpandTitle = 'Expand to actual size';
hs.focusTitle = 'Click to bring to front';
hs.loadingTitle = 'Click to cancel';
hs.align = 'center';
hs.easingClose = 'easeInQuad';
hs.expandDuration = Math.max(1, 300);
hs.restoreDuration = Math.max(1, 300);
hs.expandSteps = 20;
hs.restoreSteps = 20;
hs.showCredits = false;
hs.captionId = 'the-caption';
hs.captionSlideSpeed = 0;
hs.allowSizeReduction = false;
hs.dimmingOpacity = 0.7;
hs.dimmingDuration = 100;
hs.spaceForCaption = 50;
</script>
<script type="text/javascript">
        hs.easing = 'easeInBack';
</script>
<script type="text/javascript">
        hs.allowSizeReduction = true;
</script>
<script type="text/javascript">
        hs.easing = 'easeInBack';
</script>
<script type="text/javascript">
        hs.allowSizeReduction = true;
</script>
<script type="text/javascript">
<!--
HSImageResizer.MAXWIDTH = $vboptions[hs_maxwidth];
HSImageResizer.MAXHEIGHT = $vboptions[hs_maxheight];

//-->
</script>
            <!-- / HS Images Resize -->
Author : Please link this code on first post or change the xml file if it is possible.

thanks.

hello can you this update. its not working
Reply With Quote
  #410  
Old 04-21-2009, 07:23 AM
sNator sNator is offline
 
Join Date: Nov 2005
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this supermod.
How can I make this mod work with vBlog?
Reply With Quote
  #411  
Old 04-24-2009, 10:23 AM
firas firas is offline
 
Join Date: Feb 2002
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great hack...too bad it does not work with IE
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:52 AM.


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.05281 seconds
  • Memory Usage 2,326KB
  • 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
  • (1)bbcode_html
  • (3)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