[Solved]: setting a cookie for a custom field in comment box? [Solved]: setting a cookie for a custom field in comment box?
 

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

[Solved]: setting a cookie for a custom field in comment box?

Started by dills84, April 01, 2008, 04:11:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dills84

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!

Nibbler

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.