I would rather keep the IM style entry because I have it in the post bit along with wii code and Xfire profile and the other IM goodies, also it just looks cleaner in the user options.
How does the query draw the value from the field? If it is a single query that fetches the player's value it seems like it would not be a big deal to point it at something else.
In gxboxlive.php I see this part of the code:
Code:
if (is_numeric($vbulletin->options['gxbl_user_field']) && $vbulletin->options['gxbl_user_field'] != '0')
{
$gxbl_user_field = "field" . $vbulletin->options['gxbl_user_field'];
} else {
$gxbl_user_field = $vbulletin->options['gxbl_user_field'];
}
Is this the only point where the system looks for the value of the field? if it is could I in theory change it so it is not looking for a numeric value and change the value to look in a field with a name? such as
Code:
if ($bbuserinfo[xbox] != '0')
{
$gxbl_user_field = $bbuserinfo[xbox]
}
$bbuserinfo[xbox] is the name of the field that already exists in the user options.
Quote:
Originally Posted by Gryphon
Unfortunately it is a bit more involved than replacing the variable, the cron job would need the queries re-written for one as well as some other checks in place that expect an id.
Another solution would be to use a query to move every body's IM style entries to a profile field and then remove the IM style mod.
|