vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Add-On Releases - Lightbox/thickbox for attachment on CMPS module (https://vborg.vbsupport.ru/showthread.php?t=160314)

rapidphim 10-14-2007 10:00 PM

Lightbox/thickbox for attachment on CMPS module
 
This is my first add-on ever for vBulletin. Not sure if anyone ever posted this but here is the purpose of this add-on.

In order to have this add-on, you first need:

1/ vBadvance CMPS
2/ 3.6.x - Attachments with alternating left/right images by Glorify.
3/ Adding Lightbox to Attachment thumbs by imranbaig.

DEMO

Ok, here is how it works

1/ Go to your admincp, select your style, All style options, headinclude and put the below code at the end
Code:

<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />

2/ In the same style, go to Edit Template, vBadvanced CMPS Tempates, adv_portal_newsbits_attach_thumb, add on the red highlight item into your current code
Quote:

<a rel="lightbox" href="$vboptions[bburl]/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>><img src="$vboptions[bburl]/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1&amp;d=$attachment[thumbnail_dateline]" class="thumbnail" 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;
3/ Download, unzip and upload the files from this link:
https://vborg.vbsupport.ru/showthread.php?t=123235
Please keep the folders intact.

And that's it and thanks for reading this.

yoyoyoyo 10-15-2007 05:50 PM

cool idea - thanks for sharing. Would you happen to have a screenshot of such a setup? I can imagine how it might look, but would like to see an example as well.

rapidphim 10-15-2007 06:41 PM

What set up that you'd like to see the screenshot?

yoyoyoyo 10-15-2007 08:02 PM

I would like to see a screenshot of an example cmps module

rapidphim 10-15-2007 08:12 PM

Set up of how it laid out on my site? sorry, I'm not quite understand the detail of your question.

yoyoyoyo 10-15-2007 09:04 PM

nevermind


All times are GMT. The time now is 06:07 AM.

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.01101 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)bbcode_quote_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