The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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:
|