List Info

Thread: Conditional markup based on authuser




Conditional markup based on authuser
user name
2008-01-17 09:04:50
I'm having trouble finding the syntax to check for a logged
in user, if it exists.

I'm using authuser.php, and say my username is weldon.

I'd like to use conditional markup to see if weldon is
logged in or not.

I've tried or would like syntax similar to,

(:if auth weldon
...
(:ifend

Does anyone know if something like this is possible?

Thanks,
Weldon



_______________________________________________
pmwiki-devel mailing list
pmwiki-develpmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Re: Conditional markup based on authuser
country flaguser name
United Kingdom
2008-01-17 10:55:54
Thursday, January 17, 2008, 3:04:50 PM, Weldon wrote:

> I've tried or would like syntax similar to,

> (:if auth weldon
> ...
> (:ifend

try

(:if authid weldon.....

There is also the page variable {$AuthId} which gives the
login name.


Hans


_______________________________________________
pmwiki-devel mailing list
pmwiki-develpmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )