Announcement

Collapse
No announcement yet.

Which hooks should I use to set $this->validfields for new threads?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wayne Luke
    replied
    The best place to ask this is at www.vbulletin.org.

    Leave a comment:


  • Which hooks should I use to set $this->validfields for new threads?

    Hi there,

    I'm saving an extra field to each post (for example: 'member location when posting'). I've managed to do it for new posts by validating the field (hook 'postdata_start' as below) and using $dataman->set

    hook: postdata_start
    PHP Code:
    $this->validfields['myvar'] = array(TYPE_STRREQ_NO); 

    ...BUT I can't save new threads without an error. what is the right hook to validate $this->validfields['myvar'] on a new thread?

    Ta.
    Last edited by woostar; Thu 18th Jul '13, 5:02am.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X