Quote:
Originally Posted by Gizmo5h1t3
check post #3537
|
Thanks for the reply, however your edited/modified xml file at post #3537 is for ibProArcade addition (I have v3Arcade working great with vbPlaza already)
I need the changes made for the vBookie addition.
Gizmo (or anyone) would you mind having a look and see if you spot something out of the ordinary in the following xml please? Even if it entails me doing the steps manually, however I just can't seem to find what the problem is importing the
product-bookiehack_vbplaza.xml
I have now narrowed it down to this area (rest installs fine)
Code:
<plugin active="1">
<title>vbBux / vbPlaza - vBookie Give User Cash</title>
<hookname>vbookie_give_user_cash</hookname>
<phpcode><![CDATA// check if the user's cash would be negative
$cash = (int)$vbulletin->userinfo[$vbulletin->options['vbbux_pointsfield']];
if (($cash + $amount) < 0)
{
// display error, not enough points
eval(standard_error(fetch_error('vbplaza_not_enough_points')));
}
// give the user cash
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET " . $vbulletin->options['vbbux_pointsfield'] . "=" . $vbulletin->options['vbbux_pointsfield'] . "+" . $amount . " WHERE userid=$userid");]]></phpcode>
</plugin>
Just a note that I had to delete the
executionorder="5" references in the original to make it work this far.