Quote:
Originally Posted by bjhuang
to simplify the installation:
1. download highslide js from http://vikjavev.no/highslide/
2. download this: Attachment 63395
3. put highslide files under your forumroot/highslide/
4. put highslide.css under forumroot/highslide/
5. import product-highslideattach.xml as a product
6. modify template "postbit_attachmentthumbnail",
insert this line to the top:
PHP Code:
<if condition="!$vboptions[highslide_active]">
insert this line to the end:
PHP Code:
<else /> <a id="att_$attachment[attachmentid]" class="highslide" onclick="return hs.expand(this, { slideshowGroup: '$post[postid]' })" href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&thumb=1&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> </if>
|
Saved me a ton of work.. thanks!
Quote:
Originally Posted by dannylin3000
Does this also work for photos retriving from using [img] bbcode from other photos site like Flickr?
|
It doesn't, but that would be really nice.. Sort of a hybrid between this
image resizer and this Highslide mod. Having the Highslide mod kick in once a picture is too large to fit in the postbit would be a nice feature.
Edit: I found that using the highslide.packed.js file makes the loading much faster.. Or so it seems. Any hard evidence?