Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

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
  #2  
Old 08-02-2011, 09:10 PM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 08-03-2011, 05:06 AM
webgroup webgroup is offline
 
Join Date: May 2006
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any screen shots?
Reply With Quote
  #4  
Old 08-03-2011, 01:12 PM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshot now attached.
Reply With Quote
  #5  
Old 08-04-2011, 05:10 PM
Rideharder's Avatar
Rideharder Rideharder is offline
 
Join Date: Jan 2008
Location: Florida
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like this and will try it out..
Reply With Quote
  #6  
Old 08-04-2011, 05:20 PM
Rideharder's Avatar
Rideharder Rideharder is offline
 
Join Date: Jan 2008
Location: Florida
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

</iframe>
Ok to use with ?

yourchannelname.php do we set it to 775 in the FTP?
Reply With Quote
  #7  
Old 08-06-2011, 01:45 PM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No it does not have to be set to 775. Just upload it.
Reply With Quote
  #8  
Old 08-06-2011, 01:45 PM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's a demo of it working:

www.schoolbusforums.com/ttdradio.php
Reply With Quote
  #9  
Old 08-07-2011, 04:17 PM
bosanci28's Avatar
bosanci28 bosanci28 is offline
 
Join Date: Feb 2008
Location: USA - West Coast
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 08-07-2011, 07:48 PM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bosanci28 View Post
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
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?
Reply With Quote
Reply

Thread Tools

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 11:07 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.06281 seconds
  • Memory Usage 2,322KB
  • Queries Executed 25 (?)
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_quote
  • (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
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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