2009-11-04, 17:43
Code:
public function get_thumb()
{
global $MODULE;
$MODULE->load("image");
list($thumb) = $this->parent->db->sql_fetchrow($this->parent->db->sql_query("SELECT strPath, strFileName FROM movieview LEFT JOIN files AS f ON (f.idFile = m.idFile)
LEFT JOIN path AS p ON (f.idPath = p.idPath) WHERE idMovie = '".$this->id."'"));
preg_match_all("|<thumb.*>(.*)</thumb>|U",str_replace("mkv", "tbn", $thumb), $matches);
return image::get("movie", $matches[1][0]);
}
here is the part i need to change. im close...but i dont understand php...
honestly rather than mkv; removing the right 3 characters and then adding "tbn" is best.
preg_match_all is probably not needed anymore... i dunno
im trying to get the tbn filepath from the media drive
if anyone could help with this it would be appreciated