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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • woostar
    Senior Member
    • Aug 2006
    • 155

    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 18 Jul '13, 5:02am.
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73979

    #2
    The best place to ask this is at www.vbulletin.org.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...