Email notification on record change
21 posts by 6 authors in: Forums > CMS Builder
Last Post: September 14, 2012 (RSS)
By Djulia - August 27, 2012
$query = "SELECT fullname, username, email FROM `{$TABLE_PREFIX}{$_gl_ena_tableName}`
WHERE num = '".intval($_gl_ena_recordNum)."'";
Djulia
Re: [Djulia] Email notification on record change
how do they do it in the membership plugin ???
www.thenetgirl.com
By Djulia - August 27, 2012
Djulia
Re: [Djulia] Email notification on record change
www.thenetgirl.com
Alert record update
Like
<?php foreach ($auto_referralsRecords as $record): ?>
<?php echo $record['name'] ?><br/><br/>
<?php echo $record['email'] ?><br/><br/>
<?php echo $record['contact_phone'] ?><br/><br/>
<?php echo $record['address'] ?> <?php echo $record['city'] ?>,<?php echo $record['state'] ?> <?php echo $record['zip'] ?><br/><br/>
NOTES:<?php echo $record['notes'] ?>
<?php endforeach ?>
not sure what to edit any advice?
www.thenetgirl.com
Re: [thenetgirl] Alert record update
By Djulia - August 28, 2012
[font "Verdana,Arial,Helvetica"][font "Verdana,Arial,Helvetica"]$query = "SELECT * FROM `{$TABLE_PREFIX}{$_gl_ena_tableName}`
WHERE num = '".intval($_gl_ena_recordNum)."'";
Djulia
Re: [Djulia] Alert record update
www.thenetgirl.com
Re: [thenetgirl] Alert record update
By Djulia - August 28, 2012 - edited: August 28, 2012
'placeholders' => array(
'username' => $CURRENT_USER['username'],
'email' => $CURRENT_USER['email'],
'tablename' => $tableName,
'recordnum' => intval(@$_REQUEST['num']),
'title'' => htmlspecialchars(@$_REQUEST['title']),
)
For the user data $CURRENT_USER['column_name']:
'username' => $CURRENT_USER['username'],
'email' => $CURRENT_USER['email'],
...
For the record you obtain the data with @$_REQUEST['column_name']
'recordNum' => intval(@$_REQUEST['num']),
'title' => htmlspecialchars(@$_REQUEST['title']),
...
Then you must add these placeholders in alert-record-saved.mel.php
echo $PLACEHOLDERS['username']
echo $PLACEHOLDERS['email']
echo $PLACEHOLDERS['recordNum']
echo $PLACEHOLDERS['title']
...
Hope this helps. :)
Djulia
Re: [Djulia] Alert record update
By zip222 - August 30, 2012
Re: [zip222] Alert record update
By Djulia - August 31, 2012 - edited: August 31, 2012
http://www.interactivetools.com/iforum/Products_C2/CMS_Builder%3A_Plugins_%26_Add-ons_F40/Alert_Record_Saved_v1.02_P94834/
Djulia