Adds reqesters / senders thumbnail or pic 1 to private photo request email.
This not only adds the members pic but makes it a clickable hyper link to their profile.
Code:in your photo_gallery.php find: $r_arr = db_arr("SELECT ID, NickName, Email, EmailFlag FROM Profiles WHERE ID = ".$_COOKIE['memberID'] ); replace with: $r_arr = db_arr("SELECT * FROM Profiles WHERE ID = ".$_COOKIE['memberID'] ); add below it: //------------------------------------------ $nickname = $r_arr['NickName']; if ( $r_arr['Pic_1_addon'] < "1" ) { $thumbnail = '<a href='.$site[url].$nickname.'><img border=0 src='.$site[url].'templates/tmpl_ae3/images_ae3/pic_not_avail.gif></a>'; } else { $thumbnail = '<a href='.$site[url].$nickname.'><img border=0 src='.$site[url].'id_img/'.$r_arr['ID'].'_1_'.$r_arr['Pic_1_addon'].'.jpg></a>'; } //------------------------------------------ find: $subject = getParam('t_PrivPhotosRequest_subject'); add below: $body = str_replace( "<Thumbnail>", $thumbnail, $body); In your "Request for Private Photos template" email template add <Thumbnail> to your template wherever you what the picture to appear. If you want to display the thumbnail instead of Pic 1 replace all occurances of Pic_1_addon with Pic_0_addon and change _1_ to _0_


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks