|
no wasn't really doubts just was having problems locating the calling part of the code. I want to add something to the body of the email but I don't want to tell you what cause you'll do it in 10 seconds and I want to try to figure it out for myself LOL well hell guess it don't matter.. I'm trying to add the $post_text variable to the end of the body. so i've got body .= $post_text .'\n'; and then I also added , $post_text to the () of the function, only issue is its not pulling the populated variable. I don't know what I'm doing wrong *sigh* Here is my code as I have it... this is in the model/post.php file. function _emailSubscription( $topic_email, $subject, $fid, $tid, $post_text) { $user = &JFactory::getUser(); $pos = strpos( 'a'.$topic_email, $user->get('id') ); if( $pos ) { $subj = JText::_('EMAIL_NOTIFY_ALERT') . ' ' .$subject ; $body = "Dear " . $user->get('username') . ", \n " . "Following topic has been subscribed by you. \n " . "Topic Name : " . $subject . "\n" . 'URL: ' . JRoute::_(JURI::root().'index.php?option=com_ccboard&forum=' . $fid . '&topic=' . $tid ) . "\n" . "Administrator. \n"; $body .= $post_text . "\n"; ccboardHelperConfig::sendMail($user->get('email'), $subj, $body ); }
return true; } Then around line 303 i have this... $this->_emailSubscription( $trow->topic_email, $trow->post_subject, $trow->forum_id, $trow->id, $trow->post_text ); |