Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Third Party Products and Support:
allowing members to embed youtube videos help please
gov



Joined: 06 Jun 2008
Posts: 191

Posted: 08/17/09 12:02 
How can i let my members embed youtube videos using the payoutube script, i have it installed but i need to able to let the members do it aswell.

Please advise

Cheers
Gov

Back to top
Paul
Jamroom Team


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

Posted: 08/18/09 00:52 
If you have installed the module correctly, and enabled it in your artist/member quotas, they should see the menu option to embed the YT videos.
You also need to modify your theme templates as well - there is example code in the module package.

Is that what you mean?

Cheers
Pa


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



Joined: 06 Jun 2008
Posts: 191

Posted: 09/04/09 06:36 
Thanks for the reply Pasher - I have it working now but was wondering how I could change the section where you enter the youtube id to allow the user just paste in the full you tube url instead. I find when I try to explain what to do with the you tube id my users sometimes get confused and I think it would make better sense just to allow them paste the full url instead of just the you tube id - How would I go about making the relevant changes to the code and where?

Appreciate your help (or anyone else for that matter!)

Cheers
Gov

Back to top
Paul
Jamroom Team


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

Posted: 09/04/09 07:22 
If the full YT URL was entered as the 'ID', all you would need to do in the skin or theme templates is to change the embed code from

<object width="240" height="194"><param name="movie" value="http://www.youtube.com/v/{$YOUTUBE_VIDEO_ID}&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/{$YOUTUBE_VIDEO_ID}&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="240" height="194"></embed></object>

to

<object width="240" height="194"><param name="movie" value="{$YOUTUBE_VIDEO_ID}&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="{$YOUTUBE_VIDEO_ID}&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="240" height="194"></embed></object>

Ie. take out the YT domain part.

If I was doing this, I'd put some more error checking in the paYouTubePlus.php file -




Code
        // Error Checking - YouTube ID is required
        if (strlen($_post['youtube_video_id']) != 11) {
            setFormHighlight('youtube_video_id');
            jrSetFormNotice('error',$language['paYouTubePlus'][6]);
            jrLocation('paYouTubePlus.php?mode=create');
        }


At the moment it just checks for a correct ID string length. You'd need a more thorough check that it is a valid YT URL somehow.

Cheers
Pa


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



Joined: 06 Jun 2008
Posts: 191

Posted: 09/04/09 08:28 
Cheers for the quick response Pasher - Ill work on it and let you know!

Gov

Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Third Party Products and Support

 
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.