Autoresponse not generated PM

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Autoresponse not generated PM
tangogc
CZ Newbie
tangogc has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Nov 03, 2004
0.00 posts per day
Posts: 1
Points: 68
   
I have installed the autoresponse mod on nuke 6.5

Every things work fine as admin interface, user profile and save setting and auto test.

But no private message was generated and sent..

No errors when creating a new PM and send it to a user with the autoresponse active....

No Auto message has been generated also checked the DB and there is no update in the pvtmsg table.

Where is the error

Could be involved only the private_message/index.php ?

Attacched my Index for support and review

thanks in advance as usual !



Attached Files
autoresp.zip (22.47 KB, Downloaded: 5233 Time(s))


Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Try replacing this whole section in the Private_Messages/index.php


                // Auto Response Begin
      if ( (($to_userdata['user_level'] == ADMIN && $board_config['auth_auto_response'] == 1) || ($to_userdata['user_level'] == USER && $board_config['auth_auto_response'] == 2) || ($to_userdata['user_level'] == MOD && $board_config['auth_auto_response'] == 1)) && $to_userdata['user_allow_response'] && $to_userdata['user_response_on'] )
      {               
                  $pm_from_user = $to_userdata['user_id'];
         $pm_to_user = $userdata['user_id'];
         $pm_time = time();
         $pm_subject = 'Re: '. $privmsg_subject;
         $pm_text = $to_userdata['user_response'];
         $pm_bbcode_uid = $to_userdata['user_response_bbcode_uid'];

         $sql = "INSERT INTO " . PRIVMSGS_TABLE . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_ip, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig)
            VALUES (" . PRIVMSGS_NEW_MAIL . ", '" . str_replace("\'", "''", $pm_subject) . "', '" . $pm_from_user . "', '" . $pm_to_user . "', $pm_time, '$user_ip', $html_on, $bbcode_on, $smilies_on, $attach_sig)";
         if ( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) )
         {
            message_die(GENERAL_ERROR, "Could not send auto-reply.", "", __LINE__, __FILE__, $sql_info);
         }

         $privmsg_sent_id = $db->sql_nextid();
         $sql = "INSERT INTO " . PRIVMSGS_TEXT_TABLE . " (privmsgs_text_id, privmsgs_bbcode_uid, privmsgs_text)
            VALUES ($privmsg_sent_id, '". $pm_bbcode_uid ."', '" . str_replace("\'", "''", addslashes($pm_text)) . "')";
         if ( !$db->sql_query($sql, END_TRANSACTION) )
         {
            message_die(GENERAL_ERROR, "Could not insert/update auto reply text.", "", __LINE__, __FILE__, $sql_info);
         }

         $sql = "UPDATE " . USERS_TABLE . " SET user_new_privmsg = user_new_privmsg + 1, user_last_privmsg = " . time() . "
            WHERE user_id = '" . $pm_to_user ."'";
         if ( !$result = $db->sql_query($sql) )
         {
            message_die(GENERAL_ERROR, 'Could not update private message new/read status (auto reply) for user.', '', __LINE__, __FILE__, $sql);
         }

         $msg = $lang['Message_sent'].' '. $lang['Auto_response_sent'] . '<br /><br />' . sprintf($lang['Click_return_inbox'], '<a href="' . append_sid("privmsg.$phpEx?folder=inbox") . '">', '</a> ') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
      }
      else
      {
         $msg = $lang['Message_sent'] . '<br /><br />' . sprintf($lang['Click_return_inbox'], '<a href="' . append_sid("privmsg.$phpEx?folder=inbox") . '">', '</a> ') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
      }
      // Auto Response End




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: Autoresponse not generated PM
tango
CZ Newbie
Status: Offline
Joined: Oct 27, 2003
0.00 posts per day
Posts: 4
Points: 148
   
Thanks for your support !

I replaced your code but still nothing icon_sad.gif

I attached all the significative files from the mod for your review....

Is very strange that everything work but no message has generated and non error come up.

Please support me I love your PM mod icon_smile.gif

thanks in advance



Attached Files
autoresp.zip (50.51 KB, Downloaded: 5233 Time(s))


Back to top Reply with quote
#4   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
I will need time to investigate.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   re: Autoresponse not generated PM
tango
CZ Newbie
Status: Offline
Joined: Oct 27, 2003
0.00 posts per day
Posts: 4
Points: 148
   
thanks a lot icon_smile.gif

Any Update m8



Back to top Reply with quote
#6   re: Autoresponse not generated PM
tango
CZ Newbie
Status: Offline
Joined: Oct 27, 2003
0.00 posts per day
Posts: 4
Points: 148
   
Telli please I have this mod installed pending, could you help me plase to fix this problem.

Ask if you need any file

Thanks in advance



Back to top Reply with quote
#7   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Since this problem has never been reported it is hard to see what is going wrong. Double check the full installation and make sure you did everything correctly.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#8   re: Autoresponse not generated PM
tango
CZ Newbie
Status: Offline
Joined: Oct 27, 2003
0.00 posts per day
Posts: 4
Points: 148
   
I did before asking !

I have only a way before removing the mod! If you could double check for me the attached files.

Everythings work ok but no pm message is generated and no error reported.

Thanks



Back to top Reply with quote
#9   
CurtisH
CZ Active Member
 Codezwiz Site Donator
CurtisH has been a member for over 20 year's 20 Year Member
usa.gif texas.gif
Gender: Male
Status: Offline
Joined: Jun 14, 2004
0.02 posts per day
Posts: 112
Points: 5,900
AIM Address Yahoo Messenger  
Deleted by author




_________________
PHP-Nuke and ALL software and/or themes coded to be used with PHP-Nuke are GPL and are FREE to redistribute regardless of what an author may claim.
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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
You cannot attach files in this forum
You cannot download files in this forum