Link Username to IP Address

Sealie

Joined: 2007-01-10
Posts: 2
Posted: Fri, 2007-01-19 19:48

Hi All,

For 3 weeks now I've had the joy to work with Gallery2. I want to do some customization and possible write a module.

I'm just getting started but I want to make a more detailed user info page than available now (as an custom module).

I know about the $user.userName variable etc. But how can I put the value, corresponding to $user.userName into a regular PHP variable, so I can use the normal PHP value instead of the $user.userName ?

Sorry if I'm vague but I just want to use normal PHP instead of the smarty code etc.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2007-01-19 19:55

in templates, you should use smarty code.
in php files (.class, .inc) you can use php code and assign values to smarty variables.

--------------
Enter the Gallery 2 Theme Contest today!

 
Sealie

Joined: 2007-01-10
Posts: 2
Posted: Fri, 2007-01-19 19:58

Ok, so if I were to work from PHP files, for instance if I would 'abuse' the main.php for a little experiment, and I want to put the $user.userName in a regular PHP variable and echo it, would should I do? I learn best from examples. Thanks in advance people!