vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Show Thread Enhancements - Use Highslide in Attachment Thumbnails (https://vborg.vbsupport.ru/showthread.php?t=197901)

luki 12-02-2008 10:00 PM

Use Highslide in Attachment Thumbnails
 
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.

1320Nation 12-04-2008 12:45 AM

Works perfect....Thanks!

BigJohnny 02-27-2009 01:57 AM

nevermind

tlwwolfseye 05-11-2009 09:58 AM

My postbit attachment thumbnail code is the following.

Code:

<if condition="$show['cangetattachment']">
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;d=$attachment[dateline]" rel="Lightbox_$post[postid]" id="attachment$attachment[attachmentid]"<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>
&nbsp;<if condition="$show['br']"><br /><br /></if>
<else />
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;d=$attachment[dateline]" rel="nofollow" id="attach$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="$attachment[filename]" /></a>
&nbsp;<if condition="$show['br']"><br /><br /></if>
</if>

Its different from the one you write above one should replace. So what do I replace in my case now ?

lm3a.net 05-21-2009 07:29 AM

thanks,,

need2fart 10-11-2009 01:40 AM

Thank you for this! I installed. =)


All times are GMT. The time now is 04:48 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.01068 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete