The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Ustream Integration Mod (with Chat) Details »» | |||||||||||||||||||||||||||
This mod will allow you to use your Ustream Channel and embed it into your vbulletin.
This template mod would not be possible without Lynne's Article on creating a Vbulletin Page which can be found here ---------------------------------------------------------------------------------------------------------- First you need to create a PHP page and name it yourchannelname.php (whereas your channel name is the name of your channel from Ustream) Second Paste the following code into that page (Take note that you need to change the code in red to YOUR channels name -- WARNING:This will be case sensitive to what we will do later. I only use lower case letters for this very reason, however the page title can be whatever you like). Code:
<?php error_reporting(E_ALL & ~E_NOTICE); define('THIS_SCRIPT', 'yourchannelname'); define('CSRF_PROTECTION', true); $phrasegroups = array(); $specialtemplates = array(); $globaltemplates = array('yourchannelname', ); $actiontemplates = array(); // chdir ('/path/to/your/forums'); require_once('./global.php'); $navbits = construct_navbits(array('' => 'TTD Radio')); $navbar = render_navbar_template($navbits); $pagetitle = 'Your Channel Name'; $templater = vB_Template::create('ttdradio'); $templater->register_page_templates(); $templater->register('navbar', $navbar); $templater->register('pagetitle', $pagetitle); print_output($templater->render()); ?> ---------------------------------------------------------------------------------------------------------- Next we need to log into our Admincp and select Styles and Templates; admincp--->Styles and Templates--->Style Manager--->Add New Template Name the template the EXACT name (remember Case sensitive) you gave to $globaltemplates in your new PHP file we created earlier. In the large box copy and paste the following code; Code:
{vb:stylevar htmldoctype} <html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html"> <head> <title>{vb:raw vboptions.bbtitle} - {vb:raw pagetitle}</title> {vb:raw headinclude} {vb:raw headinclude_bottom} </head> <body> {vb:raw header} {vb:raw navbar} <div id="pagetitle"> <h1>{vb:raw pagetitle}</h1> </div> <h2 class="blockhead">TTD Radio</h2> <div class="blockbody"> <div class="blockrow"> <div style="float:left;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="296" id="utv521869"><param name="flashvars" value="autoplay=false&brand=embed&cid=8959895&v3=1"/><param name="allowfullscreen" value="true"/><param name="allowscriptaccess" value="always"/><param name="movie" value="http://www.ustream.tv/flash/viewer.swf"/><embed flashvars="autoplay=false&brand=embed&cid=8959895&v3=1" width="480" height="296" allowfullscreen="true" allowscriptaccess="always" id="utv521869" name="utv_n_511451" src="http://www.ustream.tv/flash/viewer.swf" type="application/x-shockwave-flash" /></object><br /><a href="http://www.ustream.tv/producer" style="padding: 2px 0px 4px; width: 400px; background: #ffffff; display: block; color: #000000; font-weight: normal; font-size: 10px; text-decoration: underline; text-align: center;" target="_blank">Free desktop streaming application by Ustream</a></div><div><iframe width="468" scrolling="no" height="386" frameborder="0" style="border: 0px none transparent;" src="http://www.ustream.tv/socialstream/8959895"></iframe></div></div> </div> </div> {vb:raw footer} </body> </html> ---------------------------------------------------------------------------------------------------------- We've now created our page and you can visit your Ustream page by going to www.yoursite.com/forums/yourchannelname.php ---------------------------------------------------------------------------------------------------------- If you want to create a link to Ustream Page just visit this article: https://vborg.vbsupport.ru/showthread.php?t=226914 ---------------------------------------------------------------------------------------------------------- FAQ: Q: Do users have to have an account with Ustream to be able to chat? A:Yes and No. Ustream recently due to some crazed posters, Ustream abandoned the use of their "Guest Chat." However, there is still a way around this, but for your users to chat as guests you have to be on at all times (Kinda stinks I know, but blame Ustream, not me). For users to chat as guests you must insert this code into the chat: /mode #yourchannel -m Thanks to Lynn for writing her awesome Articles! Screenshots
Supporters / CoAuthors Show Your Support
|
Благодарность от: | ||
K4GAP |
Comments |
#2
|
|||
|
|||
First Post Reserved
Question was asked: "How do I make a PHP page?" A: I use Aranae because it's reliable and free. www.aranae.com but you can also use Notepad which is basic application with every PC. |
#3
|
|||
|
|||
Any screen shots?
|
#4
|
|||
|
|||
Screenshot now attached.
|
#5
|
||||
|
||||
I like this and will try it out..
|
#6
|
||||
|
||||
</iframe>
Ok to use with ? yourchannelname.php do we set it to 775 in the FTP? |
#7
|
|||
|
|||
No it does not have to be set to 775. Just upload it.
|
#8
|
|||
|
|||
|
#9
|
||||
|
||||
sorry to bug in ,but is there any mod like this one that i can add some channes from ustream ,like i have about 5 different channels (church live services) that i want to add on my forum on some page...
any advice will be welcome. thanks |
#10
|
|||
|
|||
Yes, just add their embed code of each one where the red code is. You can change the heigth and width within the code to make all 5 fit into your page. I assume you want all 5 channels on the same page correct? Are you wanting them all on your forumhome? Or on a seperate page?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|