vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   shadowbox: a few questions. (https://vborg.vbsupport.ru/showthread.php?t=211537)

down.low 04-18-2009 04:48 AM

shadowbox: a few questions.
 
If you don't know what Shadowbox is,.- it's like lightbox but I think it's better,.- I know there's a mod here that has lightbox included with several other things into one package so I figured someone here may be messing around with shadowbox.

Anyways, I've implemented shadowbox into my 3.8.1 vB and have been using BB code,.- working around html input on a forum post,.- and have been shadowboxing youtube video's, flv's, wmp's, .jpg's and such perfectly,.-

If anyone has vBulletin with shadowbox on it

or,...

know a few things about javascript or shadowbox itself,..

I'm wondering if there is a way to shadow certain links automatically instead of haveing to BBCode each link seperately? The shadowbox website is really bland/empty and the forum isn't really supportive (I don't think the author knows to much more then a couple of basic commands and the setup process)..

cliffhanger 07-29-2009 05:15 AM

I would also like to know if anyone has a shadowbox plug-in.....for automatically embedding the code, try out the Auto Media Embedding mod here at these forums

https://vborg.vbsupport.ru/showthrea...ight=embedding

Anyone know the shadowbox code tow ork with the Auto Media Embedding mod?

testbot 07-29-2009 03:08 PM

Quote:

Originally Posted by down.low (Post 1793730)
If you don't know what Shadowbox is,.- it's like lightbox but I think it's better,.- I know there's a mod here that has lightbox included with several other things into one package so I figured someone here may be messing around with shadowbox.


Anyways, I've implemented shadowbox into my 3.8.1 vB and have been using BB code,.- working around html input on a forum post,.- and have been shadowboxing youtube video's, flv's, wmp's, .jpg's and such perfectly,.-


If anyone has vBulletin with shadowbox on it

or,...

know a few things about javascript or shadowbox itself,..


I'm wondering if there is a way to shadow certain links automatically instead of haveing to BBCode each link seperately? The shadowbox website is really bland/empty and the forum isn't really supportive (I don't think the author knows to much more then a couple of basic commands and the setup process)..

all links or certain links? how would the certain links be defined?

down.low 08-02-2009 01:49 AM

Quote:

Originally Posted by testbot (Post 1857895)
all links or certain links? how would the certain links be defined?

Right now I have to BB code whichever links I want to be shadowed, I would rather it be where all links that are posted are automatically shadowed. The links are defined by the ending extensions, ex. (http://www.spam.com/video.avi),..

--------------- Added 02 Aug 2009 at 00:54 ---------------

Quote:

Originally Posted by cliffhanger
Hello,

I'm just wondering if you can help provide the code on how you were able to get shadowbox to work with vbulletin. Thanks so much!

Tim

1. Download "shadowbox-build-3.0b" from (HERE) and rename the main folder to "shadowbox".



2. You'll also need to download "JW FLV Player" from (HERE) and rename the main folder to "mediaplayer" and put the "mediaplayer" folder into "shadowbox/libraries" folder.



3. Upload the "shadowbox" folder to your forum, usually:


4. In your forum go to "AdminCP> Styles & Templates> Style Manager>", and open your "header" template,..

Paste the following at the very top:
Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">

<link rel="stylesheet" type="text/css" href="http://www.yoursite.com/forums/shadowbox/shadowbox.css">
<script type="text/javascript" src="http://www.yoursite.com/forums/shadowbox/shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init({
    players:    ["qt", "swf", "flv", "wmp", "iframe", "html"]
});
</script>



5. In your forum go to "AdminCP> Custom BB Codes> Add New BB Code>", (You'll be creating a total of 3 new BB Codes)....

(1.)
Title: SB Picture
BB Code Tag Name: sbp
Replacement:
Code:

<a href="{param}" rel="shadowbox">{param}</a>
Example: [sbp]Image URL[/sbp]

Use {Option}: No
Button Image (Optional): You'll have to provide your own.
Remove tag if empty: Yes
Disable BB Code within this BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes



(2.)
Title: SB Video
BB Code Tag Name: sbv
Replacement:
Code:

<a href="{param}" rel="shadowbox;height=768;width=1024">{param}</a>
Example: [sbv]http://www.youtube.com/v/MZzJGM661D0[/sbv]

Use {Option}: No
Button Image (Optional): You'll have to provide your own.
Remove tag if empty: Yes
Disable BB Code within this BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes



(3.)
Title: SB Webpage
BB Code Tag Name: sbw
Replacement:
Code:

<a href="{param}" rel="shadowbox;height=768;width=1024">{param}</a>
Example: [sbw]http://www.google.com/[/sbw]

Use {Option}: No
Button Image (Optional): You'll have to provide your own.
Remove tag if empty: Yes
Disable BB Code within this BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes

thunderclap82 08-06-2010 01:23 AM

I'm trying to get this working in vB 4... more specifically in CMS Articles. I'm having a little trouble though. Anyone get this working?


All times are GMT. The time now is 02:56 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.01148 seconds
  • Memory Usage 1,736KB
  • 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
  • (5)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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