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>
|
Thanks to TheMilkCarton and bjhuang for clear explanations ...
Installed....
I used bjhuang's method and it works fine for attachments that appear at the bottom of a post. :up:
So, to get more advanced and have it work for in-line attachments etc, I assume I have to perform changes to the rest of the templates mentioned?
Regards,
Badger
Edit: BTW, is there a reason I didn't have to do mini2's step 5 and step 6 (headinclude and header templates) and it still works fine? Also, I didn't do step 8 (SHOWTHREAD_SHOWPOST template) and it also works fine (scratching head?)