Perhaps this is the wrong forum, pleaz correct/move if so... but I'm trying 2 write a Module and I need 2 know the Username/UserID of the person viewing the Module. ie.) I'd like it taylored 2 that person, so I need 2 find out who it is. I've gone through a coup other Modules 2 C what others have done but didn't really come up w/ anything definitive. Can some1 offer some direction?
The Your_Account module checks the users table to verify if a user is Anonymous or registered and who they are logged as.
You are better off looking at a block's code that does this.
For instance, the code for the User_Info block is good to look at in order to find the code you need to query the users.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum