Back to vBulletin 3.7 Template Modifications

Use Highslide in Attachment Thumbnails
Mod Version: 1.00, by luki

This modification is in the archives.
vB Version: 3.7.4 Rating: (0 vote - 0 average) Installs: 8
Released: 03 Dec 2008 Last Update: Never Downloads: 3
Not Supported Template Edits Additional Files Re-usable Code Translations  

Download newest version of HS from: http://highslide.com/download.php.
Upload highslide directory to your Forums root.

Template edits:

Postbit Templates >> postbit_attachmentthumbnail
FIND
HTML Code:
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>>
REPLACE WITH
HTML Code:
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if> class="highslide" onclick="return hs.expand(this)">
Open headinclude, somewhere add:
HTML Code:
<script type="text/javascript" src="$vbpoptions[bbdir]/highslide/highslide.js"></script>
<link rel="stylesheet" type="text/css" href="$vbpoptions[bbdir]/highslide/highslide.css" />
<script type="text/javascript">
	hs.graphicsDir = 'highslide/graphics/';
	hs.wrapperClassName = 'wide-border';
</script>
Code depends on which type of outfit etc you want to have. After this modification you get working setup.

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024