No reply mail bug fix for Mambo forum 16-07-2002 Copyright (C) 2002 Emir Sakic Distributed under the terms of the GNU General Public License This information may be used without warranty provided. This source is available at http://www.superbosna.com/mambo_hacks Mambo is Copyright (C) 2000-2001 Miro Construct Pty Ltd Source is available at http://sourceforge.net/projects/mambo Site Name: Mambo Open Source Edition Version 3.0.7 Date: 16/07/2002 Version #: 1.0.0 Comments: Send your comments and suggestions to: saka@hotmail.com Problem: There is a bug that makes private mail sent from mambo forum appears without reply-to address. Solution: There is a code in forum/privateEmail.php that needs to be editted. Please backup your original privateEmail.php file before making any changes. Hack: 1) Open the file privateEmail.php 2) Search for code: $sessionID=$HTTP_COOKIE_VARS["forumusercookie"]; $sessionID=md5($sessionID); $query="select username from session where session_id='$sessionID'"; $result=$database->openConnectionWithReturn($query); list ($sendername)=mysql_fetch_array($result); $emailHTML->emailForm($author, $authorid, $sendername, $usercookie, $forumid); 3) Replace it with following code: $sessionID=$HTTP_COOKIE_VARS["forumusercookie"]; $sessionID=md5($sessionID); $query="select username, userid from session where session_id='$sessionID'"; $result=$database->openConnectionWithReturn($query); list ($sendername, $senderid)=mysql_fetch_array($result); $emailHTML->emailForm($author, $authorid, $sendername, $senderid, $forumid); 4) Done