Editing Admin Notification Email
Author: JojoMart
Added: February 1, 2007
A big thanks to Jojomart for providing a method for changing the contents of the admin notification email, allowing the admin to see the category the user has submitted, as well as providing the info needed for making other changes. Her message follows
I changed the include/constants.php file so that I would get the full Category Title and URL when someone submits, and notification is sent to me. It makes it a whole lot easier to figure out if they've submitted to the correct category/subcategory!
Here's the original file code:
$notif_msg = array (
'submit' => array (
'SUBJECT' => 'New link submited at {MY_SITE_URL}',
"BODY" => "Title: {LINK_TITLE}\n" .
"URL: {LINK_URL}\n" .
"PageRank: {LINK_PAGERANK}\n" .
"Description:\n {LINK_DESCRIPTION}\n" .
"Owner Name: {LINK_OWNER_NAME}\n" .
"Owner Email: {LINK_OWNER_EMAIL}\n" .
"Reciprocal URL: {LINK_RECPR_URL}\n" .
"Reciprocal PageRank: {LINK_RECPR_PAGERANK}\n"
and I changed it like this:
$notif_msg = array (
'submit' => array (
'SUBJECT' => 'New link submited at {MY_SITE_URL}',
"BODY" => "Title: {LINK_TITLE}\n" .
"URL: {LINK_URL}\n" .
"PageRank: {LINK_PAGERANK}\n" .
"Description:\n {LINK_DESCRIPTION}\n" .
"Owner Name: {LINK_OWNER_NAME}\n" .
"Owner Email: {LINK_OWNER_EMAIL}\n" .
"Category Title: {LINK_CATEGORY_TITLE}\n" . \\new line I added
"Category URL: {LINK_CATEGORY_URL}\n" . \\new line I added
"Reciprocal URL: {LINK_RECPR_URL}\n" .
"Reciprocal PageRank: {LINK_RECPR_PAGERANK}\n"
And here are the two extra lines I receive in my notification now:
the link isn't truncated in my email, don't know why it does it here lol
Hope this helps!
Joanne