I'd just want to put my 2 cents in here. Excellent Idea.
Perhaps a sub section of the gallery for multimedia files?
I could make good use of such a feature.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'd just want to put my 2 cents in here. Excellent Idea.
Perhaps a sub section of the gallery for multimedia files?
I could make good use of such a feature.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
this is a great idea and I think would help in a lot of things,
people could convert their avi's or mpg's to swf and protect
their files from import and altering..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
in the util.php file just simple add "swf" to line 209
should look like (all on one line)
return array
("jpg", "gif", "png", "avi", "mpg", "mpeg","wmv", "swf", "mov");
and then add
!strcmp($tag, "swf") ||
before
!strcmp($tag, "wmv")); on line 226
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Currently I only have one on a private server that I use for
testing but I will place one online shortly and provide the
address here. The problem that I am having though, is the
resizing of the movie since it plays within a browser, the images
become distorted and have a white background no matter what
your css's and such say. I'm working on trying to get gallery to
read the swf file as a "photo" so that it will display in the same
type of window as a photo does. MPG's though for me play in
Windows Media player, and since SWF's play in the browser by
default, I'm having a hard time.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
what i am currently trying to work out is a way for swf's to open
inside an inlined gallery page, similar to how photos do..
currently mpg's open in my media player, and swf opens in a
browser by itself.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ok well if you take a look at my site again (www.dwnn.org) then
goto the photo gallery and movies, you will see the movie now
plays as in a gallery embedded screen.. this is not a 100% fix
yet, but to get you started..
first add swf to your util.php file in the IMAGES function so it
should look something like this:
then add the following to your view_photo.php file (this code is
for Flash 6 (MX) only, you will have to change the code
accordingly for your version of flash.
around line 437 - do a search for "$openAnchor = 0;" and this
is about the location we will be adding information to, now go
down to the ?> end of the php code and you should have
</tr> so before this we will add the following information:
This will allow the flash to play in an embedded gallery window. I
would upload the complete file, but I don't have permission to
do so. I am continuing to work on being able to resize the flash
with the same buttons you resize the images with. Like I said this
is just the start.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ok here it is.. this will fix the little problem that my previous
code had where it displayed an extra image on the photos in a
white border. Well this will fix it, you just need to make sure that
you specify SWF's as images and not movies. I'm still working on
the resizing bit as well as the image size, but I Will have that
fixed soon. This goes around line: 436
one more added fix .. this will get rid of the error when
fittowindow attempts to get the size of the swf and returns an
error, it doesn't affect anything but just to be sure your users
don't get the little error saying invalid charater or something
here it is..
Hi, i applied the changes. Now working, but i have problem
with uploading of swf file. For uploading, i must put swf like
movie, download, and turn to image. This is because if i stay
like image, the uploader don't works (probably try to apply the
rules of resizing etc to swf).
Any solution? Thanks for help and support!
JS
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=427096
I'd just want to put my 2 cents in here. Excellent Idea.
Perhaps a sub section of the gallery for multimedia files?
I could make good use of such a feature.
Logged In: YES
user_id=427096
I'd just want to put my 2 cents in here. Excellent Idea.
Perhaps a sub section of the gallery for multimedia files?
I could make good use of such a feature.
Logged In: YES
user_id=621059
this is a great idea and I think would help in a lot of things,
people could convert their avi's or mpg's to swf and protect
their files from import and altering..
Logged In: YES
user_id=621059
actually I found a way to do this very easily..
in the util.php file just simple add "swf" to line 209
should look like (all on one line)
return array
("jpg", "gif", "png", "avi", "mpg", "mpeg","wmv", "swf", "mov");
and then add
!strcmp($tag, "swf") ||
before
!strcmp($tag, "wmv")); on line 226
Logged In: YES
user_id=427096
M Golden, are you able to post a url where one might
experience the fruits of your labor?
Flash
Logged In: YES
user_id=621059
Currently I only have one on a private server that I use for
testing but I will place one online shortly and provide the
address here. The problem that I am having though, is the
resizing of the movie since it plays within a browser, the images
become distorted and have a white background no matter what
your css's and such say. I'm working on trying to get gallery to
read the swf file as a "photo" so that it will display in the same
type of window as a photo does. MPG's though for me play in
Windows Media player, and since SWF's play in the browser by
default, I'm having a hard time.
Logged In: YES
user_id=621059
please take a look at:
http://www.dwnn.org/gallery/albums.php
you will see an album where the movies are.. and as I mentioned
the size is quite messed up.
Logged In: YES
user_id=621059
what i am currently trying to work out is a way for swf's to open
inside an inlined gallery page, similar to how photos do..
currently mpg's open in my media player, and swf opens in a
browser by itself.
Logged In: YES
user_id=621059
ok well if you take a look at my site again (www.dwnn.org) then
goto the photo gallery and movies, you will see the movie now
plays as in a gallery embedded screen.. this is not a 100% fix
yet, but to get you started..
first add swf to your util.php file in the IMAGES function so it
should look something like this:
function isImage($tag) {
global $gallery;
return (!strcmp($tag, "jpg") ||
!strcmp($tag, "swf") ||
!strcmp($tag, "gif") ||
!strcmp($tag, "png"));
then add the following to your view_photo.php file (this code is
for Flash 6 (MX) only, you will have to change the code
accordingly for your version of flash.
around line 437 - do a search for "$openAnchor = 0;" and this
is about the location we will be adding information to, now go
down to the ?> end of the php code and you should have
</tr> so before this we will add the following information:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-
444553540000"
codebase="http://download.macromedia.com/
pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
id="movie" ALIGN="">
<PARAM NAME=movie VALUE="<?=$photoURL?>">
<PARAM NAME=quality VALUE=high> <EMBED src="<?
=$photoURL?>"
quality=high bgcolor=#242E55 NAME="movie" ALIGN=""
TYPE="application/x-shockwave-flash" PLUG
INSPAGE="http://www.macromedia.com/go/getflashplayer"></E
MBED>
</OBJECT>
This will allow the flash to play in an embedded gallery window. I
would upload the complete file, but I don't have permission to
do so. I am continuing to work on being able to resize the flash
with the same buttons you resize the images with. Like I said this
is just the start.
Logged In: YES
user_id=621059
my apologizes, I meant to say put the object code after the
</tr> and </table> near line 435
Logged In: YES
user_id=621059
ok here it is.. this will fix the little problem that my previous
code had where it displayed an extra image on the photos in a
white border. Well this will fix it, you just need to make sure that
you specify SWF's as images and not movies. I'm still working on
the resizing bit as well as the image size, but I Will have that
fixed soon. This goes around line: 436
<?php
if ("swf" == substr($photoURL, -3)) {
print ("<OBJECT classid=clsid:D27CDB6E-AE6D-11cf-
96B8-444553540000 codebase=ht
tp://download.macromedia.com/pub/shockwave/cabs/flash/swflas
h.cab#version=6,0,0,0 id=m
ovie>");
print ("<PARAM NAME=movie VALUE=" . $photoURL . ">");
print ("<PARAM NAME=quality VALUE=high>");
print ("<EMBED src=" . $photoURL . "quality=high
bgcolor=#242E55 NAME=movie TY
PE=application/x-shockwave-flash
PLUGINSPAGE=http://www.macromedia.com/go/getflashplay
er></EMBED> </OBJECT>");
}
?>
Logged In: YES
user_id=621059
one more added fix .. this will get rid of the error when
fittowindow attempts to get the size of the swf and returns an
error, it doesn't affect anything but just to be sure your users
don't get the little error saying invalid charater or something
here it is..
you need to add
<?
if ("swf" == substr($photoURL, -3)) {
$imageHeight = 0;
$imageWidth = 0;
}
?>
this will be directly below:
<?
if ($fitToWindow) {
?>
Logged In: NO
Hi, i applied the changes. Now working, but i have problem
with uploading of swf file. For uploading, i must put swf like
movie, download, and turn to image. This is because if i stay
like image, the uploader don't works (probably try to apply the
rules of resizing etc to swf).
Any solution? Thanks for help and support!
JS
Logged In: YES
user_id=978504
see see
http://gallery.menalto.com/modules.php?op=modload&name=phpWiki&file=index&pagename=Most%20Requested%20Features