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: [Solved]: setting a cookie for a custom field in comment box?  (Read 1753 times)

0 Members and 1 Guest are viewing this topic.

dills84

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43

im curious what i'd need to edit in order to set cookies for custom fields. I added an "email" and "website" field that write to the comments table in the DB in my comments box. But the only field that is "remembered" is the "msg_author" i looked into the java that sets the cookies but i dont understand whats constructing the data that it uses. if anyone could point me in the right direction, that'd be great. Thanks in advance!
« Last Edit: April 01, 2008, 11:42:49 pm by Joachim Müller »
Logged

Nibbler

  • Guest
Re: setting a cookie for a custom field in comment box?
« Reply #1 on: April 01, 2008, 10:35:23 am »

Add the info into the $USER array in db_input when the comment is posted and extract it in theme_display_comments(). You should be able to copy/paste from the msg_author stuff and just change the names.
Logged

dills84

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
Re: setting a cookie for a custom field in comment box?
« Reply #2 on: April 01, 2008, 04:38:15 pm »

thanks nibbler!
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.