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.
Posts: 32509
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!
Posts: 2
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!