PDA

View Full Version : Miscellaneous Hacks - CinVin Inline Media Hack for vBGallery


KW802
10-21-2007, 10:00 PM
Note: This is an updated & enhanced version of my original 'Autoplay Media Files Inline (http://www.photopost.com/forum/showthread.php?t=118781)' hack. :cool: As with all my publicly available vB add-ons it is being released under the CinVin branding. This is being released as an RC version so please provide any feedback or suggestions you may have so I can make improvements.

Description
Play media files (audio, video) inline when viewed in PhotoPost vBGallery (http://www.photopostgallery.com) instead of having to download first.

Supports most popular media players such as Windows Media Player, Quicktime, and Real Player. Also includes a method for playing flash video FLV files and even embedding YouTube videos!

Demo
Windows Media Player (WMV (http://www.coolscifi.com/gallery/showimage.php?i=3787) | MPG (http://www.coolscifi.com/gallery/showimage.php?i=3801) | WAV (http://www.coolscifi.com/gallery/showimage.php?i=3728))
Flash (SWF (http://www.coolscifi.com/gallery/showimage.php?i=3113))
Adobe Acrobat (PDF (http://www.coolscifi.com/gallery/showimage.php?i=7880))
Real Audio Player (RAM (http://www.coolscifi.com/gallery/showimage.php?i=3737))
YouTube (Embedded Player (http://www.coolscifi.com/gallery/showimage.php?i=7933))
QuickTime (MOV (http://www.coolscifi.com/gallery/showimage.php?i=4473))
Custom Audio/Video (FLV (http://www.coolscifi.com/gallery/showimage.php?i=7897) | MP3 (http://www.coolscifi.com/gallery/showimage.php?i=7689))Features
This hack will play media files inline within your PhotoPost vBGallery instead of your visitor first having to download the file to their local PC. Some benefits of doing this are to (a) allow media files to be used as eCards which come out really nice looking and also to (b) make it a little bit harder for people to download your media files (will slow them down but not stop them) which hopefully means that a link to your site is what ends up being distributed instead of the actual media file itself.
Supports Windows Media Player, Flash, Adobe Acrobat, Real Audio Player, and Quicktime.
Supports embedded YouTube videos! By uploading a preview image with a specified prefix then the corresponding YouTube video will displayed embedded.
Supports up two two custom audio/video players. That allows you to add your own players without having to touch any PHP code.
Custom Audio/Video Player #1 comes pre-configured for playing Flash Video (FLV) files and MP3 files!
Completely template based so you can easily change the media player code.
ACP based settings allow you to easily turn on & off which media types you want to view inline, change media player file associations, and whether a download link should be shown to your visitors.
If your PHP installation supports recognizing file sizes of SWF & other file types then the media will be displayed proportionally to the actual size of the media. If your PHP installation does not recognize the media file sizes then the media will be displayed based upon the height & width settings in your vBGallery Filetypes maintenance screen. If you do not have a height & width specified in your vBGallery Filetypes maintenance screen then you can specify a default height & width for displaying the inline media.Additional Info
The Flash video player that is pre-configured for playing FLV and MP3 files is from Jeroen Wijering (http://www.jeroenwijering.com/?item=Flash_Video_Player). It is a CCL application and you can obtain the source file and more information about the player by visiting Jeroen's site.

Requirements
To use this product the following items are required...
vBulletin 3.6.x by Jelsoft
PhotoPost vBGallery
Ability to upload & edit files on your serverVersion Info
Current Version: 2.0.0 RC1
Last Updated: 09-28-2007 10:35 PM

Support
Primary support will be provided at CinVin (http://www.cinvin.com). Secondary support will be provided here vBulletin.org and in the PhotoPost support forums. To date those are the only communities that this hack has been released at and will be supported at.

This application can not be redistributed in any matter without the prior written approval of CinVin.

aycan555
10-22-2007, 08:32 PM
thanx verry much...

yoyoyoyo
10-22-2007, 08:40 PM
very cool

MR.BOSS
10-22-2007, 09:03 PM
thanks for this hack,

can i play media files, without having vbgallery?

imean play media files in threads

thanks

KW802
10-22-2007, 09:09 PM
thanks for this hack,

can i play media files, without having vbgallery?

imean play media files in threads

thanksNo, sorry... this hack is specifically for vBGallery. If you search the forums though there are few different embedded media hacks for playing media in posts. :)

MR.BOSS
10-22-2007, 10:09 PM
No, sorry... this hack is specifically for vBGallery. If you search the forums though there are few different embedded media hacks for playing media in posts. :)

thanks,

Rickeo
10-22-2007, 10:11 PM
Is there any way in the world you can get this to work in profiles would be amazing been looking for something for so long where users can have music playing in there profile.

Thanks

Rick

KW802
10-22-2007, 10:32 PM
Is there any way in the world you can get this to work in profiles would be amazing been looking for something for so long where users can have music playing in there profile.

Thanks

RickAny random music found in the gallery or only music that the user has uploaded? I'm always on the lookout for new ideas to play with so if you can narrow down the idea you have in mind I'll give it a thought at least. :)

EDIT: Thinking out loud for a moment... the current version of vBGallery has an add-on for displaying images that the user has upload in their profile screen. I don't think it'd take much effort to essentially duplicate that code but only select audio files and then to randomly select one and play it on their profile page. Before I touch any code though, let me know what you were envisioning.

projectego
10-23-2007, 07:39 AM
Very cool! Thank you. :)

Subah
10-23-2007, 09:12 AM
Thanks a lot it is great Hack , but i think i will wait for the full version ;)

yahoooh
10-23-2007, 10:52 AM
can u make it work with vba dynamic ?

KW802
10-23-2007, 01:49 PM
Thanks a lot it is great Hack , but i think i will wait for the full version ;)"Full version" meaning?

can u make it work with vba dynamic ?In what way? Meaning video files upload to vBa Dynamics and have them displayed embedded?

yahoooh
10-23-2007, 03:31 PM
yes
if i attach files :wma ,mp3 etc etc

make it work inline

that i looke for

KW802
10-24-2007, 02:45 PM
yes
if i attach files :wma ,mp3 etc etc

make it work inline

that i looke forI'll see what I can do but no promises. I've just started playing around with vBa Dynamics so I'm not 100% familiar yet with how it handles file attachments in it's system. Hit me up over at vBadvanced to remind me about this request. :)

maddy1
10-25-2007, 02:36 AM
Hello,
Will this work with this gallery?
https://vborg.vbsupport.ru/showthread.php?t=123490&highlight=vBGallery+Forum+Home

Thanx

KW802
10-25-2007, 02:59 AM
Hello,
Will this work with this gallery?
https://vborg.vbsupport.ru/showthread.php?t=123490&highlight=vBGallery+Forum+Home

ThanxThat link points to an older & different hack for vBGallery for displaying thumbnails on the forumhome page. With the current version of vBGallery that hack is now a standard feature. Both that older hack and this hack require PhotoPost vBGallery.

Snake
10-25-2007, 03:42 PM
I'll definitely install this when I get back to home. Nice release!

Betablocker
10-27-2007, 10:41 PM
Very good :)

Thank you.

RaceJunkies
11-15-2007, 10:10 PM
Hack installed and works fine.

But can't really seem to find anywhere how to embed youtube vidz...or what the specified prefix is...

Any help would be appreciated.

KW802
11-15-2007, 10:36 PM
Hack installed and works fine.

But can't really seem to find anywhere how to embed youtube vidz...or what the specified prefix is...

Any help would be appreciated.Did you go through the ACP yet? ;)

RaceJunkies
11-16-2007, 12:41 AM
Did you go through the ACP yet? ;)

Haha ooopppsss.... Thnx for making me feel stupid. :)

Keep up the good work~! :up:

KW802
11-16-2007, 01:14 AM
Haha ooopppsss.... Thnx for making me feel stupid. :)That wasn't my intent, sorry if that was the result. :o

pompaunpo
11-16-2007, 08:09 PM
Very good !!!!
but url file flv in flash player embed is wrong !!


s1.addVariable("file","http://localhost/site/gallery/1/clip.flv");

correct is:

s1.addVariable("file","http://localhost/site/gallery/files/1/clip.flv");

is not the /files directory

techhouse
12-06-2007, 01:18 PM
Nice hack. How i can add thumbnail for uploaded videos?

ahayat
04-08-2008, 04:33 PM
nice , but this needs to be update as;
variable $vba_options no longer exists in new gallery. and bit more just need to change in the text file provided ,
change $vba_options with $ppg_options ....

Now i have just one problem with real player , cant see the images.
thanks for hack.

Chicago_VLNU_4s
07-31-2009, 05:26 AM
works with 3.8.2