- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 66 guest(s) and 0 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Best Picture Gallery For Nuke [ ]
Poll :: Which Gallery Module Do You use?
Coppermine
35%
[ 14 ]
My eGallery
23%
[ 9 ]
Gallery
30%
[ 12 ]
Other
10%
[ 4 ]
Total Votes : 39
Author
Message
georgiaguy
Sergeant
Joined: Jun 13, 2003
Posts: 98
Posted:
Wed Jun 25, 2003 7:18 am
here ya go.
open add_comment.php. after the lines reading:
Code:
if (!strcmp($submit, "Save")) {
if ($commenter_name && $comment_text) {
$comment_text = removeTags($comment_text);
$commenter_name = removeTags($commenter_name);
$IPNumber = $HTTP_SERVER_VARS['REMOTE_ADDR'];
$gallery->album->addComment($index, stripslashes($comment_text), $IPNumber, $commenter_name);
$gallery->album->save();
dismissAndReload();
add the following:
Code:
mail("your@email.address", "Gallery comment added",
"Added by: ".$commenter_name .
"\nComment: " .
$comment_text . "\nIP Address: " .
$IPNumber .
"\nPhoto Index: ".$gallery->album->getPhotoId($index)."\n".
"Root Album Name: ".$gallery->album->getRootAlbumName()."\n".
"Album Title: ".$gallery->album->fields['title'],"From: bogus@email.address ");
with each comment added, you'll get an email like this:
Code:
Added by: billybob
Comment: nice pix
IP Address: 130.207.xxx.xxx
Photo Index: P3070223
Root Album Name: hopeandsugar
Album Title: March 2003
snarfies3
Nuke Soldier
Joined: May 24, 2003
Posts: 22
Posted:
Wed Jun 25, 2003 2:34 pm
Oh, nice, thanks! Now if I can ever get my friggin' site back online... grr.
Goto page Previous 1 , 2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum