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 - dave

Pages: [1]
1
...  but still you can't search for it.

Ah, right! It only fixes the suggestion list entries.  :roll:
The umlauts get lost due to the string replacement in ajax-list-keywords.php. But the DB plays a role in it, too!
Hopefully someone has more time to take a deeper look at it ...

2
Cool, this is a really helpfull MOD for our users!  :D
And the umlauts are shown correctly if you overwrite
Code: [Select]
echo $inf["word_id"]."###".$inf["word_text"]."|"; with
Code: [Select]
echo $inf["word_id"]."###".utf8_encode($inf["word_text"])."|";.



3
Discussion & Troubleshooting / Re: Downloading large video files
« on: June 30, 2007, 09:28:17 AM »
Hi rescue911,

I had the same problem with version 1.7.3 and came across your thread yesterday. I fixed it by using PHP's native readfile() in download.php's send_file(). But I have to admit, that my knowledge of PHP is quite limited, so I don't know the pros and cons of the original code compared to readfile(). Therefore I'm just using this function just in case the filesize exceeds MAX_SHOWVIDEO_FILESIZE (defined in global.php).

Anyway ... it seems to work for me. If you want to give it a try ...  :wink:

Ciao
Dave

download.php:
Code: [Select]
function send_file($file_name, $file_path) {
  # [DAVE_START]
  $file_size = @filesize($file_path);
  $big_file = $file_size >= MAX_SHOWVIDEO_FILESIZE; 
 
  if(!$big_file) {
    $data = get_file_data($file_path);
  }
  # [DAVE_END]

  @session_write_close();

header("Cache-Control: no-cache, must-revalidate");
  header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

  if (get_user_os() == "MAC") {
    header("Content-Type: application/x-unknown\n");
    header("Content-Disposition: attachment; filename=\"".$file_name."\"\n");
  }
  elseif (get_browser_info() == "MSIE") {
    $disposition = (!eregi("\.zip$", $file_name)) ? 'attachment' : 'inline';
    header("Content-Disposition: $disposition; filename=\"".$file_name."\"\n");
    header("Content-Type: application/x-ms-download\n");
  }
  elseif (get_browser_info() == "OPERA") {       
    header("Content-Disposition: attachment; filename=\"".$file_name."\"\n");
# [DAVE_START]   
    //header("Content-Type: application/octetstream\n");
    header("Content-Type: application/octet-stream\n");
# [DAVE_END]   
  }
  else {
    header("Content-Disposition: attachment; filename=\"".$file_name."\"\n");
    header("Content-Type: application/octet-stream\n");
  }
  # [DAVE_START]  
  if(!$big_file) {
    header("Content-Length: ".strlen($data)."\n\n");   
    echo $data;
  } else {
    header("Content-Length: ".$file_size."\n\n");
    readfile($file_path);
  }
  # [DAVE_END]
}


4
Feedback & Suggestions / Fehlerhafter Download bei Opera 9
« on: October 06, 2006, 07:57:21 PM »
Hi Jan,

ich hatte die Tage von Version 1.7 auf 1.7.3 umgestellt. Dabei ist mir aufgefallen, dass unter Opera 9.02 die Dateien beim normalen Bild-Download das falsche Dateiformat "sql" als Dateiendung zugewiesen bekommen.

Das Problem liegt anscheinend an der Funktion "send_file" in Zeile 111 von download.php:
[qcode]header("Content-Type: application/octetstream\n");[/qcode]

Wenn ich den Content-Type - so wie für alle anderen Browser außer dem IE - angebe funktioniert es:
[qcode] header("Content-Type: application/octet-stream\n");[/qcode]

Womöglich gilt die Browser-Weiche einfach nur für Opera-Browser der Versionen < 9?

Bye, Dave

PS: Und Danke für 4images! :D

PPS: Falls es Dir bekannt vorkommen sollte, ich hatte leider nicht die MUST READ- Guidelines for posting questions in this forum! durchgelesen und Dir den Text zuvor schon mal per PM geschickt ...:wink:

PPP: Ist zwar offtopic, doch habt Ihr schon mal daran gedacht für 4images und die MODs einen Bug-Tracker wie Bugzilla o. ä. einzusetzen?

5
Mods & Plugins (Releases & Support) / Re: [MOD] Category Image v1.0.2
« on: October 05, 2006, 09:10:35 PM »
@V@no:
Great Mod! :D

But the instructions are a bit misunderstanding, as I thought step 1 would be only necessary for versions 1.7 and 1.7.1.
I had just updated to version 1.7.3 and thus followed only explicit instructions for version 1.7.3... :wink:

Pages: [1]