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
  #112  
Old 03-29-2008, 04:56 AM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no biggie thanks for letting me know i never noticed the error since i don't use IE

Quote:
Originally Posted by Tom_S View Post
Was that the old js or the one I uploaded?
the old i didnt upload anything
Reply With Quote
  #113  
Old 03-29-2008, 05:08 AM
Tom_S Tom_S is offline
 
Join Date: Jan 2007
Location: VA Beach
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool. I don't use IE either. I use Firefox. My members pointed it out.
Reply With Quote
  #114  
Old 03-29-2008, 05:36 PM
extremesanity extremesanity is offline
 
Join Date: Dec 2006
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;
d=$attachment[dateline]" class="highslide" onclick="return hs.expand(this)" id="attachment$attachment[attachmentid]">

<img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1&amp;d=$attachment[thumbnail_dateline]" border="0" alt="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]" 4="$attachment[attachmentid]">$vbphrase[image_larger_version_x_y_z]</phrase>" style="width: expression(this.width > 140 ? 80 : true);" />

</a>

&nbsp;<if condition="$show['br']"><br /><br /></if>
What elements of this do I need to add to my picture album templates in order to get the same functionality in user albums?

I already added
Code:
 class="highslide" onclick="return hs.expand(this)"
but that is not enough to get it to work...
Reply With Quote
  #115  
Old 03-30-2008, 12:25 AM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i think you would need the pluging to be activated in the album area (cause righ tnow the plugin is only in showthread)
Reply With Quote
  #116  
Old 03-30-2008, 05:21 AM
extremesanity extremesanity is offline
 
Join Date: Dec 2006
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MissKalunji View Post
i think you would need the pluging to be activated in the album area (cause righ tnow the plugin is only in showthread)
I tried to add the following to the xml file:

Code:
<plugin active="1" executionorder="5">
			<title>HS IMG Tag Resize - HS 2</title>
			<hookname>album_album_picturebit</hookname>
			<phpcode><![CDATA[ // ThaiNgoc MyTu @ GiaiTriViet.De
			$hs_resize_controlbar = '<!-- / start content table -->';
			$vbulletin->templatecache['album_picturebit'] = str_replace($hs_resize_controlbar,$hs_resize_controlbar.fetch_template('hs_resize_controlbar'),$vbulletin->templatecache['album_picturebit']);
			]]></phpcode>
		</plugin>
But it didn't work.

I am starting to have the sneaking suspicion that I have no clue what I am doing.
Reply With Quote
  #117  
Old 03-31-2008, 02:14 AM
furst furst is offline
 
Join Date: Dec 2005
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't think there's any point to use highslide in the albums. It's good for when there's more than one photo to browse through but the albums aren't arranged that way.

The albums need a simple resize mechanism like the one DeviantArt uses. Hopefully once we're into gold we'll see something like that be released.
Reply With Quote
  #118  
Old 04-01-2008, 11:03 AM
macc's Avatar
macc macc is offline
 
Join Date: Feb 2008
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello!

have one problem in user albums pictures... depent which style is used...

http://belaplay.com/vb/libar/album.p...id=5&styleid=8

have you some sugestion or help to use and get picture inside in style ...


have not this hack .. just ask for help

regards

macc
Reply With Quote
  #119  
Old 04-02-2008, 04:22 AM
ten1nch ten1nch is offline
 
Join Date: Jun 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed, and everything is working flawlessly in firefox. I can't say the same for ie, though.

My only problem is the text color is yellow, and nearly transparent. How can I change it to a darker color? Thanks.

Oh, and is there any way to make the original image launch in a new window when resize is clicked?
Reply With Quote
  #120  
Old 04-02-2008, 03:34 PM
TRABZONLUKAPLAN TRABZONLUKAPLAN is offline
 
Join Date: Jul 2007
Location: Trabzon
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its just working with firefox well but it has some slowing problems with other browsers...
Reply With Quote
  #121  
Old 04-03-2008, 10:33 PM
yathyo yathyo is offline
 
Join Date: Aug 2006
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed the plugin but it doesnt add the script required in the header
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 06:47 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.04877 seconds
  • Memory Usage 2,313KB
  • 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
  • (3)bbcode_code
  • (2)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