[pmwiki-users] quicktime recipe problem

adam overton a at plus1plus1plus.org
Sun Dec 20 03:24:07 CST 2009


hi again
so, i just noticed the very same situation with the (:flash ... :)  
recipe, and it appears on my system that making the same change (as  
seen below) would permit both recipes to accept input in the format:  
Attach:Group./file.ext

Hans, are you still maintainer of the flash recipe? would you be  
opposed to you or i making this update (or a possibly more elegant one)?

thanks!
adam


On 20 Dec 2009, at 12:43 AM, adam overton wrote:

>
> well, this seems to work:
>
> 	if(!strpos($path,"./")) $filepath = FmtPageName("$UploadFileFmt/". 
> $path, $pagename);
> 	else $filepath = FmtPageName("$UploadDir/".str_replace('./','/', 
> $path), $pagename);
>
>
> would appreciate any feedback if there's a more elegant solution
> thx
> a
>
>
>
> On 20 Dec 2009, at 12:28 AM, adam overton wrote:
>
>> hi
>>
>> i'm using the quicktime recipe, and i'm realizing that it won't  
>> allow me to embed files from AnotherGroup - for instance, the  
>> following works:
>>
>> 	(:quicktime Attach:myfile.mp3:)
>>
>> but this fails
>>
>> 	(:quicktime Attach:AnotherGroup./myfile.mp3:)
>>
>> this appears to be occuring b/c of a conditional in the quicktime  
>> recipe:
>>
>> 	$filepath = FmtPageName("$UploadFileFmt/".$path, $pagename);
>> 	$FileUrl = LinkUpload($pagename, $imap, $path, $imap.$path, $imap. 
>> $path, "\$LinkUrl");
>> 	if (!file_exists($filepath))
>> 		return $FileUrl;
>>
>> $filepath is returning an incorrect path:
>> /my/server/public_html/pmwiki/CurrentGroup/AnotherGroup./myfile.mp3
>>
>>
>> i can think of a couple long ways around to correct this, but i'm  
>> wondering if anyone has a suggestion for a quick way to correct  
>> how $filepath & FmtPageName are executing?
>>
>> thanks,
>> adam
>>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20091220/a073cc00/attachment-0001.html 


More information about the pmwiki-users mailing list