PDA

View Full Version : Store Hack


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

shovel
07-20-2002, 08:59 PM
&nbsp;&nbsp;&nbsp;&nbsp;First off, I'd consider upgrading. Also, do you have a PHP editor that has a search feature? If so just search for this one line and then you'll have to replace it:
if ($avatarid==0 and (($avatarallowupload or $avatarallowwebsite) and $bbuserinfo[posts] >= $avatarcustomposts)) {

E
07-20-2002, 11:46 PM
and if u cant do that, copy it all too wordpad and search for it there

wolfe
07-21-2002, 02:36 AM
i will upgrade then to VBB 2.2.4 :D