Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Ustream Integration Mod (with Chat) Details »»
Ustream Integration Mod (with Chat)
Version: 1.00, by Reycer Reycer is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 4.1.4 Rating:
Released: 08-01-2011 Last Update: Never Installs: 4
Template Edits
Additional Files  
No support by the author.

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());

?>
Upload that file TO YOUR FORUM ROOT

----------------------------------------------------------------------------------------------------------

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&amp;brand=embed&amp;cid=8959895&amp;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&amp;brand=embed&amp;cid=8959895&amp;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>
Change the red part of that code to your embed code supplied to you from Ustream. Change the Blue part of the code to the embed code of the chat supplied to you from Ustream. Note: Be sure to log into your Ustream Dashboard and change your default chat from Social Stream to Chat, or the default chat box will be the entire Ustream Community not just your chat room.

----------------------------------------------------------------------------------------------------------

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

File Type: jpg screenshot.jpg (79.4 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
K4GAP

Comments
  #12  
Old 08-07-2011, 07:52 PM
bosanci28's Avatar
bosanci28 bosanci28 is offline
 
Join Date: Feb 2008
Location: USA - West Coast
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i will have a section on my forum,where i will make a new tread and on the tread will be a channel,then i will add a new tread and add other channels,and so on....

thanks,


edit:

can you tell me how to make this code ,not to redirect?
i used the code on a page ,but when i go to that page and click it automatic goes to ustream!,how to make it to stay on my page site?

myforum/extrapage/ then i click "channel1" and then other page comes for 2 sec,then it re-directs to ustream!,how to stop that?

HTML 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&amp;brand=embed&amp;cid=8959895&amp;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&amp;brand=embed&amp;cid=8959895&amp;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>
thanks
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:42 AM.


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.03470 seconds
  • Memory Usage 2,254KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (2)post_thanks_box
  • (1)post_thanks_box_bit
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_attachment
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete