Quote:
|
Originally Posted by Chuck S Same as the reviewpost one you noted
In uploadproduct.php add in bold Code: Content visible to verified customers only.
|
ah, o.k., I did not know that the code of both is now so similar. Makes things easier. So I looked in the Reviewpost thread and made the same changes, with one small difference in the prefix .
These are the 2 steps:
1. I added in uploadproduct.php the
'notify' => STRING,
2. In image-inc.php, I searched for this:
----------
if ($notify == "yes") {
$resulta = ppmysql_query("SELECT id FROM {$Globals['pp_db_prefix']}products WHERE userid=$upuserid AND bigimage='$realname'", $link);
list( $productid ) = mysql_fetch_row($resulta);
$resulta = ppmysql_query("INSERT INTO {$Globals['pp_db_prefix']}notify (id,userid,product) values(NULL,$upuserid,$productid)", $link);
}
----------
And replace it with this:
----------
if ($notify == "yes") {
$resulta = ppmysql_query("INSERT INTO {$Globals['pp_db_prefix']}notify (id,userid,product) values(NULL,'{$User['userid']}',$lastproductid)", $link);
}
----------
The difference to reviewpost is here the
['
pp_db_prefix']
In Reviewpost it is ['
rp_db_prefix']
Now it works...