I'm working on a website with 6 other photographers. It would be usefull if each photographer could set he's own Paypal account.
Hmmm...interesting. I see no reason why it can't be done.
You would simply have to add
$owner = $row['owner_id']; to the list of variables defined in the paypal mod section of your displayimage.php or orders.php file (depending one which version of the mod you are using).
Then, in the
// Set paypal ID and currency type section replace
$paypal_ID = "yourpaypalIDi@whatever.com"; with
if ($owner == uploader1)
{$paypal_ID = uploader1's_ID@whatever.com;}
else
if ($owner == uploader2)
{$paypal_ID = uploader2's_ID@whereeverelse.com;}
else
if ($owner == uploader3)
{$paypal_ID = uploader3's_ID@someotherjoint.com;}
etc...
else
{$paypal_ID = modcreator's_ID@my_email.com;} //default ID use mine if you can't think of one
where uploader1,2,3 are the actual owner_id names in your database and uploader's1,2,3_ID are the actual paypal ID's of these owners.
OR do this in the else { } blocks to mask your paypal IDs from spambots.
{
$at1 = "@"; // the sum of these parts make up your paypal email address
$dot = ".";
$typ = "com";
$id1 = "made"; // real id1 (change here)
$id2 = "inhawaii"; // real id2 (change here)
$url = "compuserve"; // real URL (change here)
$paypal_id = $id1 + $id2 + $at1 + $url + $dot + $typ; //<-formula to put it together
}
If the user is one of those listed in the if/else routine, it would swap out the $paypal_ID. You won't be able to mask these ID's with the security feature, however, unless you build your own routines for each instance as shown above.
Also note, these owners must never change their login name. Just their passwords.
Dennis
PS... when are you going to translate the mod into French and upload it in the French support forum? hmmm?
HMMM... as an afterthought, you could put my ID there in the default line. That way, if you make a boo-boo, I could reap the rewards. Fair enough punishment, huh?
Hmmm HMMM... as an after-afterthought. You could apply the same routine to the dropdown list values section so that each user could have their own set of prices.