vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Mini Mods - highslide integration with vB attachments - lightbox alternative - inline too. (https://vborg.vbsupport.ru/showthread.php?t=139167)

Smoothie 02-14-2007 12:17 PM

You just copy past the highslide.js file into the box, click pack, save as packed.js and copy back into highslide.js?

M-Tuning 02-14-2007 12:44 PM

where can i get highslide.js, the site you posted isn't online

M-Tuning 02-14-2007 12:57 PM

Ok thanx, will do

edit, Clicks Install

Gizmo999 02-15-2007 08:53 AM

I want to add the centred image, I've only added the basic integration and the optional "attachments" page addition - no file edits parts of the script.

is this the only place I need to amend the code and is this correct?

Step 7 Edit postbit_attachmentthumbnail template

Code:

<a id="att_$attachment[attachmentid]" class="highslide" onclick="return hs.expand(this, { slideshowGroup: '$post[postid]' , align: 'center' })" href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>><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>" /></a>, align: 'center'
I've hasd one user attach an image file using the
Code:

[attach]
tags and the image opens in a new window not using highslide, I don't know why that has happened.

Gizmo999 02-15-2007 09:35 AM

I didn't do the file edits :) inline attachments is off on my board anyway.

Smoothie 02-15-2007 12:49 PM

I believe, but don't quote me, you can change where in the clients browser the viewer appears by editing the highslide.js file. I edited this line and the viewer opens in the center:
Code:

align : 'center', // position in the client (overrides anchor)

sensimilla 02-15-2007 05:34 PM

When I click on the arrows previous and next nothing happens...

Do you have any ideas where did I go wrong ?

TIA

Tralala 02-16-2007 12:13 AM

Brilliant add-on. Absolutely beautiful. Thank you!

/clicks install

Works and looks great... now, how do I make it so my attachments have the original dimension/size label, like so:

https://vborg.vbsupport.ru/external/2007/02/17.jpg

On my current working install I don't get those. Is that a setting in vBulletin, or part of highslide?

Tralala 02-16-2007 12:28 AM

Quote:

Originally Posted by mini2 (Post 1181604)
You could probably do a javascript resize for images over a certain size which would zoom in like this if they didn't fit your max dimensions. Bit like the ncode image resizer (which I use), but different.

No idea how this would be done though!

Maybe one for another day. ;)

Quote:

Originally Posted by hurry (Post 1181983)
Thanks mini2. I also really want your mod and highslide to work with the slideshow feature for all the inline images in my vbulletin posts with img tags. I think already two others have asked you for this so there is popular demand for this feature. In order for my database to not grow too big, I am embedding inline my flickr images in forum posts with img. And I want them to work with your mod and highslide. I really hope this possible. Thanks.

Quote:

Originally Posted by aceofspades (Post 1181582)
Works brilliantly, nominated for MOTM. Just a quick (and probably very stupid) question, without a huge amount of hacking would it be possible to get images within the [img] tag to work the same way, i.e be resized and then be expanded when a user clicks on them?


Just FYI mini2, Spleasure (the coder of ncode) has posted that he's contemplating integrating "lightboxing" as a choice for enlarging pics resized by his add-on. Seems like these two are a match made in vBulletin mod heaven!

Count me in as another person who'd love to see that happen. :)

Smoothie 02-16-2007 12:51 AM

Quote:

Originally Posted by Tralala (Post 1183510)
Brilliant add-on. Absolutely beautiful. Thank you!

/clicks install

Works and looks great... now, how do I make it so my attachments have the original dimension/size label, like so:

https://vborg.vbsupport.ru/external/2007/02/17.jpg

On my current working install I don't get those. Is that a setting in vBulletin, or part of highslide?

vB options-> message attachment options. Beware, when you change it, you will need to rebuild attachments, under maintenance. Intensive if you got lots of attachments.


All times are GMT. The time now is 03:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01351 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete