Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Announcements:
YouTube Seamless Module V1.1.2 Released
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 09/16/10 15:07 
Revision History
16/09/10 V1.0.0 Original Release
24/09/10 V1.0.1 Bug fix to the Tools => Import function
26/09/10 V1.0.2 Option to allow users to embed only YouTube videos, selectable by quota
01/10/10 V1.0.3 Sample templates for the Maestro skin and them added
13/10/10 V1.0.4 Small bug fixes and changes to the sample skin and theme templates
24/10/10 V1.0.5 Page number and size options added to the YouTube search function
06/11/10 V1.0.6 YouTube video creation, updating and imports are added to the 'actions' table, Genre selection on YouTube imports, YouTube only player added to the Nova theme header, Bug fix to make YouTube video play counting more accurate, German language file included (thanks to Matthias)
19/01/11 V1.0.7 If file_get_contents() function fails (as it does on some servers), this module will attempt to search YouTube videos using a cURL function
15/07/11 V1.1.0 Small bug fix. paSeamlessManager module included. Will now work in conjunction with the paVimeoSeamless module (if installed). Included sample templates now integrate both the paYTSeamless and paVimeoSeamless module changes to show imported YouTube and Vimeo videos
24/10/11 V1.1.1 Included an extra setting for 'Invalid Strings'. When the module now searches YouTube for invalid uploaded videos, it will also search for these strings within the html source and tag the video as invalid if found
16/04/13 V1.1.2 Small modifications to the included Nova templates

Demo
Visit the paYTSeamless Demo and Support website and use this module as an artist would. You can create, modify and delete YouTube videos. The module installed in this demo is the latest release.

Overview
The paYTSeamless module provides users with seamless integration of both their uploaded 'regular' videos, and embedded YouTube videos on both the user profile, and skin video pages.
When users click on their 'Create Video' button, they get the choice of uploading either a regular, or a YouTube video and are subsequently directed to the respective similar looking form page.
After uploading an embedded YouTube video, it is treated as a regular video and can be modified, arranged and deleted in the same manner as, and alongside of regular videos.
User access to this module is artist quota controlled.
Additional user function to search for YouTube videos, then selectively import the results.
Admin tools to import YouTube videos from previously installed jrYouTube and paYouTubePlus modules, and to periodically check that all embedded YouTube videos are still valid with the option to delete any that are not.

Module Installation
Copy the paYTSeamless.php and paSeamlessManager files, and the 'modules' folder to your Jamroom directory.
Log into Jamroom as admin, go to the Module Config page and enable both the paYTSeamless and paSeamlessManager modules.
Installation should now be complete, however, if not running Jamroom V4.1.5 or later, you may need to run the Integrity Check to install this module correctly.

Skin and Theme Templates
In order to show YouTube videos in the skin and user profile pages, templates need to be modified
Included with this module are the modified template for the 'stock' Nova, Cobalt3, Sage, Flashback and JamTube skin and themes, as well as those for the jrMobile module and Maestro.
If you are running any of the above 'stock' skins and themes, just copy the templates from this package as appropriate.
If you are running any of the above 'stock' skins and themes that have only had their CSS files changed as a colour scheme, say, it should be OK to copy these modified files, BUT BE SURE TO BACKUP FIRST.
If you are not running stock skins and themes, or have modified your video templates in any way, check out the included templates to see what is required - basically, whenever the video image, or a link to a popup player, or an embedded player is required, the relevant template code is wrapped in the conditional statement {if $VIDEO_YOUTUBE_ID != '' && strlen($VIDEO_YOUTUBE_ID) == 11}{else}{/if} and the appropriate YouTube code put in the 'if' section, and the original template code in the 'else' section - copy and paste the YouTube code from one of the supplied modified templates - BE SURE TO BACKUP FIRST.
NOTE - All sample templates also include conditional statements for the paVimeoSeamless module. Its OK to leave these in as it means that your templates will also be compatible with that module, if it is installed.

Upgrading This Module
Overwrite all your previously uploaded module files with those in the latest release.
Log into your Jamroom site as 'Admin' and if prompted to do so, run the Integrity Check

Module Configuration
By default, all your artist quotas will be configured with this module disabled - the enable/disable option is in the quota Media Support section.
By default, all your artist quotas will be configured to allow uploads of both YouTube and regular videos - the 'YouTube Videos Only' option is in the quota Media Support section and if set, only YouTube videos will be uploadable.
Go to the Config Modules section and click on the module settings button. A page is displayed where you can configure all the module options - You should not need to change the YouTube base address settings at this time, but if you import YouTube videos from either the jrYouTube or the paYouTubePlus modules you may want to enable the YouTube category field so that any category data entered for these previously imported videos can be displayed and modified.

Database Schema
This module adds three 'base address' fields to the settings table, two fields to the quota table and two custom fields to the video table.

Module Usage
In the Admin Tools section, if this module detects an installation of either ther jrYouTube or paYouTubePlus modules, there will be options to import videos from these previous YouTube modules.
In the Admin Tools section, there is an option to check the validity of all embedded YouTube videos.
When logged in, users will see an extra 'Search Youtube' option in the videos section, and when clicking on Create Video, will get the option to create a regular video or to embed a YouTube video.

Buy
Visit the Jamroom Marketplace to purchase and download this module.
The paYTSeamless Module is licenced per Jamroom installation, ie. you may install the purchased copy on one Jamroom site only.


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center

Last edited by Paul on 04/16/13 11:56; edited 13 times in total
Back to top
xmla



Joined: 27 Mar 2006
Posts: 508

Posted: 09/25/10 20:55 
Any hints on how to get this functioning with ProJam2?

M
XSR

Back to top
xmla



Joined: 27 Mar 2006
Posts: 508

Posted: 09/26/10 02:02 
To Fix, Here's what I did for ProJam 2 Users:
Add the Code from skins/player_video_youtube.tpl to video_embed after {elseif $VIDEO_YOUTUBE_ID != '' && strlen($VIDEO_YOUTUBE_ID) == 11}

To get youTube preview images to appear

add in video_slider_row.tpl and video_featured_row.tpl

AFTER
<a href="{$JAMROOM_URL}/ranking.php?mode=video&amp;size=0&amp;video_id={$VIDEO_ID}&amp;row_template=videos.tpl">

ADD
{if $VIDEO_YOUTUBE_ID != '' && strlen($VIDEO_YOUTUBE_ID) == 11}
<img class="border" src="{$paYTSeamless_base_url}{$VIDEO_YOUTUBE_ID}/0.jpg" width="72" height="48" alt="View Video">
{else}

BEFORE
<img class="border" src="{$VIDEO_IMAGE_URL}&amp;width=72&amp;crop_height=48" width="72" height="48" title="View {$VIDEO_NAME}" alt="{$VIDEO_NAME}">

AND ADD
{/if}

BEFORE
</a>

Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 09/26/10 03:22 
I haven't got the ProJam2 skin or theme but what you're doing is the basic idea. What I did with the stock skins and themes included with the module is for any templates with video content, wrap the whole template as follows -


Code
{if $VIDEO_YOUTUBE_ID != '' && strlen($VIDEO_YOUTUBE_ID) == 11}
{else}
  Original Template Code
{/if}


then copy the Original Template Code into the 'if' part, then go though the 'if' part modifying it for YT. The mods include changing occurances of video image to -


Code
<img src="{$paYTSeamless_image_url}{$VIDEO_YOUTUBE_ID}/0.jpg" alt="{$VIDEO_NAME}" title="{$VIDEO_NAME}" width="128">


If you want a link to a popup YT player, something like this -


Code
{assign var="onclick" value="popwin(this.href,'video_`$VIDEO_ID`','330','260','yes');return false"}
<a href="{$JAMROOM_URL}/index.php?t=player_video_youtube&video_id={$VIDEO_ID}&video_youtube_id={$VIDEO_YOUTUBE_ID}&width=330&height=260" onclick="{$onclick}"><img src="{$JAMROOM_URL}/skins/Cobalt3/images/video_stream.png"></a>


To embed the YT player -


Code
{paYTSeamless_Add_Stream_Count video_id=$video_id}
<object width=300} height=200>
  <param name="movie" value="{$paYTSeamless_base_url}{$VIDEO_YOUTUBE_ID}&hl=en&fs=1"></param>
  <param name="allowFullScreen" value="true"></param>
  <param name="allowscriptaccess" value="always"></param>
  <embed src="{$paYTSeamless_base_url}{$VIDEO_YOUTUBE_ID}&hl=en&fs=1&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="300" height="200"></embed>
</object>


(Note the custom smarty function to increment the video stream counts)

I also then take out any references to the downloading the video and the vault (don't want users selling YT videos lol)


Have a look through the enclosed templates to get a full idea.
hth
Pa


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 09/26/10 06:48 
One of this module's users suggested an option to allow ONLY YouTube videos to be uploaded. I thought that was a good idea so its been integrated into version 1.0.2.
This option is configurable by artist quota.
Get the latest version of paYTSeamless from the Jamroom Marketplace.
Cheers
Pa


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
whodaniel



Joined: 26 Jun 2006
Posts: 627

Posted: 09/26/10 07:12 
When you say,
pasher:
ONLY YouTube videos to be uploaded.

Does that mean that in Quotas where this option is Enabled that users will not have the regular video upload and create vault options available to them?

Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 09/26/10 07:25 

whodaniel:
When you say,
pasher:
ONLY YouTube videos to be uploaded.

Does that mean that in Quotas where this option is Enabled that users will not have the regular video upload and create vault options available to them?

Yes - Artists in a quota with this option enabled can only upload/embed YT videos. Note that the Jamroom video function would still need to be enabled for the quota as this module uses the video database table and other video functions.
hth
Pa


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
whodaniel



Joined: 26 Jun 2006
Posts: 627

Posted: 09/26/10 07:40 

pasher:

whodaniel:
When you say,
pasher:
ONLY YouTube videos to be uploaded.

Does that mean that in Quotas where this option is Enabled that users will not have the regular video upload and create vault options available to them?

Yes - Artists in a quota with this option enabled can only upload/embed YT videos. Note that the Jamroom video function would still need to be enabled for the quota as this module uses the video database table and other video functions.
hth
Pa



Can I ask why would they only be able then to upload TY videos? I was thinking that people could upload the trailer or preview part straight to YT, but then would still have the option of uploading a video for download sale via the vault, so that if people liked the preview they could then purchase the whole thing...

Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 09/26/10 07:44 
You can still do that. 'YouTube Only' is just an option.
Cheers
Pa


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
whodaniel



Joined: 26 Jun 2006
Posts: 627

Posted: 09/26/10 11:46 
Cool feature to have...
But, that is not the same thing I was talking about. After enabling this new option for a Quota, I saw that you could enter in the ID of a YT video. But that is not the same as actually being able to upload to TY right from the interface, which is what I was talking about. Is it still possible that feature could be in a future release?

Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 09/26/10 12:30 
So you want to upload a 'regular' (for want of a better name) to Jamroom, then be able to post it on YouTube from the user Control Panel?


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
whodaniel



Joined: 26 Jun 2006
Posts: 627

Posted: 09/26/10 19:53 

pasher:
So you want to upload a 'regular' (for want of a better name) to Jamroom, then be able to post it on YouTube from the user Control Panel?


Well yeah, as long as the end result is that the amount of video that is sent to YT is just the "preview" part.

Is that possible?

Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 09/27/10 13:30 

whodaniel:

pasher:
So you want to upload a 'regular' (for want of a better name) to Jamroom, then be able to post it on YouTube from the user Control Panel?


Well yeah, as long as the end result is that the amount of video that is sent to YT is just the "preview" part.

Is that possible?


I'm not sure how possible that might be at the moment. I'll put it on my list of things to investigate.
Thanks
Pa


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
whodaniel



Joined: 26 Jun 2006
Posts: 627

Posted: 09/28/10 12:29 

pasher:
So you want to upload a 'regular' (for want of a better name) to Jamroom, then be able to post it on YouTube from the user Control Panel?


Another option that I thought would be good, is just to have another input field in the regular upload form that will be the YT upload. This is just for the sake of convenience and keeping tasks together.
For an example of this scenario; I would manually create 2 video files 1.) my preview,promo,trailer,whatever 2.)my main video. Then I could in 1 shot upload my preview to YT and also do the reg upload and to the vault etc.

Back to top
rdl419



Joined: 03 Sep 2007
Posts: 63

Posted: 09/29/10 17:28 
For some reason I am unable to pull in the $VIDEO_YOUTUBE_ID.

<img src="{$paYTSeamless_image_url}{$VIDEO_YOUTUBE_ID}/0.jpg" alt="{$VIDEO_NAME}" title="{$VIDEO_NAME}" width="128">

comes out

<img src="http://img.youtube.com/vi//0.jpg" alt="" title="" width="128">

Any suggestions?

Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Announcements

1234567Next >
 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.