[RC] YouTube Videos Mod

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Anti-Spam Guide
User avatar
muggins
Registered User
Posts: 1183
Joined: Fri Feb 22, 2008 5:12 pm
Location: Texas
Name: Donovan
Contact:

Re: [RC] YouTube Videos Mod

Post by muggins »

What was the additional feature, Keith?

I've been using a slightly modified version of your excellent mods for months now.. Post the new package?
Muggins
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [RC] YouTube Videos Mod

Post by keith10456 »

muggins wrote:What was the additional feature, Keith?

I've been using a slightly modified version of your excellent mods for months now.. Post the new package?
Nothing new... I just released the current version (v1.0.8) to the mod DB for validation.

And thanks :D
Don Vito
Registered User
Posts: 89
Joined: Mon Jul 04, 2011 1:18 am

Re: [RC] YouTube Videos Mod

Post by Don Vito »

the youtube.css from this mod is conflicting with the youtube profile link mod. :(
User avatar
ViolaF
I've Been Banned!
Posts: 1609
Joined: Tue Aug 14, 2012 11:52 pm

Re: [RC] YouTube Videos Mod

Post by ViolaF »

Rename the call of the file and the file itself to youtube2.css.
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [RC] YouTube Videos Mod

Post by keith10456 »

ViolaF wrote:Rename the call of the file and the file itself to youtube2.css.
+1 ;)
User avatar
salvocortesiano
Registered User
Posts: 190
Joined: Mon Mar 22, 2010 1:49 pm
Location: Florence (Italy)
Name: Salvo Cortesiano
Contact:

Re: [RC] YouTube Videos Mod

Post by salvocortesiano »

Great MOD keith10456 :)
for my personal comfort I preferred to embed youtube video in the index of the forum and including a drop-down effect with java script ;) If anyone is interested here's the code procedure:

P.S. Subsilver based style maybe also works with the Prosilver!

Create a new file HTML called: youtube_header.html and put this code inside

Code: Select all

<!-- IF not S_IS_BOT -->
	<!-- IF S_USER_LOGGED_IN -->
<div style="padding:10px:center;">
<div align="center"><a href="#" id="hiding15"><img src="{T_THEME_PATH}/images/youtube_videos_mod.png" width="16" height="16" alt="*" title="{L_YOUTUBE_VIDEOS_MOD_LINK}" /> {L_YOU_SHOW_HIDE}</a></div>
</div>

<script type="text/javascript">
// <![CDATA[
$(document).ready(function(){
//-------------------
// $('#datecks').datepicker({ showButtonPanel: false });
//-------------------
$('#hiding15').click(function(){
if ($('#hide15').is(":hidden")){
$('#hide15').slideDown("slow");} 
else{
$('#hide15').slideUp("slow");}
return false;}); 
//-------------------
});
// ]]>
</script>

<div style="display:none;font-size:10px:center;" id="hide15">

<center>
<h1 class="yvh">{L_YOUTUBE_VIDEOS_MOD_PAGE_TITLE}</h1>
<br />
<div style="width: 720px;">  
<div id="playerContainer" style="width: 720px;"> 
<object id="player"></object>
</div> 
<br />
<div id="videoSize"> 
  <input type="button" id="Widescreen" value="{L_YOUTUBE_VIDEOS_MOD_WIDESCREEN}" onclick="javascript:HDPlayer()" disabled="true"></input> 
  <input type="button" id="Standard" value="{L_YOUTUBE_VIDEOS_MOD_STANDARD}" onclick="javascript:HQPlayer()"></input> 
</div><br />
<div id="searchForm">
 <form id="searchForm" onsubmit="quvic.listVideos('search', this.searchTerm.value, 1); return false;"> 
               <input name="searchTerm" type="text" value="" style="width: 280px;"> 
        <input type="submit" value="{L_YOUTUBE_VIDEOS_MOD_SEARCH}"> 
      </form>
</div>
<br />
<div align="center">
    <a href="#" onclick="quvic.listVideos('recently_featured','',1); return false;"><b>{L_YOUTUBE_VIDEOS_MOD_RECENTLY_FEATURED}</b></a> |
	<a href="#" onclick="quvic.listVideos('top_rated','',1); return false;"><b>{L_YOUTUBE_VIDEOS_MOD_TOP_RATED}</b></a> |
    <a href="#" onclick="quvic.listVideos('most_viewed','',1); return false;"><b>{L_YOUTUBE_VIDEOS_MOD_MOST_VIEWED}</b></a> |
    <a href="#" onclick="quvic.listVideos('most_popular','',1); return false;"><b>{L_YOUTUBE_VIDEOS_MOD_MOST_POPULAR}</b></a>
	</div>
<br /><br />

 <div id="searchResultsNavigation" align="right"><label id="videosinfo" align="right"></label> <form id="navigationForm"><input type="button" id="previousPageButton" onclick="quvic.listVideos(quvic.previousQueryType, quvic.previousSearchTerm, quvic.previousPage);" value="{L_YOUTUBE_VIDEOS_MOD_PREVIOUS_PAGE}" style="display: none;"></input>&nbsp;&nbsp;<input type="button" id="nextPageButton" onclick="quvic.listVideos(quvic.previousQueryType, quvic.previousSearchTerm, quvic.nextPage);" value="{L_YOUTUBE_VIDEOS_MOD_NEXT_PAGE}" style="display: none;"></input></form></div>

<div id="videolist"> 
<script language="javascript" type="text/javascript"> 
// <![CDATA[
			<!--
quvic.PresentVideos('recently_featured','',1);
//--> 
// ]]>	
</script>  
</div> 
<div class="clear"></div>
</p>
</center>
</div>
<br />
	<!-- ENDIF -->
<!-- ENDIF -->
Now open: styles/subsilver2/template/overal_header.html
and put this code where you want displayed the MOD youtube

Code: Select all

<div id="youtube">
<!-- INCLUDE youtube_header.html -->
</div>
For example I have on my forum the MOD "ACP Announcement Centre 125", and I preferred to view the videos youtube just below the mod "ACP Announcement Centre 125" :)

Now create the language file called: youtube_language.php (or the text u want) and put this code inside

Code: Select all

<?php

if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

    $lang = array_merge($lang, array(
		'YOU_SHOW_HIDE'         => 'Mostra/Nascondi youtube', // iTALIAN (you change in your language)
	));
?>
Now open: root/language/your_language/common.php

Find:

Code: Select all

// DEVELOPERS PLEASE NOTE
Before add:

Code: Select all

// (c) Salvo Cortesiano / 2013
include('mods/youtube_language.' . $phpEx);
// (c) Salvo Cortesiano / 2013
Upload al new files and the changed via FTP. Enjoy ;)

Image
Youtube link button

Image
The drop down (hide/show) youtube videos

The link of youtube video: http://www.youtube.com/watch?v=o_F7GOWF ... e=youtu.be
The best way to predict the future is to invent it!
Image
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [RC] YouTube Videos Mod

Post by keith10456 »

Do you have a link to a demo? I would like to see it in action.
User avatar
salvocortesiano
Registered User
Posts: 190
Joined: Mon Mar 22, 2010 1:49 pm
Location: Florence (Italy)
Name: Salvo Cortesiano
Contact:

Re: [RC] YouTube Videos Mod

Post by salvocortesiano »

Hi keith10456,
i send pm to u with the access key of my board ;) I just found a bug; but this is normal, the title of the board changes with the title of the youtube video :)

Image

Image

Regards
Salvo Cortesiano
The best way to predict the future is to invent it!
Image
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [RC] YouTube Videos Mod

Post by keith10456 »

The login info you sent me didn't work.
salvocortesiano wrote:I just found a bug; but this is normal, the title of the board changes with the title of the youtube video
Yeah... That's not a bug. It's part of the mod. So normally, the page title of the videos page would change to whatever video is playing (as you stated).
User avatar
salvocortesiano
Registered User
Posts: 190
Joined: Mon Mar 22, 2010 1:49 pm
Location: Florence (Italy)
Name: Salvo Cortesiano
Contact:

Re: [RC] YouTube Videos Mod

Post by salvocortesiano »

Yes sorry keith10456 i forgot :( Try now ;)

For the title; it is possible to make so that it doesn't replace the title of the forum? :)
The best way to predict the future is to invent it!
Image
User avatar
muggins
Registered User
Posts: 1183
Joined: Fri Feb 22, 2008 5:12 pm
Location: Texas
Name: Donovan
Contact:

Re: [RC] YouTube Videos Mod

Post by muggins »

Yes. I am stupid right now, but the page title is set in overall_header.html or index,php. You can override the page title, banner and all sorts of other browser tricks.

Since I am stupid, Google can help you better than I. :D
Muggins
User avatar
salvocortesiano
Registered User
Posts: 190
Joined: Mon Mar 22, 2010 1:49 pm
Location: Florence (Italy)
Name: Salvo Cortesiano
Contact:

Re: [RC] YouTube Videos Mod

Post by salvocortesiano »

muggins wrote:Yes. I am stupid right now, but the page title is set in overall_header.html or index,php. You can override the page title, banner and all sorts of other browser tricks.

Since I am stupid, Google can help you better than I. :D
No @muggins, you're not stupid; you're a genius :D
The best way to predict the future is to invent it!
Image
User avatar
noth
Registered User
Posts: 2528
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Re: [RC] YouTube Videos Mod

Post by noth »

what is the difference between this one and "_Vinny_YOUTUBE GALLERY"

the _Vinny_gallery displays a page of youtube vidoes picked by the forum members

this one just EMBEDS the video into the thread? is that it? :D
Adds a YouTube Videos page to your phpBB website. Your members will be able to search and view the videos that are available on YouTube (without leaving your site).
from page 1 this keith10456mod appears to offer the same as the _vinny_gallery mod, they're both the same then?
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [RC] YouTube Videos Mod

Post by keith10456 »

No... They're not the same.

Vinny's YouTube Gallery Mod allows members to post YouTube videos to your site and groups all of the posts into a video gallery.

My YouTube Videos Mod allows members to search and view all videos that are on YouTube directly from your site (and without leaving your site).
ffreitas1987
Registered User
Posts: 13
Joined: Fri Dec 14, 2012 6:22 pm

Re: [RC] YouTube Videos Mod

Post by ffreitas1987 »

its possible change player to jwplayer?
Locked

Return to “[3.0.x] MODs in Development”