Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
Use Highslide in Attachment Thumbnails [ and in line with attach bbcode ] Details »»
Use Highslide in Attachment Thumbnails [ and in line with attach bbcode ]
Version: 1.00, by xplan2007 xplan2007 is offline
Developer Last Online: Mar 2012 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.8.4 Rating:
Released: 12-08-2009 Last Update: Never Installs: 19
Template Edits
Re-useable Code Code Changes  
No support by the author.

First Download newest version of HS from: http://highslide.com/download.php.
Upload highslide directory to your Forums root. ( I use Highslide 4.1.8 )

For attachment

Template edits:

Postbit Templates >> postbit_attachmentthumbnail
Find this
HTML Code:
<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>
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="highslide/highslide.js"></script>
<link rel="stylesheet" type="text/css" href="highslide/highslide.css" />

<script type="text/javascript">
	hs.graphicsDir = 'highslide/graphics/';
	hs.wrapperClassName = 'wide-border';
</script>
---------------------------------------------------------------
For Attac in line [attach] bbcode in post

open \include\class_bbcode.php

line 1905
Find

PHP Code:
rel=\"Lightbox_" $this->containerid "\" id=\"attachment\\1\" 
Replace with
PHP Code:
class=\"highslide\" onclick=\"return hs.expand(this)\" 
For Highslide css you need to be edit by yourself

Credit thank to luki who is make this first ( his modification for 3.7.4 )

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-11-2009, 11:45 AM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is really awesome!! The only problem I have is the last PHP code edit. When I do this I get a line error and just a black screen. Can you please advise on this!!

Thank you!
Reply With Quote
  #3  
Old 12-13-2009, 05:52 PM
xplan2007 xplan2007 is offline
 
Join Date: Feb 2008
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

be careful when edit php code , it's very sensitive
please show your code
Reply With Quote
  #4  
Old 12-23-2009, 03:55 AM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is my code in the php code: rel=\"Lightbox_" . $this->containerid . "\" id=\"attachment\\1\"

I see a backslash in there that yours don't have!

I get this error when doing the php code:

Parse error: syntax error, unexpected T_STRING in /home/thebull/public_html/forums/includes/class_bbcode.php on line 1905
Reply With Quote
  #5  
Old 12-23-2009, 04:34 AM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I figured this out. You have to find this code (with the backslash after the rel=):

PHP Code:
rel=\"Lightbox_" $this->containerid "" id="attachment\\1" 
and replace it with this one:

PHP Code:
class=\"highslide" onclick="return hs.expand(this)" 
add a backslash after class=

Then it works great!!
Reply With Quote
  #6  
Old 10-10-2010, 10:26 PM
angeljs's Avatar
angeljs angeljs is offline
 
Join Date: Aug 2005
Location: UK
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great...just what I've been looking for
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:56 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06937 seconds
  • Memory Usage 2,268KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_html
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete