Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 03:24 pm EST
Geeklog Forums
How to use the 'embed movie files' mod w/ geeklog/gallery integration?
BTW, before you start reading let me tell that this is a question and not some solution.
I was going through the forums at gallery and found a post titled Release: Embedded Movie Files for Gallery. It reads:
The zipped file having these three php files can be downloaded from here.
I already have the Gallery v1.4-pl1 integrated in my geeklog site at my site using the hack I downloaded from here.
I tried using this 'embed movie files' mod thus:
1) I replaced the following code from util.php of gallerymovie\gallery (after downloading from the above link and extracting) [Lines 843-869]:
if ($albumName) {
$target = "$albumName";
// Can't have photo without album
if ($photoId) {
$target .= "/$photoId";
}
} else {
$target = "albums.php";
}
} else {
if ($albumName) {
$args["set_albumName"] = "$albumName";
if ($photoId) {
$target = "view_photo.php";
$args["id"] = "$photoId";
} else {
$target = "view_album.php";
}
} else {
$target = "albums.php";
}
}
return makeGalleryUrl($target, $args);
}
with the following code from util.php of geeklog.1.3.8-gallery.1.4-pl1 [Lines 972-998]:
if ($albumName) {
$target = urlencode ($albumName);
// Can't have photo without album
if ($photoId) {
$target .= "/".urlencode ($photoId);
}
} else {
$target = "albums.php";
}
} else {
if ($albumName) {
$args["set_albumName"] = urlencode ($albumName);
if ($photoId) {
$target = "view_photo.php";
$args["id"] = urlencode ($photoId);
} else {
$target = "view_album.php";
}
} else {
$target = "albums.php";
}
}
return makeGalleryUrl($target, $args);
}
2) Replaced the existing view_photo.php and view_album.php in my webserver w/ those from gallerymovie\gallery\
So finally when I go to http://www.teluguvaariki.com/gallery/, this appears:
Fatal error: Call to undefined function: getos() in /home/triggers/public_html/gallery/init.php on line 91
Line 91 of init.php reads: if (getOS() == OS_WINDOWS) {
I am guessing there is more to it than just editing the above piece of code and replacing the files mentioned above but don't know what. I am just an average user of geeklog/gallery and am not a programmer. Can anyone kindly point out the correct way to achieve what I am trying to do here?
Thanks in anticipation.
(I have currently replaced the three php files w/ working ones of geeklog-gallery integration at my site, so you will not see the above error msg there)
I was going through the forums at gallery and found a post titled Release: Embedded Movie Files for Gallery. It reads:
This script modification will detect what type of movie file has been uploaded and load the according movie player when the user tries to view it. The file will play automatically. unzip the three files: view_album.php, view_photo.php, and util.php into gallery/ and then upload whatever type of movie you like, currently Windows Media, Quicktime, and Real Media are supported.
The zipped file having these three php files can be downloaded from here.
I already have the Gallery v1.4-pl1 integrated in my geeklog site at my site using the hack I downloaded from here.
I tried using this 'embed movie files' mod thus:
1) I replaced the following code from util.php of gallerymovie\gallery (after downloading from the above link and extracting) [Lines 843-869]:
Text Formatted Code
if (!$GALLERY_EMBEDDED_INSIDE && $gallery->app->feature["rewrite"]) {if ($albumName) {
$target = "$albumName";
// Can't have photo without album
if ($photoId) {
$target .= "/$photoId";
}
} else {
$target = "albums.php";
}
} else {
if ($albumName) {
$args["set_albumName"] = "$albumName";
if ($photoId) {
$target = "view_photo.php";
$args["id"] = "$photoId";
} else {
$target = "view_album.php";
}
} else {
$target = "albums.php";
}
}
return makeGalleryUrl($target, $args);
}
with the following code from util.php of geeklog.1.3.8-gallery.1.4-pl1 [Lines 972-998]:
Text Formatted Code
if ($gallery->app->feature["rewrite"]) {if ($albumName) {
$target = urlencode ($albumName);
// Can't have photo without album
if ($photoId) {
$target .= "/".urlencode ($photoId);
}
} else {
$target = "albums.php";
}
} else {
if ($albumName) {
$args["set_albumName"] = urlencode ($albumName);
if ($photoId) {
$target = "view_photo.php";
$args["id"] = urlencode ($photoId);
} else {
$target = "view_album.php";
}
} else {
$target = "albums.php";
}
}
return makeGalleryUrl($target, $args);
}
2) Replaced the existing view_photo.php and view_album.php in my webserver w/ those from gallerymovie\gallery\
So finally when I go to http://www.teluguvaariki.com/gallery/, this appears:
Fatal error: Call to undefined function: getos() in /home/triggers/public_html/gallery/init.php on line 91
Line 91 of init.php reads: if (getOS() == OS_WINDOWS) {
I am guessing there is more to it than just editing the above piece of code and replacing the files mentioned above but don't know what. I am just an average user of geeklog/gallery and am not a programmer. Can anyone kindly point out the correct way to achieve what I am trying to do here?
Thanks in anticipation.
(I have currently replaced the three php files w/ working ones of geeklog-gallery integration at my site, so you will not see the above error msg there)
8
11
Quote
jens
Anonymous
Sorry, cant help u with your problem.<br />But I like the theme u have, where can I get it ?<br /><br />jens
9
9
Quote
It is 'TabularDynamics'. http://www.geeklog.net/filemgmt/viewcat.php?cid=1
10
9
Quote
All times are EST. The time is now 03:24 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content