Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Lightbox/ThickBox works with Inline Editing Details »»
Lightbox/ThickBox works with Inline Editing
Version: 1.00, by redgoals22 redgoals22 is offline
Developer Last Online: Aug 2012 Show Printable Version Email this Page

Version: 3.6.0 Rating:
Released: 09-12-2006 Last Update: Never Installs: 52
 
No support by the author.

Hey all,

Just thought id release this mod which is a fix to the previous lightboxes on vb that break the:

inline quick-edit feature
multi quote

Also the prev lightboxes on here were abit heavy on the size front. this one weighs in at 27kb, and i think it looks nicer anyway.

Demo: Here

Step 1: Download the file attached and upload its contents to your forum root or wherever you want (just remember the path)

Step 2: Modify the template headinclude and add this to the bottom,

Code:
<if condition="THIS_SCRIPT=='showthread' OR THIS_SCRIPT=='showpost'">
<link rel="stylesheet" href="css/thickbox.css" type="text/css" />
</if>
Step 3: Modify the template postbit/postbit_legacy and add this to the very top,

Code:
<if condition="$show['thumbnailattachment']">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/thickbox.js"></script>
</if>
Step 4: Modify the template postbit_attachmentthumbnail and add this to the a href tag,

Code:
rel="gallery-thumbs" class="thickbox"
this may work on previous versions of vb but dont quote me on that as its untested on prev versions.

click install if you find this useful

nJoy.

..........

Update: The CSS file in the package was an old one and it was clashing with postbit_legacy, please use the new css file in the package on the right.

Update 2: This is the final update of this hack, i have removed the scrolling annoyance for larger images, they will display fully on the page. If you want the new update use the second attachment on the right.

Show Your Support

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

Comments
  #52  
Old 09-15-2006, 10:55 PM
Kanustep Kanustep is offline
 
Join Date: Jul 2005
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by redgoals22
you have a problem with your attachments they seem to be taking forever to load, i suspect you are storing your attachments in database? if so i would consider if i was you to move then to filesystem.
Thank you for checking that out. But the settings are right, I have set it to store in filesystem from the beginning.

What else could be?
Reply With Quote
  #53  
Old 09-16-2006, 08:54 AM
redgoals22 redgoals22 is offline
 
Join Date: Feb 2005
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kanustep
Thank you for checking that out. But the settings are right, I have set it to store in filesystem from the beginning.

What else could be?
try re-uploading a copy of your attachment.php file, it looks like vbulletin is not sending the "size" of the attachment back to the browser which is why the image takes forever to load.
Reply With Quote
  #54  
Old 09-16-2006, 11:49 AM
|oR|Greg |oR|Greg is offline
 
Join Date: May 2003
Location: AMACNY.COM
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by redgoals22
can u give a link to a page which contains attachment links for lghtbox?
Sure, this page is the gallery is a members car. I have allowed guests to view full sized images, so you can click any of her thumbs and see it brings you to a full sized picture with a different script.

http://www.amacny.com/vb/vbpicgallery.php?do=view&g=16
Reply With Quote
  #55  
Old 09-16-2006, 12:07 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice!
Reply With Quote
  #56  
Old 09-16-2006, 01:19 PM
redgoals22 redgoals22 is offline
 
Join Date: Feb 2005
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by |oR|Greg
Sure, this page is the gallery is a members car. I have allowed guests to view full sized images, so you can click any of her thumbs and see it brings you to a full sized picture with a different script.

http://www.amacny.com/vb/vbpicgallery.php?do=view&g=16
looks like the javascript files are not loading onto the page, in step 3 change the code to this

Code:
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/thickbox.js"></script>
im not sure where you have put that code (ie which template) but that code needs to present on the page above.
Reply With Quote
  #57  
Old 09-16-2006, 03:29 PM
|oR|Greg |oR|Greg is offline
 
Join Date: May 2003
Location: AMACNY.COM
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That code is already at the top of the vbpicgallery_main template which houses the imagebits template which is where i but the href stuff. I didn't put the rel="gallery-thumbs" though because vBP holds its pics inside the main DB, but separate from vBs attachments.
Reply With Quote
  #58  
Old 09-16-2006, 06:27 PM
redgoals22 redgoals22 is offline
 
Join Date: Feb 2005
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by |oR|Greg
That code is already at the top of the vbpicgallery_main template which houses the imagebits template which is where i but the href stuff. I didn't put the rel="gallery-thumbs" though because vBP holds its pics inside the main DB, but separate from vBs attachments.
i had a look at the source code and it does seem you did put rel="gallery-thumbs" in the attachment link which is gud otherwise it wud totally not work.

you just need to get step 3 sorted so that the .js files are also loaded on the page which they currently are not, this can be done by adding the step3 code to the main template which loads this page http://www.amacny.com/vb/vbpicgallery.php?do=view&g=16 , you would know which template that is. the code in step3 needs to be :

Code:
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/thickbox.js"></script>
Reply With Quote
  #59  
Old 09-16-2006, 11:22 PM
|oR|Greg |oR|Greg is offline
 
Join Date: May 2003
Location: AMACNY.COM
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Found it!!! I was in the wrong template it turns out. I'll make a tutorial based off your hack red, with your permission of course.

The only question I have, how come when an image is too big for the screen, the box comes up but you can't scroll up or down, the image follows you and it sucks... ?
Reply With Quote
  #60  
Old 09-17-2006, 08:00 AM
redgoals22 redgoals22 is offline
 
Join Date: Feb 2005
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by |oR|Greg
Found it!!! I was in the wrong template it turns out. I'll make a tutorial based off your hack red, with your permission of course.

The only question I have, how come when an image is too big for the screen, the box comes up but you can't scroll up or down, the image follows you and it sucks... ?
nice, be my my guest.

check this post for what you want https://vborg.vbsupport.ru/showpost....0&postcount=13 you will have to clear ur cache/refresh the page or rename the js files to see any changes.
Reply With Quote
  #61  
Old 09-17-2006, 08:04 PM
|oR|Greg |oR|Greg is offline
 
Join Date: May 2003
Location: AMACNY.COM
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by redgoals22
nice, be my my guest.

check this post for what you want https://vborg.vbsupport.ru/showpost....0&postcount=13 you will have to clear ur cache/refresh the page or rename the js files to see any changes.
I updated the files, no difference, to see what I mean go here.
http://www.amacny.com/vb/vbpicgallery.php?do=view&g=4
and click on the long picture of my car, you cant scroll past the borders to get the the close/next/prev buttons... the pic follows you.
Reply With Quote
Reply


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 10:23 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.08229 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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
  • (5)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete