hey folks, bit stumped here! been tryna get the browser to display images with wildcards..
in the main graphical browser i have this code
$draw_image(12,4,$eval(%gb_width%-18),$eval(%gb_width%-20),$if($cwb_fileexists($replace(%path%,%filename_ext%,)cover.jpg),$replace(%path%,%filename_ext%,)cover.jpg,
$if($cwb_fileexists($replace(%path%,%filename_ext%,)folder.jpg),$replace(%path%,%filename_ext%,)folder.jpg,
$if($cwb_fileexists($replace(%path%,%filename_ext%,)folder.jpeg),$replace(%path%,%filename_ext%,)folder.jpeg,
$if($cwb_fileexists($replace(%path%,%filename_ext%,)cover.jpeg),$replace(%path%,%filename_ext%,)cover.jpeg,
$if($cwb_fileexists($replace(%path%,%filename_ext%,)*.jpg),$replace(%path%,%filename_ext%,)*.jpg,.\images\fooAVA\nocoverb234.png))))),255, nokeepaspect)
that seems to work okay for everything except the wildcard entry (have also tried *.* and *)
the problem is pretty much the same with mouse over..
$puts(Cover,$if($cwb_fileexists($replace(%path%,%filename_ext%,)cover.jpg),$replace(%path%,%filename_ext%,)cover.jpg,
$if($cwb_fileexists($replace(%path%,%filename_ext%,)folder.jpg),$replace(%path%,%filename_ext%,)folder.jpg,
$if($cwb_fileexists($replace(%path%,%filename_ext%,)*),$replace(%path%,%filename_ext%,)*,
$if($cwb_fileexists($replace(%path%,%filename_ext%,)*.*),$replace(%path%,%filename_ext%,)*.*,.\ima\fooAVA\nocover.jpg)))))
my head hurts, please help!!
ps the scripts above are in one line.. just put them under each other so the browser wouldnt scroll a mile wide