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: Registered users will "own" their username  (Read 3328 times)

0 Members and 1 Guest are viewing this topic.

M2H

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Registered users will "own" their username
« on: April 29, 2004, 11:47:29 pm »

I'de like to see this feature:
Registered users will "own" their username, so not logged in persons cannot act if like they are "mike"cuz they did not register mike.
They can use unregistered names though.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Registered users will "own" their username
« Reply #1 on: April 30, 2004, 09:14:24 am »

don't let unregistered users post comments and the whole mess with guests posing as users should be over...

GauGau
Logged

Djuri

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Registered users will "own" their username
« Reply #2 on: May 04, 2004, 11:56:18 am »

Maybe it would be handy to give guests another color when they're posting, or a prefix/suffix.
Logged

Nibbler

  • Guest
Re: Registered users will "own" their username
« Reply #3 on: May 07, 2004, 07:26:51 pm »

Just change the query in db_input.php from:

Code: [Select]
$insert = db_query("INSERT INTO {$CONFIG['TABLE_COMMENTS']} (pid, msg_author, msg_body, msg_date, author_md5_id, author_id, msg_raw_ip, msg_hdr_ip) VALUES ('$pid', '$msg_author', '$msg_body', NOW(), '{$USER['ID']}', '0', '$raw_ip', '$hdr_ip')");

to

Code: [Select]
$insert = db_query("INSERT INTO {$CONFIG['TABLE_COMMENTS']} (pid, msg_author, msg_body, msg_date, author_md5_id, author_id, msg_raw_ip, msg_hdr_ip) VALUES ('$pid', '$msg_author (guest)', '$msg_body', NOW(), '{$USER['ID']}', '0', '$raw_ip', '$hdr_ip')");

Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 20 queries.