[dokuwiki] Re: Changing user to full name

Hi Bob,

> I am looking for the last editor's full name, not the logged in user. So
> I think he was right. It is still at least one lookup away. Users must
> log in before they can edit, so IP addresses should not be an issue.

I'm seeing in "plain.class.php" a function called "getUserData" which
appears to do what you wish; I think this returns an array...

I believe if you say this:
$result = getUserData('username');
echo $result['name'];

That this might be what you want.

Though don't quote me on that, I'm not really an expert with php.

> Is there any way to test changes to a template without switching the
> entire site? I need to make sure my alterations actually work correctly
> before committing them to the live pages.

I used to use a separate testing directory myself, to which when
you're done you can simply "copy over" the template... but I find for
minor(or even "major" things) that may break a template, I can easily
comment out what I just added.

If you'd like you can use a script I used to use to do this (use at
your own risk), I'll post it here temporarily:

http://tatewake.com/wiki/playground:install-test.php

You'll want to change the target directories and such since they're
configured for my template. But your essential config stuff gets
copied.

I haven't looked at the script since last month, so again, make sure
it doesn't do anything weird before you use it.

Good luck,
--
--Terence J. Grant(tjgrant@xxxxxxxxxxxx)
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: