Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ushkand

Pages: [1] 2
1
and I know what the problem is - I have more than 50,000 members and when I try to edit a image, 4images tries to load all 50,000 members under uploaded by field. I know Jan had a hack to change this to stop loading all the users and just load the uploader's name. I have tried to find the hack but have been unsuccessful so far. Can someone point me to the hack or help me change the code to stop loading all users in the edit image page?

Thanks.

2
Quote
I dont understand what's the problem to set download URL that pointing to the videos?


Sorry for not being clear. When a member uploads a video to the site, I want that video path (http://www.site.com/data/media/1/video1.avi) to be populated in the database under the download url automatically. The user uploads both the thumbnail and image for the video along with the video.

When the user clicks on the thumbnail, it takes them to the details page where they see the bigger image and video can be downloaded by clicking on the download image. Basically I want the member uploads to work the same way as Admin upload except that the members do not have to give the Download URL part but just upload the video and the script automatically gets the video path.

Hope I am clear in describing the issue. Thanks.

3
Come on guys. Please help I am desperate.

4
I am currently serving videos and I have member Upload feature turned on at my site. The problem I am having is with the server play. I do not want these videos to be played on the server but just be available for download. I want these uploaded videos to be saved under a particular folder and the images tables updated with that link in the Download URL field. Is there anyway this can be done?

Thanks in advance.

5
I am currently serving videos and I have member Upload feature turned on at my site. The problem I am having is with the server play. I do not want these videos to be played on the server but just be available for download. I want these uploaded videos to be saved under a particular folder and the images tables updated with that link in the Download URL field. Is there anyway this can be done?

Thanks in advance.

6
Based on your suggestion a while ago, I had changed the download.php like this:

Quote

I just found witch code does this - in download.php :Code:


$remote_url = 0;
  if (!empty($image_row['image_download_url'])) {
    if (is_remote_file($image_row['image_download_url']) || is_local_file($image_row['image_download_url'])) {
      ereg("(.+)\.(.+)", basename($image_row['image_download_url']), $regs);
      $file_name = $regs[1];
      $file_extension = $regs[2];

      $file['file_name'] = $file_name.(($size) ? "_".$size : "").".".$file_extension;
      $file['file_path'] = dirname($image_row['image_download_url'])."/".$file['file_name'];
    }
    else {
      $file['file_path'] = $image_row['image_download_url'];
      $remote_url = 1;
    }
  }


 
if this code change to this:Code:


$remote_url = 0;
  if (!empty($image_row['image_download_url'])) {
      $file['file_path'] = $image_row['image_download_url'];
      $remote_url = 1;
 }


 
then 4images script wont download file, it will just through the link to the user, but....it might not work properly, because the link will work as "open" not "save as".


I was having problems downloading files larger than 25MB using the original download.php. Making this changes now lets me server videos as big as I want. The link to the post describing the problem

http://4homepages.de/forum/viewtopic.php?p=15620&highlight=#15620


Code: [Select]
# Disable image hot-linking
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.*/.*$ [NC]
RewriteRule [^/]+.(gif|avi|mpg|jpg|png)$ http://www.domain.com/No_Access.gif [R,L]


So if use this, the only thing that its going to affect is the server play right? I don't want the videos to be played on the page but just be available for download. As long as someone can't access the files directly from a download URL, I should be ok.

7
Quote from: Chris
Well perhaps this will illustrate my suggestion better.

1. Create a new user group called "PaidMembers"
2. Set the "Download" permission for each category to "Private"
3. Now edit the "Permissions" for the user group "PaidMembers" and set the download for each category to "Yes"

When a registered user remits payment, place that user in the "PaidMembers" user group.

This should work, shouldn't it?


Chris this is exactly what I am doing right now. Like v@no says, any paid member can easily get the download link (direct url to the videos) and share it with others. These other visitors can just type in the direct url of the video and download them.

Quote
they .htaccess for antileech will kill ability play video/audio files on the page...


I am not using any server play. Is there any way I can set the .htaccess to let videos be download only through download.php and not with a direct url link?

8
Quote
That's going to be a big load on your php processes.


Can you guys suggest of a better way to protect the videos? Though the scripts masks the download url, netscape users can easily get the direct url link. I figured placing videos outside webroot would be the most secure way.

Btw v@no, where do I place this code in download.php? and

Code: [Select]
$file = "e:/iguana.jpg"; Could I replace this with the Download URL parameter?

9
I am on a dedicated server so that shouldn't be a problem. Since all the files are going to be .AVI, could I not set download.php to tell browser by default that it is a video files without having to reading each and every file everytime someone downloads a file?

10
I had originally posted in Troubleshooting but since it requires some kind of MOD to enable this, I am posting it again here in hope of someone helping me with a solution.

Here is my predicament: I am serving video files via the script and disabled server play so that members can only download the files. As these files will be available for paid members only, I'd like to protect them by placing them below the webroot.

I am using the downlaod URL field to tell Download.php where the file is. Everything seems to be working ok, till I try to play the video downloaded this way. For some reason the file seems to be corrupted, even though the size and everything else is the same. I am guessing the file header is getting screwed. How do I fix this so that the videos downloaded from below the webroot play fine? I am serving mostly .AVI files.

11
can download.php be modified to read the file headers? I desperately need this to work. Thanks for your help.

12
Ok, finally bought the commercial license as I went commercial last week. :) Here is my predicament: I am serving video files via the script and disabled server play so that members can only download the files. As these files will be available for paid members only, I'd like to protect them by placing them below the webroot.

I am using the downlaod URL field to tell Download.php where the file is. Everything seems to be working ok, till I try to play the video downloaded this way. For some reason the file seems to be corrupted, even though the size and everything else is the same. I am guessing the file header is getting screwed. How do I fix this so that the videos downloaded from below the webroot play fine? I am serving mostly .AVI files.

13
Thanks v@no for the reply. Is it hard to do that? I mean, since the image table already has the image_date field, can we somehow make that field searchable using the 'making additional fields searchable' option?

14
I am trying to set up a calendar with dates linking to updates for that particular day. This way a visitor can go as far as he/she wants to see what was uploaded on what date. Is there a built-in search function in 4images to do that or is there a mod available to add this feature?

Thanks for your help.

15
Discussion & Troubleshooting / Videos and download issues
« on: January 27, 2003, 07:40:31 PM »
I set all these to maximum values but still having the same problem. Jan, may be you can help me fix this - Why does the file rename itself to download.htm when its size is greater than 25MB? Please help me!

Pages: [1] 2