$modaltype = $mc->get_modal_type( $table_name , $table_id ); $noti_participated = "<b>$particaptedname</b> $action on <b>$modalownername</b> $modaltype comment: $comment "; $noti_owner = "<b>$particaptedname</b> $action on your $modaltype comment: $comment "; $mc->set_notification_info( $table_name , $table_id , $noti_participated , $noti_owner , 0 , null ); */ // $mc->set_notification_info( $table_name , $table_id , "<span class='fs-text-red'>$rate_type</span>" , $mno2 , 0 ); } // Update user likes owner of the modal $mno3 = $mc->get_modal_owner($table_name, $table_id); if ($table_name == 'fs_postedarticles') { $tLikes = $article1->overAllRating($mno3); echo "total likes {$tLikes} modal owner mno = {$mno3} modal is article <br>"; $db->update('fs_members', array('trating_article' => $tLikes), "mno = " . $mno3); } else { $tLikes = $look1->overAllRating($mno3); echo "total likes {$tLikes} modal owner mno = {$mno3} modal is look <br>"; $db->update('fs_members', array('trating_look' => $tLikes), "mno = " . $mno3); } break; case 'modal-comment-send': // print data echo " \n\t\t \t\t\t\t\tthis is the comment modal sent <br> send <br> sent <br> {$mno} <br>\n\t\t\t\t\t\t\tcomment = {$comment} <br>\n\t\t\t\t\t\t\ttable_id = {$table_id} <br>\n\t\t\t\t\t\t\ttable_name = {$table_name} <br> \n\t\t\t\t\t\t\ttype = {$type} <br> \n\t\t\t\t\t\t"; switch ($type) { case 'edite-save': // echo " this is the edite saved "; $response = $mc->posted_modals_comment_Query(array('cno' => $table_id, 'comment' => $comment, 'comment_query' => 'comment-update')); $mc->message("update comment {$comment} ", $response, ''); break; default: // insert message