Log in

View Full Version : shadowbox: a few questions.


down.low
04-18-2009, 04:48 AM
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/showthread.php?t=189267&highlight=embedding

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

testbot
07-29-2009, 03:08 PM
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
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 ---------------

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 (http://www.shadowbox-js.com/download.html)) and rename the main folder to "shadowbox".



2. You'll also need to download "JW FLV Player" from (HERE (http://www.longtailvideo.com/players/jw-flv-player/)) 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:
http://www.yoursite.com/forums/



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

Paste the following at the very top:
<!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: <a href="{param}" rel="shadowbox">{param}</a>Example: Image URL

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: <a href="{param}" rel="shadowbox;height=768;width=1024">{param}</a>Example: http://www.youtube.com/v/MZzJGM661D0

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: <a href="{param}" rel="shadowbox;height=768;width=1024">{param}</a> Example: http://www.google.com/

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?