dreads
07-21-2008, 10:00 PM
[G4HQ] YouTube Bar {BBCODE}
Not that great at explaining what it does. So here is how it looks
Example of YTube BBCode (http://www.g4hq.com/showthread.php?t=6961)
Basically it allows the user to have his own channel or search in a small strip or bar.
What makes this so great is that its easy to setup
Here is the bbcode layout
Title: ytube
BB Code Name: ytube
Replacement:
<!-- ++Begin BBCode ++ -->
<!--
// Its a google thing
-->
<!--
// Dont touch the codes
-->
<div id="videoBar-bar">
<span style="color:#676767;font-size:11px;margin:10px;padding:4px;" <a href="http://www.g4hq.com">This BBCode was written by G4HQ Forums|Blogs|Games</a></span>
</div>
<!-- Ajax Search Api and Stylesheet
// Note: If you are already using the AJAX Search API, then do not include it
// or its stylesheet again
-->
<script src="http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-vbw"
type="text/javascript"></script>
<style type="text/css">
@import url("http://www.google.com/uds/css/gsearch.css");
</style>
<!-- Video Bar Code and Stylesheet -->
<script type="text/javascript">
window._uds_vbw_donotrepair = true;
</script>
<script src="http://www.google.com/uds/solutions/videobar/gsvideobar.js?mode=new"
type="text/javascript"></script>
<style type="text/css">
@import url("http://www.google.com/uds/solutions/videobar/gsvideobar.css");
</style>
<style type="text/css">
.playerInnerBox_gsvb .player_gsvb {
width : 320px;
height : 260px;
}
</style>
<script type="text/javascript">
function LoadVideoBar() {
var videoBar;
var options = {
largeResultSet : !true,
horizontal : true,
autoExecuteList : {
cycleTime : GSvideoBar.CYCLE_TIME_MEDIUM,
cycleMode : GSvideoBar.CYCLE_MODE_LINEAR,
executeList : ["{param}"]
}
}
videoBar = new GSvideoBar(document.getElementById("videoBar-bar"),
GSvideoBar.PLAYER_ROOT_FLOATING,
options);
}
// arrange for this function to be called during body.onload
// event processing
GSearch.setOnLoadCallback(LoadVideoBar);
</script>
<!-- ++End Video Bar Wizard Generated Code++ -->
Example:
runescape
Description:
YouTube BBCode by G4HQ
Use {option}: No
OPTIONAL
Disable BB Code Within This BB Code: Yes
Again the Code can be seen here (http://www.g4hq.com/showthread.php?t=6961)
Support for any of my mods can be located here (http://www.g4hq.com/forumdisplay.php?f=108)
Authors:
Stephen (http://www.g4hq.com/member.php?u=1908)
h0ly (http://www.g4hq.com/member.php?u=1)
Not that great at explaining what it does. So here is how it looks
Example of YTube BBCode (http://www.g4hq.com/showthread.php?t=6961)
Basically it allows the user to have his own channel or search in a small strip or bar.
What makes this so great is that its easy to setup
Here is the bbcode layout
Title: ytube
BB Code Name: ytube
Replacement:
<!-- ++Begin BBCode ++ -->
<!--
// Its a google thing
-->
<!--
// Dont touch the codes
-->
<div id="videoBar-bar">
<span style="color:#676767;font-size:11px;margin:10px;padding:4px;" <a href="http://www.g4hq.com">This BBCode was written by G4HQ Forums|Blogs|Games</a></span>
</div>
<!-- Ajax Search Api and Stylesheet
// Note: If you are already using the AJAX Search API, then do not include it
// or its stylesheet again
-->
<script src="http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-vbw"
type="text/javascript"></script>
<style type="text/css">
@import url("http://www.google.com/uds/css/gsearch.css");
</style>
<!-- Video Bar Code and Stylesheet -->
<script type="text/javascript">
window._uds_vbw_donotrepair = true;
</script>
<script src="http://www.google.com/uds/solutions/videobar/gsvideobar.js?mode=new"
type="text/javascript"></script>
<style type="text/css">
@import url("http://www.google.com/uds/solutions/videobar/gsvideobar.css");
</style>
<style type="text/css">
.playerInnerBox_gsvb .player_gsvb {
width : 320px;
height : 260px;
}
</style>
<script type="text/javascript">
function LoadVideoBar() {
var videoBar;
var options = {
largeResultSet : !true,
horizontal : true,
autoExecuteList : {
cycleTime : GSvideoBar.CYCLE_TIME_MEDIUM,
cycleMode : GSvideoBar.CYCLE_MODE_LINEAR,
executeList : ["{param}"]
}
}
videoBar = new GSvideoBar(document.getElementById("videoBar-bar"),
GSvideoBar.PLAYER_ROOT_FLOATING,
options);
}
// arrange for this function to be called during body.onload
// event processing
GSearch.setOnLoadCallback(LoadVideoBar);
</script>
<!-- ++End Video Bar Wizard Generated Code++ -->
Example:
runescape
Description:
YouTube BBCode by G4HQ
Use {option}: No
OPTIONAL
Disable BB Code Within This BB Code: Yes
Again the Code can be seen here (http://www.g4hq.com/showthread.php?t=6961)
Support for any of my mods can be located here (http://www.g4hq.com/forumdisplay.php?f=108)
Authors:
Stephen (http://www.g4hq.com/member.php?u=1908)
h0ly (http://www.g4hq.com/member.php?u=1)