The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
When creating new thread, what variable holds the post text?
I'm trying to fix up the "Auto-Moderation by Keywords" mod because it doesn't seem to work in VB 3.6 (at least for me). The problem is that although it works for replies to messages, it will not moderate new threads.
The plugin uses the following code: Code:
if (str_replace(explode(',', $this->registry->options['automodkeywords']), '', strtolower($this->fetch_field('pagetext'))) != strtolower($this->fetch_field('pagetext'))) { $this->set('visible', 0); } The problem seems to be in the $this->fetch_field('pagetext') code - it seems to be invalid/blank on the threadfpdata_presave hook. Any idea what to use instead on VB 3.6.0? Thanks in advance. I'm a newbie. |
#2
|
||||
|
||||
Try $this->fetch_field('pagetext', 'post') - I think it defaults to the thread fields in that class.
|
#3
|
|||
|
|||
Awesome that did it. Thanks.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|