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)
-   -   vBLightbox on vBA CMPS portal! (https://vborg.vbsupport.ru/showthread.php?t=144391)

Luky 04-08-2007 10:00 PM

vBLightbox on vBA CMPS portal!
 
NOTE: This is an addon for vBLightbox so it can be used on all pages!
Hey, its really easy! Just 1 template edit and your all set! This works on all pages relating to vB btw!

Find the template: adv_portal

Find:
PHP Code:

<if condition="$show['inlinemod']"><script type="text/javascript" src="clientscript/vbulletin_inlinemod.js"></script></if> 

After add:
PHP Code:

<!-- vBLightbox by jdsinclair for vBA CMPS by Jay -->
<
script type="text/javascript" src="clientscript/prototype.js"></script>
<
script type="text/javascript" src="clientscript/scriptaculous.js?load=effects"></script>
<
script type="text/javascript" src="clientscript/lightbox.js"></script>
<
link rel="stylesheet" href="clientscript/vbulletin_css/lightbox.css" type="text/css" media="screen" />
<!-- 
end of vBLightbox --> 

And your all done!

To add it to other pages, just put that bit of code in the header ;)

Don't forget to upload the /clientscript folder to the same location as your vBA CMPS page!

So if your vBA CMPS page is in /public_html and your vBulletin is in /public_html/vb you should have the /clientscript folder in /public_html/clientscript and /public_html/vb/clientscript

dbirosel 04-10-2007 02:38 AM

Do you have a demo site we can go to, to check it out? :D

ZomgStuff 04-10-2007 03:31 AM

Yes, screenshot please!

Luky 04-10-2007 05:31 AM

Uh, its kinda self explanatory. But my website has it, http://www.alchemist-team.net/

kall 04-10-2007 05:48 AM

2 questions:

1) What 'clientscript folder' are we supposed to upload?
2) Does this require an additional modification to be installed?
2a) If so, please name and link to it

and a comment:

vBACMPS usually pulls the correct path for things by itself, by replacing URLs that match a certain pattern, in certain templates.

Rather than telling everyone to duplicate their /clientscript folder, which (at the very least) increases their Space Used unnecessarily, why not put the CORRECT path in your instructions?

dbirosel 04-10-2007 06:24 AM

Yes, this:

http://www.huddletogether.com/projects/lightbox/

Luky 04-10-2007 12:09 PM

No you dont need that, you just gota install vBLightbox! The client script folder is in it ;)

ezpassage 04-21-2007 01:59 PM

installed and working great. thanks!

Luky 04-29-2007 09:47 AM

No problem, you can add that code to the header of any page to make it work, or you can put it in header_includes or what ever template to make it work on every page ;)


All times are GMT. The time now is 09:57 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.01802 seconds
  • Memory Usage 1,730KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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