The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
I'm making a MOD and running into an annoying issue. I've made a cron, ran by the Scheduled Task Manager that imports posts and sticks them in the database. This is part of the code (which works fine if...) (I first include all the necessary files and note I post them as Guests with a username.) PHP Code:
Hook Location: threadfpdata_start Plugin PHP Code: PHP Code:
But on the live website I then get this if I create a thread: Quote:
Quote:
BTW I run 3.5.7 due to lack of MySQL 4. Thanks! Joe |
#2
|
|||
|
|||
![]()
Let me rephrase this with a working bit of code:
PHP Code:
Rather than building using a hook, which obivously clashes with standard code, I built the validfield definitions straigt into the code, just prior to executing $threaddm->save(): $threaddm->validfields['postusername'] = array(TYPE_STR, REQ_YES); $threaddm->validfields['postuserid'] = array(TYPE_INT, REQ_YES); [case closed] |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|