[pmwiki-users] How to customize stuff from upload.php

Patrick R. Michaud pmichaud at pobox.com
Sat Feb 11 11:00:48 CST 2006


On Wed, Feb 08, 2006 at 12:10:58PM +0100, Mike wrote:
> I customized my pmwiki by directly modifying upload.php, specifically I
> changed the "Delta;" into a more self-explaining short text. I did it
> twice and it works, but I have no idea what the variables are which I'm
> changing, nor why it appears twice:
> ...
> 
> SDV($LinkUploadCreateFmt, "<a class='createlinktext'
> href='\$LinkUpload'>\$LinkText</a><a class='createlink'
> href='\$LinkUpload'>&nbsp;Click here to update this file!</a>");
> 
> if ($EnableUploadOverwrite)
>       $overwrite = FmtPageName("<a class='createlink'
>         href='\$PageUrl?action=upload&amp;upname=$file'>&nbsp;Click here
> to update this file!</a>",
>         $pagename);

It appears twice because one of them is for links in the main text,
while the other one is used within the (:attachlist:) directive output.

> My question: I'm sure that this could also be achieved by leaving
> upload.php as it is and changing something in the local/groupname.php
> (or in config.php). Can someone please tell me what to write in there?

Unfortunately, the second one doesn't (yet) allow for customization.
I'll try to correct that in a subsequent release.

Pm




More information about the pmwiki-users mailing list