wolfe
07-20-2002, 03:12 PM
what the problem is i got VBB 2.2.0 and the Store hack is for VBB 2.2.4
but everything edits ok apart from this bit in the member.php i can find what to replace :D
please help
OPEN ROOT/member.php(look twice on the instructions)
**********************************
Find (around line 960):
if ($avatarid==0 and (($avatarallowupload or $avatarallowwebsite) and $bbuserinfo[posts] >= $avatarcustomposts)) {
// using custom avatar
$filename="";
if ($bbuserinfo['posts']<$avatarcustomposts) {
eval("standarderror(\"".gettemplate("error_avatarmoreposts")."\");");
// not enough posts error
exit;
}
CHANGE it to:
if ($avatarid==0 and ($avatarallowupload or $avatarallowwebsite)) {
// using custom avatar
$filename="";
if (isset($storeavatar)) {
$lala="";
} else {
if ($bbuserinfo['posts']<$avatarcustomposts) {
eval("standarderror(\"".gettemplate("error_avatarmoreposts")."\");");
// not enough posts error
exit;
}
}
tried changing
if ($useavatar) {
if ($avatarid==0) {
// using custom avatar
$filename="";
if ($bbuserinfo['posts']<$avatarcustomposts) {
eval("standarderror(\"".gettemplate("error_avatarmoreposts")."\");");
// not enough posts error
exit;
}
to:
if ($avatarid==0 and ($avatarallowupload or $avatarallowwebsite)) {
// using custom avatar
$filename="";
if (isset($storeavatar)) {
$lala="";
} else {
if ($bbuserinfo['posts']<$avatarcustomposts) {
eval("standarderror(\"".gettemplate("error_avatarmoreposts")."\");");
// not enough posts error
exit;
}
}
but got an error
also i can't find
Find (around line 1001):
} elseif ($avatarallowupload and $bbuserinfo[posts] >= $avatarcustomposts) {
CHANGE it to:
} elseif ($avatarallowupload) {
and another problem is that the hack was working great for a while now when new members sign up the storep in the user table of the DB goes to NULL :( please help me out :D
but everything edits ok apart from this bit in the member.php i can find what to replace :D
please help
OPEN ROOT/member.php(look twice on the instructions)
**********************************
Find (around line 960):
if ($avatarid==0 and (($avatarallowupload or $avatarallowwebsite) and $bbuserinfo[posts] >= $avatarcustomposts)) {
// using custom avatar
$filename="";
if ($bbuserinfo['posts']<$avatarcustomposts) {
eval("standarderror(\"".gettemplate("error_avatarmoreposts")."\");");
// not enough posts error
exit;
}
CHANGE it to:
if ($avatarid==0 and ($avatarallowupload or $avatarallowwebsite)) {
// using custom avatar
$filename="";
if (isset($storeavatar)) {
$lala="";
} else {
if ($bbuserinfo['posts']<$avatarcustomposts) {
eval("standarderror(\"".gettemplate("error_avatarmoreposts")."\");");
// not enough posts error
exit;
}
}
tried changing
if ($useavatar) {
if ($avatarid==0) {
// using custom avatar
$filename="";
if ($bbuserinfo['posts']<$avatarcustomposts) {
eval("standarderror(\"".gettemplate("error_avatarmoreposts")."\");");
// not enough posts error
exit;
}
to:
if ($avatarid==0 and ($avatarallowupload or $avatarallowwebsite)) {
// using custom avatar
$filename="";
if (isset($storeavatar)) {
$lala="";
} else {
if ($bbuserinfo['posts']<$avatarcustomposts) {
eval("standarderror(\"".gettemplate("error_avatarmoreposts")."\");");
// not enough posts error
exit;
}
}
but got an error
also i can't find
Find (around line 1001):
} elseif ($avatarallowupload and $bbuserinfo[posts] >= $avatarcustomposts) {
CHANGE it to:
} elseif ($avatarallowupload) {
and another problem is that the hack was working great for a while now when new members sign up the storep in the user table of the DB goes to NULL :( please help me out :D