Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: [Solved]: setting a cookie for a custom field in comment box?  (Read 1752 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.02 seconds with 19 queries.