Welcome, Guest. Please login or register.
March 21, 2010, 12:54:32 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem Website Baker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite .
110586 Posts in 15968 Topics by 9313 Members
Latest Member: Gudrun
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  Simple video gallery
Pages: [1] 2 3 4 Go Down Print
Author Topic: Simple video gallery  (Read 26782 times)
ToX

Offline Offline

Posts: 20


« on: February 10, 2007, 04:32:07 PM »

hi, i have developed a video gallery module

it is really simple, it just lists your .flv (flash video) files in a directory of your choice, with a thumbnail (shown when the video is stopped) and a description.

here is how it works:

directory/video.flv // this is the real video
directory/video.flv.jpg // thumbnail (optional)
directory/video.flv.txt // text description (optional)

it is based on "another image gallery"

this is a 0.1 version... and this is my first module for wb too, so you can expect some bugs, untranslated text or anything Cheesy


TODO LIST:
- make the "include subdirs" setting work
- make the fullscreen button work




UPDATE: version 0.2, thanks to macsmet
http://forum.websitebaker.org/index.php?action=dlattach;topic=5424.0;attach=1061
  • added a Dutch language file
  • Did some 'hard coded' translations from Italian to English
  • added the latest version 3.5 of the videoplayer by Jeroen Wijering (it was version 3.3)
  • changed the directory location to: $dirmodulo = (WB_URL.'/modules/videogal'); Now it works when WB is installed in the root.

UPDATE: version 0.3, thanks to... me Cheesy
http://forum.websitebaker.org/index.php?action=dlattach;topic=5424.0;attach=1069
  • you can now change the "video" header (you can even set it to null if you don't want it)
  • deleted DE.php and SE.php as they where untranslated

UPDATE: version 0.3.1, thanks to me, macsmet and vincent for the debug
http://forum.websitebaker.org/index.php?action=dlattach;topic=5424.0;attach=1076
  • fixed a bug in update.php

UPDATE: version 0.4
http://forum.websitebaker.org/index.php?action=dlattach;topic=5424.0;attach=1086
  • possibility to choose how many videos are shown in a row
  • ability to change the player's colors
  • added german translation (thanks to Waldschwein)
« Last Edit: February 19, 2007, 10:07:11 PM by ToX » Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 5561


WWW
« Reply #1 on: February 10, 2007, 08:58:02 PM »

Anyway ... even if only a first ... thanks for the addition. Will give it a go later on and bet Matthias and others will to.

cheers

Klaus
Logged

http://www.weitzel.biz
PM has been disabled
Nobody

Offline Offline

Posts: 119


WWW
« Reply #2 on: February 11, 2007, 08:53:45 AM »

Is ist possible to show .avi files in this gallery, too? Or is it possible to add this feature to the gallery?
Logged
Vincent

Offline Offline

Posts: 316


WWW
« Reply #3 on: February 11, 2007, 03:25:35 PM »

It works, ToX. A very welcome module! Thanks. I didn't come across any bugs. It would be nice, though, if it could also handle wmv-files. Would that be possible?

Regards, and keep up the good work,

Vincent
Logged
ToX

Offline Offline

Posts: 20


« Reply #4 on: February 11, 2007, 08:29:05 PM »

only flv videos, i'm sorry...  sad

i'm not sure, but i think that this is a limitation in flash.
Logged
Waldschwein
Forum Team
*****
Offline Offline

Posts: 1291



WWW
« Reply #5 on: February 11, 2007, 09:12:51 PM »

Hi! There is a free flv video converter for it. I tested it. Of course it is not very nice, but I don't know some other open source video player...
http://www.rivavx.de/?encoder (In German)
Or in English: http://www.rivavx.de/index.php?id=483&L=3
Of course it would be cool to have some video player like youtube, but it is quite nice right now. Wink
Logged

Help! What's a survey? Read my blog -> www.zweiwelt.com | " Make no small plans for they have not the power to stir men`s blood." - Niccolo Machiavelli


Get here the new WebsiteBaker logo! It's the only one.
ToX

Offline Offline

Posts: 20


« Reply #6 on: February 11, 2007, 09:30:01 PM »

well if you have linux i'm using a script like this:

Code:
for file in $(ls *.[aAwWmM][vVmMoO][iIvV]); do
mplayer -vo jpeg -ss 0:0:2 -frames 1 $file;
mogrify -resize 150x100! 00000001.jpg;
mogrify -fill white -pointsize 25 -draw 'text 2,23 "Video"' 00000001.jpg;
mv 00000001.jpg $file.jpg;
done
for file in $(ls *.[aAwWmM][vVmMoO][iIvV]); do
ffmpeg -i $file -ab 56 -ar 22050 -b 500 -s 640x480 $file.flv
rm $file
done


you need imagemagik and ffmpeg, it converts every avi, mov or wmv file into flv, and it creates a thumbnail :p
Logged
Vincent

Offline Offline

Posts: 316


WWW
« Reply #7 on: February 12, 2007, 07:21:29 AM »

I used Super to convert wmv to flv. This tool converts about every format to whatever format you want. Very simple, very efficient. It's free.
http://www.erightsoft.net/SUPER.html#Dnload

Regards,
Vincent
« Last Edit: February 12, 2007, 07:24:40 AM by vincent » Logged
macsmet

Offline Offline

Posts: 157


« Reply #8 on: February 14, 2007, 09:03:16 PM »

Hi there,

I made some changes and additions:
- added a Dutch language file
- Did some 'hard coded' translations from Italian to English
- added the latest version 3.5 of the videoplayer by Jeroen Wijering (it was version 3.3)
- changed the directory location to: $dirmodulo = (WB_URL.'/modules/videogal'); Now it works when WB is installed in the root.

Attached you find version 0.2!

greetings,

MacSmet
Logged
Vincent

Offline Offline

Posts: 316


WWW
« Reply #9 on: February 15, 2007, 05:47:07 PM »

Perfect, macsmet!
Would it be possible to choose whether you want the header 'video' or not?
The button for a whole screen version doesn't seem to work yet...

Maybe good to mention that the script is licensed under a Creative Commons License.
And that Jeroen distributes licenses of the script for 15 euros.

If it's on the addons page, he should be notified, so he can put a link to the WB plugin on his page.

Regards,

Vincent

Logged
ToX

Offline Offline

Posts: 20


« Reply #10 on: February 15, 2007, 07:25:20 PM »

Hi there,

I made some changes and additions:
- added a Dutch language file
- Did some 'hard coded' translations from Italian to English
- added the latest version 3.5 of the videoplayer by Jeroen Wijering (it was version 3.3)
- changed the directory location to: $dirmodulo = (WB_URL.'/modules/videogal'); Now it works when WB is installed in the root.

Attached you find version 0.2!

greetings,

MacSmet

cool! i'll update my first post with your changes :p
Logged
macsmet

Offline Offline

Posts: 157


« Reply #11 on: February 15, 2007, 07:45:44 PM »

@ Vincent: the header 'Video' is hardcoded now.
You can delete it yourself in 'view.php' . Making it optional by adding code takes time. The first option is much easier.
The button for wide screen is also not coded yet...maybe later ( I really don't need it myself)
Maybe ToX want's to do this?

greetings,

MacSmet

Logged
ToX

Offline Offline

Posts: 20


« Reply #12 on: February 16, 2007, 11:30:27 AM »

@ Vincent: the header 'Video' is hardcoded now.
You can delete it yourself in 'view.php' . Making it optional by adding code takes time. The first option is much easier.
The button for wide screen is also not coded yet...maybe later ( I really don't need it myself)
Maybe ToX want's to do this?

greetings,

MacSmet



i'll make the "video" header optional, or maybe i'll set an optional value in the admin panel, so that you can even change it as your needs.
for the wide screen button i don't really know how to fix it Cheesy
Logged
Vincent

Offline Offline

Posts: 316


WWW
« Reply #13 on: February 16, 2007, 11:42:18 AM »

Great!

Since you guys already digged into this stuff: do you think it's easy/possible to also implement Jeroen's  flash mp3 player in a WB module? I'm not a programmer, but I imagine that with some adjustments your module would also suit the mp3 player.... Which would be Super! grin

Thanks for a great job.

Vincent
Logged
macsmet

Offline Offline

Posts: 157


« Reply #14 on: February 16, 2007, 12:49:11 PM »

@ Vincent: I will look into this but give me some time because I am very busy at the moment. I won't be that difficult!

greetings,

MacSmet
Logged
Vincent

Offline Offline

Posts: 316


WWW
« Reply #15 on: February 16, 2007, 01:05:01 PM »

Hi MacSmet, take your time, I'll be patient, but am really looking forward to this - it would make a great addition to the cms, and I'm sure many more people will welcome it!

Regards,
Vincent



Logged
ToX

Offline Offline

Posts: 20


« Reply #16 on: February 16, 2007, 02:10:47 PM »

Great!

Since you guys already digged into this stuff: do you think it's easy/possible to also implement Jeroen's  flash mp3 player in a WB module? I'm not a programmer, but I imagine that with some adjustments your module would also suit the mp3 player.... Which would be Super! grin

Thanks for a great job.

Vincent


i already did something like that for my website, it should be easy to integrate into a wb module.

this is what i did for my website, if you want to check it out...
http://www.emanueletoscano.it/?pag=Vari/musica/index.htm

actually, it is based on a xml file which contains all the informations (file name, artist, title)... it should be easy to make it more "dynamic" too, with no need for that file
Logged
Vincent

Offline Offline

Posts: 316


WWW
« Reply #17 on: February 16, 2007, 02:19:20 PM »

ToX, that looks just fine!
The challenge is to go around the xml-sheet, indeed. Easy? Not for me.... undecided

Vincent
Logged
ToX

Offline Offline

Posts: 20


« Reply #18 on: February 16, 2007, 02:50:15 PM »

here we are, version 0.3

UPDATES:
- you can now change the "video" header (you can even set it to null if you don't want it)
- deleted DE.php and SE.php as they where untranslated
Logged
Vincent

Offline Offline

Posts: 316


WWW
« Reply #19 on: February 16, 2007, 03:05:12 PM »

Unfortunately I get an error:  Unknown column 'mod_header' in 'field list' ...
But at least the word video disappeared.
Logged
ToX

Offline Offline

Posts: 20


« Reply #20 on: February 16, 2007, 03:08:30 PM »

Unfortunately I get an error:  Unknown column 'mod_header' in 'field list' ...
But at least the word video disappeared.

lol Cheesy


when did you get that error? while updating or when modifying the settings?
Logged
Vincent

Offline Offline

Posts: 316


WWW
« Reply #21 on: February 16, 2007, 03:16:17 PM »

Hi ToX,

I got the error message when I tried to modify the settings of the video which I already used.

Vincent
Logged
macsmet

Offline Offline

Posts: 157


« Reply #22 on: February 16, 2007, 05:54:57 PM »

@Vincent: you're right. The update script doesn't work.
@Tox: Parse error: parse error, unexpected T_VARIABLE in update.php on line 31

I deleted version 0.2 and uploaded version 0.3. This works for now!

MacSmet
« Last Edit: February 16, 2007, 06:34:00 PM by macsmet » Logged
ToX

Offline Offline

Posts: 20


« Reply #23 on: February 16, 2007, 10:25:08 PM »

@Vincent: you're right. The update script doesn't work.
@Tox: Parse error: parse error, unexpected T_VARIABLE in update.php on line 31

I deleted version 0.2 and uploaded version 0.3. This works for now!

MacSmet

thanks, i'll fix it as soon as possible tongue
Logged
ToX

Offline Offline

Posts: 20


« Reply #24 on: February 17, 2007, 03:13:11 PM »

i've found a bug in update.php... it should be fixed now
Logged
Pages: [1] 2 3 4 Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!