tinycg
10-06-2007, 02:05 PM
I've been up all night, among the things I'm looking to figure out is how to just grab an array out of vB to use in the postbit.
It was suggested I use a plugin architecture after some fiddling earlier. But I'm still having issues, can anyone help??
<?xml version="1.0" encoding="ISO-8859-1"?>
<plugins>
<plugin active="1" executionorder="5" product="vbulletin">
<title>Gamerscore in Postbit</title>
<hookname>postbit_display_start</hookname>
<![CDATA[$usersid = $this->post['userid'];
$xbl = mysql_query("SELECT userid,score FROM " . TABLE_PREFIX . "gxboxlive WHERE userid='$usersid'");
$score = mysql_fetch_array($xbl);]]>
</plugin>
</plugins>
edit: I've also tried db-> fetch etc.. it always gives me an error, this cant be THAT hard.
It was suggested I use a plugin architecture after some fiddling earlier. But I'm still having issues, can anyone help??
<?xml version="1.0" encoding="ISO-8859-1"?>
<plugins>
<plugin active="1" executionorder="5" product="vbulletin">
<title>Gamerscore in Postbit</title>
<hookname>postbit_display_start</hookname>
<![CDATA[$usersid = $this->post['userid'];
$xbl = mysql_query("SELECT userid,score FROM " . TABLE_PREFIX . "gxboxlive WHERE userid='$usersid'");
$score = mysql_fetch_array($xbl);]]>
</plugin>
</plugins>
edit: I've also tried db-> fetch etc.. it always gives me an error, this cant be THAT hard.