Hi everybody,
I just installed Gallery 2 and I LOVE it
It has quite a lot of useful features.
Now I'm having a little problem - and as I'm new to this *.tpl/inc stuff and having some difficulties.
I don't know how to I could solve the following problem:
I have installes the Ecard module and it works great.
I want the the gallery to insert the username and mailadress EACH time that somebody sends an ecard in a table thats called "friends" which is in the same database as the g2_tables.
I treid some php code, tried also to include php files - nothing worked.
I thought about about adding some kind of "sql sattement" here in the sendecard.ic:
/* Put sender data into session */
$session->put('ecard.from', $form['from']);
if (isset($form['fromName'])) {
$session->put('ecard.fromName', $form['fromName']);
}
/* ??==??? */
$db->setFriends('ecard.from', $form['from']);
/* Send the user to a confirmation page, for now */
$redirect['view'] = 'ecard.Confirmation';
$redirect['itemId'] = (int)$itemId;
$status['sent'] = 1;
} else if (isset($form['action']['cancel'])) {
I hope somebody can help me or at least give some advice,
thanks a lot, melbe