WebGUI
      Click here to register.
      
irc://irc.freenode.net#webgui

iPhoneGuy: WebGUI is a pile of crap.
rizen: If WebGUI is such a pile of crap, why do you use it?
iPhoneGuy: Because it's the best pile of crap out there.

If this is what people who hate us are saying, imagine what people who love us will say. Come join us on IRC.

User1 Macro for 6.8.0+

User: crythias
Date: 12/17/2005 5:51 pm
Views: 1797
Rating: 13    Rate [
|
]

If you're paying attention to migration.txt, you'll see that you'll need to upgrade your macros prior to upgrading to 6.8.x+

This is the painless upgrade: drop this on top of the other User1.pm.

It goes in WebGUI/lib/WebGUI/Macro/

If haven't already done so, you'll need to change your .conf to accomodate this macro (add something like User1 => User1, \ in the macros section of your .conf) 

What does it do? It allows you to pull a visible field from a (not the current user) user's profile.

What is it useful for?  Anything that would list other users. A CS might use it in its templates to list, if available, the IM methods allowed by a user. You might use it to provide a real name, or anything else that is in the user's profile that would normally be seen if you clicked on the user name.

How do you use it? /\User1(profileFieldName,userId); 

Please let me know your findings.

Update 12/18/05 Removed Errant $.

Update 12/19/05 bugfix.

Update 12/19/05 missing dependencies.
--
Maintainer of an unofficial WebGUI FAQ Please contribute questions or answers!
When asking questions on this forum, please indicate (at least) which version of WebGUI you are using. Optional, but sometimes helpful, are your Operating System name and version, PERL version, and Apache version. The little icons next to my picture indicate my IM status. Yes, you are welcome to IM me. I am not an employee of Plain Black. My offers of assistance are subject to the general disclaimer of this discussion board that my answer may be completely wrong. Have a great day!

www.gwy.org U2U

 


Replies

PreviousBackNext