urgent : help ! how to create a template like youtube?
urgent : help ! how to create a template like youtube?
Posted: 11.10.2008, 06:24
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
Hi
I want to know how can I create a template in postnuke 764 which is like youtube web site .
it should be able to read a movie(i.e .flv files) from a database in a dynamic mode.
this template should show list of uploaded files and when a user click on a desired of them the template should open and play it without reloading the page.
exactly like youtube)
otherwise please introduce me a ready module or a plugin of pagesetter which will do the same.
please help me as soon as possible.
Thank you
edited by: ghanavizi, Oct 11, 2008 - 07:38 AM
Posted: 28.10.2008, 03:01
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
You might want to look into mediashare
Posted: 14.12.2008, 15:28
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
you might want to look into crpVideo...
It's completely doable, but involves too much work.
With mediashare you get video playing capabilities, don't know if it does flv.
If you really really want said functionality... PHPMotion is for you...
Why would you want to copy YouTube exactly?
Posted: 08.03.2009, 05:58
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
ممنون از راهنمايي شما
من مي خواست با pagesetter يك فايل flv ارسال كنم و براي كاربر صفحه اي شبيه youtube بياد و اون بتونه از ليست فايلها يكي رو انتخاب و مشاهده كنه
Posted: 11.03.2009, 06:30
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
mediashare doesn't handle flv files yet.
Create a new publication, let's keep it simple:
Title (string), Description (text html?), (any upload) FLV because it will not convert the video format, keywords (text), image preview (image upload), this last one is needed because it won't create the preview by itself.
Create templates.
Now manipulate the templates for list, full, rss.
For the list template take the image preview, the core.title, the core.url and the description (find those fields in the full template, copy them over here). Style as needed using your CSS and HTML super powers!!!
Full should be styled as well but for the FLV field you'll need a suitable flash player (flowplayer will do just fine). Surround the FLV variable with the appropiate object and embed tags.
RSS could be used to promote new content but it will not show the image preview or description, as with the list, copy this items from the full template. Google for CDATA so you can learn how to show the images and descriptions (even with html) and links. But first copy this RSS template files and rename the new copies from RSS to XML.
The new XML template could be used to create playlists (i.e.: if you use JW FLV player) but you'll need to create an htaccess rewrite rule so items shown using this template are called by a shortURL like "videoplaylist1.xml" where 1 is the pid number (this because JW FLV player doesn't like php files with parameters in the URL).
Install and include EZComments module hook to let your other users comment.
They could upload FLV files if you know your way around Postnuke permission rules.
To display more videos from an author use the inlinepublist tag (read the manual?) using the filter core.author:eq:$core.author. For related items use keywords:like:$keywords.