[Pmwiki-users] $PageSkinsFmt does not work?

Patrick R. Michaud pmichaud
Mon Jan 3 18:59:23 CST 2005


On Tue, Jan 04, 2005 at 12:14:31AM +0100, Spam Account Speedxs wrote:
> I have various problems converting my 1.06 style-sheet skins to 2.0 skins.
> I could convert the 1.0 database without problems to 2.0.

Sorry to hear that -- we'll see if we can work through some of
the difficulties...

> Why does this work in 2.0:
> $PageTemplateFmt = '$SkinDirUrl/renoise.tmpl';
> 
> But this won't? :
> $PageSkinsFmt = '$SkinDirUrl/renoise.tmpl';

There isn't a $PageSkinsFmt variable (there was briefly in 2.0.devel,
but it's been changed to just $Skin).  $Skin should just identify
the name of the directory containing the skin you wish to use.  Or,
you can continue to use $PageTemplateFmt if you wish.

$SkinDirUrl is only set if you use the $Skin variable; otherwise
it's largely unset (or else it's defaulting to pub/skins/pmwiki).
Note that $SkinDirUrl is a *url* and not a filesystem path.


> Also these variables seem to be ignored heavily:
> 
> $UploadDir <http://www.pmwiki.com/wiki/PmWiki/UploadVariables#UploadDir> = 
> "/home/john/public_html/uploads";
> $UploadUrlFmt 
> <http://www.pmwiki.com/wiki/PmWiki/UploadVariables#UploadUrlFmt> = 
> "http://www.john.com/~john/uploads";

I don't know what the <...> are supposed to represent here, but
they should work exactly as before.

> Well, i have offcourse replaced them by my own entries.
> Is the "uploads/$Group/imagefile.ext" being continued or does the system 
> expects all uploads to be in the plain upload folder?

It's continued and should work as before.  If it's not working, I'd
probably need to see a few more details of the actual install to know
what's not working.

> Another thing:
> The uploadDir, (don't know if it works or not) it keeps asking for an 
> upload password while there isn't any set.

There's always an upload password set (by default it's locked) unless 
you set $DefaultPasswords['upload'] to be some other value in your
local configuration file.

> It keeps requesting for it no matter how.

Do you have cookies enabled?  The new authentication system wants to
use session cookies.  If you don't want to require cookies let me know
and I'll create an option for it.

> I'm getting real headaches from this version 2.0 migration and actually the 
> only thing i want to achieve is to generate PDF files using the help from 
> one of the existing modules (which doesn't work in 1.0 and the old cookbook 
> script version for 1.0 has been taken offline)

No, all of the cookbook modules for 1.0 are still online -- they're
at http://www.pmwiki.org/wiki/Cookbook-V1 .

Pm



More information about the pmwiki-users mailing list