The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
newreply hook doesnt seem to use the plugin
can anyone see anything wrong with this, because it doesnt seem to want to work
Code:
<hookname>newreply_post_complete</hookname> <phpcode><![CDATA[ require_once(DIR . '/includes/class_core.php'); require_once(DIR . '/includes/class_bitfield_builder.php'); vB_Database::select_db(); $db->Query_write("INSERT INTO testingtable (misc) VALUES ('testing')"); $db->show_errors(); vB_Bitfield_Builder::save($db); ]]></phpcode> |
#2
|
|||
|
|||
I don't see why you need these includes, the select_db() or even the vB_Bitfield_Builder::save().
Other then that you should use $db->query_write (no capital Q). |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|