I was wondering if there is any quick way to obtain information from the optional registration field without having to code an entire PHP Application.
Could you please be a little more informative for the dense people like me? :)
works at bekandloz | plays at technonaturalist
I apologize. However when I set up my site I made the user submit a bunch of additional information, using the Profile module. Now I am wondering if there is any simple way I could use that information in a node. For example the user had to submit their real name. The node would say "Welcome Some Name". I was wondering if there is any easy way to obtain that information without having to code an entire page of PHP. Like when inserting a username you insert (whatever it actually is) and it displays the Username. I was wondering if I could do the same. For example and it would display "Field Contents".
Getting variables isn't that hard.
<?phpecho $user->name; ?>
<?phpecho $user->profile_realname; ?>
Am I completely off the bat here? :)
If you were looking for something drag'n'drop like, thre might be a project somewhere that allows you to do stuff like that, I've been okay with coding so never really looked into it.
i'm having this exact same issue, and tried this solution, however it is not displaying the information from the profile_realname field
Sorry I was running under the assumpion you were making custom profiles. If you're using D5 try adding global $user; somewhere at the top of the page. I know it works for a block but not so certain for a node :|
lets see what others say :)
My internet voluntary services include
1. Helping answer queries on www.krishna.com
2. Learning & Helping in the Vedic section of www.spiritualnectar.com
3. Helped in some aspects to make www.indiapoised.org
4. Learning & ( Helping newbies) on www.
looking forward to it
Drupal is a registered trademark of Dries Buytaert.