Displaying usernames Displaying usernames
 

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Displaying usernames

Started by Green, April 29, 2005, 07:09:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Green

This is probably blindingly obvious but...

I'd like to include a members username in a little message underneath the gallery description, example


- Gallery Name -
- Gallery Description -
Hello (user), welcome to the gallery.

... obviously automatically replace (user) with that persons username.

Is it possible?

I've tried things like adding: "Hello {USER_NAME}, welcome to the gallery" but that tag shows up instead of the username.

Sorry to waste your time with simple problems but I've tried everything I can think of and searched everywhere for an answer, it's driving me crazy  ???

Thanks for your help!

Nibbler

You can use the constant USER_NAME, but it has to be in PHP code. If you add it into the template as a placeholder then you have to treat it as a custom header.

Green

Managed to figure it out due to your tips, thanks so much for your help!  ;D