Hey SideKick. I have fixed that problem you have been tlaking about with the having to sumbit twice. Well that problem is due to this hack.
I have fixed it. And I think vbulletin.org should actually use this hack as well.
Ok go to member.php.
change this
Code:
$stylesetlist = "";
if ($allowchangestyles==1) {
$stylesets=$DB_site->query("SELECT * FROM style WHERE userselect=1 ORDER BY title");
if ( !isset($bbuserinfo['realstyleid']) ) {
$bbuserinfo['realstyleid'] = $bbuserinfo['styleid'];
}
while($thisset=$DB_site->fetch_array($stylesets)) {
if ($bbuserinfo['realstyleid']==$thisset['styleid']) {
$selected = "selected";
} else {
$selected = "";
}
$thisid = $thisset['styleid'];
$thisstylename = $thisset['title'];
eval ("\$stylesetlist .= \"".gettemplate("modifyoptions_styleset")."\";");
eval ("\$stylecell = \"".gettemplate("modifyoptions_stylecell")."\";");
}
} else {
$stylecell = "";
}
to this
Code:
$stylesetlist = "";
if ($allowchangestyles==1) {
$styles=$DB_site->query("SELECT styleid,title FROM `style` WHERE userselect='1' ORDER by styleid");
while ($style=$DB_site->fetch_array($styles)) {
$listes=$DB_site->query_first("SELECT COUNT(*) AS nombre FROM `user` WHERE styleid='$style[styleid]'");
$nombre=$listes[nombre];
if ($bbuserinfo[styleid] == $style[styleid]) $select='selected'; else $select='';
eval ("\$stylesetlist .= \"".gettemplate("modifyoptions_styleset")."\";");
}
eval ("\$stylecell = \"".gettemplate("modifyoptions_stylecell")."\";");
if ($styleid!='')
{
$DB_site->query("UPDATE user SET styleid='$styleid' WHERE userid='$bbuserinfo[userid]'");
}
}else{
$stylecell = "";
}
and then change in the templates
modifyoptions_styleset
to this
Code:
<option value="$style[styleid]" $select> $style[title] ($nombre)</option>
This works 100%. I hope u enjoy it.