4images Forum & Community
4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: jeddx on April 22, 2005, 02:35:36 AM
-
I have an internal 4images website in the univ. campus, and I want to upload some movies in my gallery,
my question is:
I use URL to add the link in the upload page no direct file upload, the page opens very slowly and it looks like it's downloading or something just to view the uploaded files.
any suggestion to avoid these slowness or catching.
thank you
-
upload it through FTP ;)
-
I am doing that, the same thing. It takes alot of time to open videos' page unlike images page
is there any editing in the configaration files to avoid this problem
-
I really need your help here,
even if I uploaded big files, it looks like that it takes alot of time to open the page,
I tried to put ftp link instead of direct uploading, the same problem
-
yes, its a known problem in 4images...there is no really a fix for that...
[EDIT]
I dont know if it will work:
in includes/functions.php find:function get_gallery_image($image_name) {
Insert above:function get_imagesize($file)
{
if (strpos($file_name, '://')) return false;
return getimagesize($file);
}
Then search for getimagesize and replace all instances with get_imagesize
Also, replace them in details.php and download.php
-
thank you for your reply, but it didnt work.
I tried adding the function you wrote and replacing the function name with the one you provide.
if it helps, I dont need to provide the user with the size of the file,
thank you
-
if it helps, I dont need to provide the user with the size of the file,
are u saying that it shows file size of the remote images???
if so, then u should turn it off in includes/constants.php:// Check existence of remote image files.
// If you choose 1, you could get sometimes timeout errors
define('CHECK_REMOTE_FILES', 0);
-
thank you V@no, I have really learned alot from you,
The default constant for the CHECK_REMOTE_FILES is 0, I didnt change it.
ok maybe this will help you again to solve my problem,
is there any way to put direct link with out uploading it, I meant without redirecting from my server?
all the thanks to you