Author Topic: .flv Thumbnails ?  (Read 4632 times)

0 Members and 1 Guest are viewing this topic.

Offline hoho

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
.flv Thumbnails ?
« on: February 03, 2008, 09:25:24 PM »
Hallo Leute.

Wie erstelle ich die thumbnails für die flv. dateien was ich hochlade.wenn ich beim hochladen der flv. datei
mein eigenes thumbnail hochlade kommt die fehlermeldung

Fatal error: Call to undefined function: get_basefile() in /www/htdocs/w008/admin/images.php on line 486

was ist los ?

gruss
hoho

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: .flv Thumbnails ?
« Reply #1 on: February 03, 2008, 09:31:02 PM »
In includes/functions.php file,

Hinzufügen:

Code: [Select]
function get_basename($path) {
  $path = str_replace("\\", "/", $path);
  $name = substr(strrchr($path, "/"), 1);
  return $name ? $name : $path;
}

function get_basefile($path) {
  $basename = get_basename($path);
  preg_match("/(.+)\?(.+)/", $basename, $regs);
  return isset($regs[1]) ? $regs[1] : $basename;
}
« Last Edit: August 27, 2011, 01:54:30 PM by thunderstrike »
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline hoho

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: .flv Thumbnails ?
« Reply #2 on: February 03, 2008, 09:37:00 PM »
Greaat  :lol:

Thanks !!!!!