Page 11 of 13

Re: [RC] YouTube Videos Mod

Posted: Mon Nov 19, 2012 10:22 pm
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?

Re: [RC] YouTube Videos Mod

Posted: Mon Nov 19, 2012 10:33 pm
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

Re: [RC] YouTube Videos Mod

Posted: Mon Dec 24, 2012 11:27 pm
by Don Vito
the youtube.css from this mod is conflicting with the youtube profile link mod. :(

Re: [RC] YouTube Videos Mod

Posted: Tue Dec 25, 2012 3:28 am
by ViolaF
Rename the call of the file and the file itself to youtube2.css.

Re: [RC] YouTube Videos Mod

Posted: Tue Dec 25, 2012 8:29 pm
by keith10456
ViolaF wrote:Rename the call of the file and the file itself to youtube2.css.
+1 ;)

Re: [RC] YouTube Videos Mod

Posted: Sat Mar 09, 2013 6:45 am
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

Re: [RC] YouTube Videos Mod

Posted: Sat Mar 09, 2013 8:49 pm
by keith10456
Do you have a link to a demo? I would like to see it in action.

Re: [RC] YouTube Videos Mod

Posted: Sun Mar 10, 2013 3:46 am
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

Re: [RC] YouTube Videos Mod

Posted: Mon Mar 11, 2013 11:31 pm
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).

Re: [RC] YouTube Videos Mod

Posted: Tue Mar 12, 2013 12:35 am
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? :)

Re: [RC] YouTube Videos Mod

Posted: Tue Mar 12, 2013 1:30 am
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

Re: [RC] YouTube Videos Mod

Posted: Tue Mar 12, 2013 6:54 pm
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

Re: [RC] YouTube Videos Mod

Posted: Fri Mar 15, 2013 7:12 pm
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?

Re: [RC] YouTube Videos Mod

Posted: Sun Mar 17, 2013 5:28 am
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).

Re: [RC] YouTube Videos Mod

Posted: Tue Jul 02, 2013 3:21 pm
by ffreitas1987
its possible change player to jwplayer?