Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Add-Ons & Blocks ⇒ mClip - Movie Module


mClip - Movie Module
Need help creating a block or add-on, or you have created or modified a block/add-on that works in Dragonfly CMS and it meets the CPG Security Requirements? Do you have feedback about a specific add-on? Here is the place to post. Read the announcements here first!.
Go to page 1, 2, 3 ... 9, 10, 11  Next
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Add-Ons & Blocks

View previous topic :: View next topic  
Author Message
Kendle
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Dec 16, 2004
Posts: 552

PostPosted: Sat Oct 13, 2007 12:09 pm
Post subject: mClip - Movie Module

I've recently completed a new module, initially developed for my step-son who races Stock Cars, (Oval Track "Legends" to be precise). He wanted a site on which to host movie clips of his races. In developing this I realised I could use it myself to build a catalog of movie clips from all over the web, specifically from YouTube and other such sources.

As this module effectively couldn't function without loads of free stuff provided by many cool sources I felt charging for it would be rather unethical, so I decided to release it for free!

There follows the text from the README that comes with it, but if you can't be bothered to read all that here's a couple of links where it's installed:-

www.cmsdreams.co.uk/Movie.html
www.legend114.co.uk/in...name=Movie

And here's where you can get it:-

www.cmsdreams.co.uk/Do.../id=1.html

Now for the README ...

-----------------------------------------------------------------------
Movie Module for DragonFly CMS
==============================
Copyright (c) 2007 www.cmsdreams.co.uk

A free program released under the terms and conditions of the GNU GPL version 2 or any later version.
-----------------------------------------------------------------------

This module enables webmasters to add FLV formatted movies to their site and allow visitors to view them using the supplied "FlowPlayer" FLV movie player ((c) www.flowplayer.org). A copy of the basic FlowPlayer player is included in this module. There are others available from their website.

To use FlowPlayer (or any server side FLV player) you need to encode your AVI / MPG movies into FLV. I use (the also excellent) Riva FLV Encoder from www.rivavx.com

The module also comes with various other movie types pre-defined, specifically the type that allow you to embed movies in a web page that are hosted elsewhere, like YouTube.

Each movie type uses HTML code to embed a viewable movie object in a web page. The HTML is included in the "type" record stored in the database and is therefore completely definable (you might want to change size / quality settings etc.). This HTML includes a placeholder for the actual movie file / link.

In the case of FLV movies you will need to also supply the path to the player and the location of the FLV movies files. The defaults should do fine unless you particularly want to move them elsewhere.

Note: The module doesn't allow you to upload movies directly, you'll need to do so via FTP. The reason for this is that movies tend to be quite big and PHP upload isn't the most reliable (not to mention many shared hosting services severally limit the size of files that can be uploaded).

You can however upload images for Types / Categories and Movies. To enable this you'll need to make the following folders writable :-

modules/Movie/images/categories
modules/Movie/images/movies
modules/Movie/images/types

Movies
======
Eaxmple:-

To add an FLV movie -

1) Upload the FLV file to - modules/Movie/movies
2) Go to Admin -> Movie and click the Movies tab
3) Choose Type = FlowPlayer
4) Give the movie a Title
5) In Link/ID enter the name of the FLV file
6) Click Add

To add a YouTube movie -

1) Go to Admin -> Movie and click the Movies tab
2) Choose Type = YouTube
3) Give the movie a Title
4) In Link/ID enter the YouTube ID of the movie

note: if the URL to the YouTube movie is:-

www.youtube.com/watch?v=xyz123

The Link/ID is:-

xyz123

5) Click Add

As you can see the module knows the URL to play YouTube movies and only needs the ID, the bit on the end of the URL. This is basically the same for all other movie types as well.

The exception is MetaCafe which uses an ID and Title. For example, if the URL to the MetaCafe movie is:-

www.metacafe.com/watch...title_here

You would need to supply a Link/ID of:-

123456/movie_title_here

Types
=====
The module comes with the following types pre-defined -

FLV (FlowPlayer) - local player + local movies
DivX - local movies (no local player required)
YouTube
Google
iFilm
MetaCafe
MySpace

To add other types use the Types tab of Admin -> Movie

You only need provide values for "Player" and "Movies" if this type plays locally hosted movies.

The HTML code used to embed this type in your site contains 1 or more placeholders, which are replaced when viewing the movie with data from the Type and Movie records in the database. These placeholders are as follows:-

{player} - this holds the name and path of the player (local only)
{movies} - this holds the name and path of the movies (local only)
{link} - this holds the name of the movie or ID of the link

{player} is only needed for FLV or similar files using a server-side player.

{movies} is only needed for locally hosted files (DivX perhaps), although if you leave this blank you can supply URLs to movies hosted elsewhere (with permission from whoever hosts them of course)

{link} is the name of the movie file, if it's local, of the ID of the movie if it's YouTube etc.

The HTML code must contain at least {link} and possibly the others. Look at the existing types to see how they're used.

Categories
==========
The module allows you to categorise movies however you like, with categories being sub-categories of others (including other sub-categories etc.) to as many levels deep as you like. You can supply an image for each movie Type, and for each Category, and for each individual movie.

The module uses a hierarchy to decide what image to use on the display pages.

* If the movie has an image associated with it, that's the one used.

* If not, if the Category has an image, that's the one used.

* If not, if the Type has an image, that's the one used.

Fields
======
The module allows you to add custom fields to a movie. These can be of various types, Character / Date / Numeric / Lookup lists etc. This is quite a powerful feature for extending the range of information you can store for each movie.

Options
=======
On the Admin -> Movie -> Config tab you can set some global options for the module, including how many movies to display across and down if using grid view. The main page will also by default show the most recent movies added, the highest rated, and the most viewed. You can disable these options, and / or change how many are displayed.

Example Sites
=============
This module is active on 2 sites I maintain, namely my DragonFly module site:-

www.cmsdreams.co.uk/Movie.html

and a site I made for my step-son who races Oval Track Legends, a kind of Stock Car racing only non-contact and way faster:-

www.legend114.co.uk/in...name=Movie

_________________
Gaming League / Cup - www.leaguecms.co.uk :: Other DragonFly modules - www.cmsdreams.co.uk

Kendle's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
chris5000
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: Mar 04, 2006
Posts: 384
Location: Kentucky
PostPosted: Sat Oct 13, 2007 3:18 pm
Post subject: Re: mClip - Movie Module

Hey Kendle. Just tried installing and am getting this:

MySQL Error while executing:
INSERT INTO cms_config_custom VALUES ('Movie','version','1.0.1')

Duplicate entry 'Movie-version' for key 1

I had initially received another error, but when I clicked on install again, I got the one above.


chris5000's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache/1.3.34 (Unix)/MySql 5.0.27-standard-log/PHP 5.1.6/DF 9.1.2.1
Back to top
View user's profile Visit poster's website
Kendle
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Dec 16, 2004
Posts: 552

PostPosted: Sat Oct 13, 2007 4:09 pm
Post subject: Re: mClip - Movie Module

What was the initial error?

You're getting the one above because trying it again is attempting to do something it'd already done the first time. I'd need to know what the first error was.

edit: Also, what version DF? I've got the module installed on a vanilla DF 9.1.2 site without any problems.

_________________
Gaming League / Cup - www.leaguecms.co.uk :: Other DragonFly modules - www.cmsdreams.co.uk

Kendle's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
Eestlane
I18N / L10N Lead Dev
I18N / L10N Lead Dev

Offline Offline
Joined: Apr 06, 2005
Posts: 1404
Location: Estonia
PostPosted: Sat Oct 13, 2007 5:07 pm
Post subject: Re: mClip - Movie Module

Awesome, Kendle!


Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
PoKo
Supporter
Supporter

Offline Offline
Joined: Aug 28, 2005
Posts: 148

PostPosted: Sat Oct 13, 2007 9:01 pm
Post subject: Re: mClip - Movie Module

Fantastic Kendle - I may have to order a mod on this one if you have the time (to fit my calendar) Wink


PoKo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.4.28 - Linux srv60 2.6.12.6 / Apache / 4.0.22 - 4.1.22 - 5.0.22 -5.0.32 / 4.3.11 - 4.4.2 - 4.4.4 - 5.2.5 / 9.0.6.1 - 9.1.2.1 - 9.2.0.RC2
Back to top
View user's profile Photo Gallery
chris5000
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: Mar 04, 2006
Posts: 384
Location: Kentucky
PostPosted: Sun Oct 14, 2007 4:38 am
Post subject: Re: mClip - Movie Module

Kendle here is the error (tried to install on another site of mine). I am using DF 9.1.2.1.

MySQL Error while executing:
CREATE TABLE IF NOT EXISTS cms_movie_movie ( mid INT(11) NOT NULL auto_increment, cid INT(11) NOT NULL default '0', tid INT(11) NOT NULL default '0', uid INT(11) NOT NULL default '0', datetime VARCHAR(16) NOT NULL default '', mtitle VARCHAR(100) NOT NULL default '', mimage VARCHAR(100) NOT NULL default '', mshort TEXT NOT NULL default '', mextend TEXT NOT NULL default '', mlink VARCHAR(100) NOT NULL default '', mviews MEDIUMINT(8) NOT NULL default '', mscore MEDIUMINT(8) NOT NULL default '', mvotes MEDIUMINT(8) NOT NULL default '', PRIMARY KEY (mid) ) TYPE=MyISAM

Invalid default value for 'mviews'


chris5000's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache/1.3.34 (Unix)/MySql 5.0.27-standard-log/PHP 5.1.6/DF 9.1.2.1
Back to top
View user's profile Visit poster's website
Kendle
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Dec 16, 2004
Posts: 552

PostPosted: Sun Oct 14, 2007 8:44 am
Post subject: Re: mClip - Movie Module

Ah, nuts, tripped up by the old MySQL 5.x wrong default again, how embarassing Embarassed (that's why it worked for me and not you, I'm still using MySQL 4.0, which doesn't care if numeric fields don't have a numeric default)

I've fixed the installer and re-uploaded the package.

Also, this module uses my module comment plug-in and I forgot to include those files in the package, so anyone trying to use comments with this module will come a cropper as well.

Anyone who's downloaded this module please download it again, sorry about that! Embarassed

_________________
Gaming League / Cup - www.leaguecms.co.uk :: Other DragonFly modules - www.cmsdreams.co.uk

Kendle's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
chris5000
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: Mar 04, 2006
Posts: 384
Location: Kentucky
PostPosted: Sun Oct 14, 2007 4:37 pm
Post subject: Re: mClip - Movie Module

Okay, thanks Kendle. Now that I've tried to install it once before, I am getting that first error I posted once again. Don't know what to remove in order to get the installer to work cleanly again.

EDIT: Never mind. I saw those entries in the config_custom table and removed them!


chris5000's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache/1.3.34 (Unix)/MySql 5.0.27-standard-log/PHP 5.1.6/DF 9.1.2.1
Back to top
View user's profile Visit poster's website
chris5000
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: Mar 04, 2006
Posts: 384
Location: Kentucky
PostPosted: Sun Oct 14, 2007 5:04 pm
Post subject: Re: mClip - Movie Module

I installed and added a category and YouTube movie clip. I am getting database errors. I turned on debug and where I have the Most-Recent block loaded on the Home page, I get this:

CMS Warning line 75: On / While executing query "SELECT mid, mtitle, datetime FROM cms_movie_movie ORDER BY m.datetime DESC LIMIT 0,5" the following error occured: Unknown column 'm.datetime' in 'order clause' In: /home/pointswe/public_html/soundgab/blocks/block-Movie-Recent.php on line: 31


chris5000's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache/1.3.34 (Unix)/MySql 5.0.27-standard-log/PHP 5.1.6/DF 9.1.2.1
Back to top
View user's profile Visit poster's website
jeffk
Supporter
Supporter

Offline Offline
Joined: Jun 21, 2004
Posts: 322

PostPosted: Sun Oct 14, 2007 6:25 pm
Post subject: Re: mClip - Movie Module

installed with no errors 9.1.2.1

it would only be of use to me though if members could add there own links and not just admin

_________________
CMS Version 9.1.2.1
PHP Version 4.4.4
MySQL Version 4.1.22-standard (client: 4.1.22)

jeffk's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
CMS Version 9.1.2.1HP Version 4.4.4MySQL Version 4.1.22-standard (client: 4.1.22
Back to top
View user's profile Visit poster's website MSN Messenger Photo Gallery
Kendle
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Dec 16, 2004
Posts: 552

PostPosted: Sun Oct 14, 2007 7:57 pm
Post subject: Re: mClip - Movie Module

@chris, sorry, didn't even test the block, consider it broken for now. I'll fix it and make some more hopefully later this week.

@jeff, I appreciate it would be lot more useful if that were the case (though then I'd have to add an approval mechanism and image upload name checking (or random name generation)), however it's currently what I needed for my own purposes and I figured it was quite a nice little module so decided to make it available. I'll probably do more to it in the coming weeks.

_________________
Gaming League / Cup - www.leaguecms.co.uk :: Other DragonFly modules - www.cmsdreams.co.uk

Kendle's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
rlgura
1000+ Posts Club
1000+ Posts Club

Offline Offline
Joined: Mar 27, 2006
Posts: 1146
Location: Cleveland, OH USA
PostPosted: Sun Oct 14, 2007 8:02 pm
Post subject: Re: mClip - Movie Module

@Jeff - thanks for asking the question - I was wondering that myself after reading Kendle's description.

@Kendle - great module as always - I'll have to think about the applications for this myself - user submitted would obviously be used - should we start a bounty for an "upgrade" of this mod to include user submission? Smile

_________________
Admin - Great Lakes Web Designs
Theme Designer - WebSite Guru Designs
Site Admin - Families with Food Allergies

rlgura's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux 2.6.27-grsec/Apache 2.2.11/MySQL 5.0.67-community-log/PHP 5.2.8/DF 9.2.1
Back to top
View user's profile Visit poster's website
Kendle
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Dec 16, 2004
Posts: 552

PostPosted: Sun Oct 14, 2007 8:05 pm
Post subject: Re: mClip - Movie Module

No, I'll add it, just give me a while. I'm stupidly busy with "real life" stuff these days, I just made this because it was own step-son who wanted me to make a site for him and this is something he specifically wanted to do with it.

_________________
Gaming League / Cup - www.leaguecms.co.uk :: Other DragonFly modules - www.cmsdreams.co.uk

Kendle's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
jeffk
Supporter
Supporter

Offline Offline
Joined: Jun 21, 2004
Posts: 322

PostPosted: Sun Oct 14, 2007 8:12 pm
Post subject: Re: mClip - Movie Module

bulldog is doing a social module , this includes a video component where members can submit there links , maybe worth a look at the code for ideas

_________________
CMS Version 9.1.2.1
PHP Version 4.4.4
MySQL Version 4.1.22-standard (client: 4.1.22)

jeffk's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
CMS Version 9.1.2.1HP Version 4.4.4MySQL Version 4.1.22-standard (client: 4.1.22
Back to top
View user's profile Visit poster's website MSN Messenger Photo Gallery
Kendle
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Dec 16, 2004
Posts: 552

PostPosted: Sun Oct 14, 2007 9:56 pm
Post subject: Re: mClip - Movie Module

Oh well, I was probably going to struggle to find time to do anything this week, so strike while the iron's hot, as we English say...

v1.1.1 uploaded which adds facility for users to submit movies and for Admins to approve them. User submission and / or Admin approval can be set in the module config section. User submission is disabled by default so go to Admin -> Movie -> Config to enable it.

Wouldn't mind some feedback on this as I've only quickly added this feature and tested it. No doubt in my haste I may have broken something.

edit: As I had to add a field you'll need to upload the files and then go to Admin -> Modules -> edit Movie and click the "Upgrade to 1.1" link.

_________________
Gaming League / Cup - www.leaguecms.co.uk :: Other DragonFly modules - www.cmsdreams.co.uk

Kendle's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  Add-Ons & Blocks
Page 1 of 11
All times are GMT
Go to page 1, 2, 3 ... 9, 10, 11  Next



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

read more...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy