ArK
ArK

Reputation: 21068

drupal registration redirect and user details

After registration the user is redirected to a welcome page . How to get display the respective user details in redirected(welcome) page?.

for ex: welcome username . how to get user name in redirected page

Upvotes: 1

Views: 628

Answers (3)

avpaderno
avpaderno

Reputation: 29699

You can use actions, and triggers.
Using them, you can define an action (show message to the user) that is triggered when a user logs in. The action to show a message to the user allows you to use tokens; one of them is for the username.

Upvotes: 1

Craig Hyatt
Craig Hyatt

Reputation: 1191

We do this using the Profile, Blocks, and Views modules. A view could include only the logged in username as you require, but ours also includes several profile fields that logged in users may choose to complete. The view has a block display - we configure that block to display only on certain page paths through the block administration screens.

Upvotes: 2

googletorp
googletorp

Reputation: 33285

When a user is logged in, you always have the global $user object available. So all you really need to do, is to access it and insert the name.

I'm not sure what page your users are redirected to, you can change that, but to alter the output you only need the normal theme/template overwrites that you can do with Drupal.

Upvotes: 2

Related Questions