I decided not to go with only the "Open/Save" link...
Instead, I went for another plan.
I want to create two links, one saying "Open in browser", one saying "Open/Save" ...
- The Open/Save button would just be a regular link directly to the file
- The Open in Browser button would be a popup window (such as the "fullsize" popup window) in which the movie is displayed.
So I decided to try and mod this. All the necessary code is in displayimage.php.
A few lines above the line kegobeer modified, there's "
if ($mime_content['content']=='image') {" in which a popup link to the fullsize image is located.
I changed the lines for movies to the same popup link, but now I changed
fullsize=1 to
movie=1 in the link.
Then, with my far too limited knowledge of php I decided to attempt to modify the underlying code to show a small html file for a movie.
My attempt was to copy the
function display_fullsize_pic() and rename it to
function display_movie() and copying the html under it as well, and then modifying it. I think this is pretty much the only solution, except I just can't get it to work!
I actually tried to change it so that the the links would be located at the thumbnails, but seeing as I can't figure out how to make it create a different type of thumbnail for a movie when
$mime-content = movie I didn't have any luck again (I know, I need to learn php lol).