Quote:
Originally Posted by testbot
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