Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Displaying usernames  (Read 3885 times)

0 Members and 1 Guest are viewing this topic.

Green

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Displaying usernames
« on: April 29, 2005, 07:09:48 pm »

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!
« Last Edit: May 04, 2005, 01:54:58 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Displaying usernames
« Reply #1 on: April 30, 2005, 03:16:55 pm »

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.
Logged

Green

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Displaying usernames
« Reply #2 on: May 04, 2005, 01:54:21 pm »

Managed to figure it out due to your tips, thanks so much for your help!  ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.