Sorunun çözümünü başka sitede buldum ve buraya ekliyorum.
Sorunu gidermek icin;
- /components/com_messages/ dosyasini olustur
- bu dosyanin icerisine asagidaki kodu,
messages.Class.Php
olarak isimlendirerek / adlandirararak alin ( kes-yapistir)
kod:<?Php /** * @package mambo * @subpackage messages * @author mambo foundation ınc see readme.Php * @copyright (c) 2000 - 2009 mambo foundation ınc. * see copyrıght.Php for copyright notices and details. * @license gnu/gpl version 2, see lıcense.Php * * redistributions of files must retain the above copyright notice. * * mambo is free software; you can redistribute it and/or * modify it under the terms of the gnu general public license * as published by the free software foundation; version 2 of the license. */ /** ensure this file is being included by a parent file */ defined( '_valıd_mos' ) or die( 'direct access to this location is not allowed.' ); class mosmessage extends mosdbtable { /** @var int primary key */ var $message_id=null; /** @var int */ var $user_id_from=null; /** @var int */ var $user_id_to=null; /** @var int */ var $folder_id=null; /** @var datetime */ var $date_time=null; /** @var int */ var $state=null; /** @var int */ var $priority=null; /** @var string */ var $subject=null; /** @var text */ var $message=null; /** * @param database a database connector object */ function mosmessage( &$db ) { $this->mosdbtable( '#__messages', 'message_id', $db ); } function send( $from_id=null, $to_id=null, $subject=null, $message=null ) { global $database; global $mosconfig_site_name; if (is_object( $this )) { $from_id = $from_id ? $from_id : $this->user_id_from; $to_id = $to_id ? $to_id : $this->user_id_to; $subject = $subject ? $subject : $this->subject; $message = $message ? $message : $this->message; } $database->setquery( "select cfg_name, cfg_value" . "\nfrom #__messages_cfg" . "\nwhere user_id='$to_id'" ); $config = $database->loadobjectlist( 'cfg_name' ); $locked = @$config['lock']->cfg_value; $domail = @$config['mail_on_new']->cfg_value; if (!$locked) { $this->user_id_from = $from_id; $this->user_id_to = $to_id; $this->subject = $subject; $this->message = $message; $this->date_time = date( "y-m-d h:i:s" ); if ($this->store()) { if ($domail) { $database->setquery( "select email from #__users where id='$to_id'" ); $recipient = $database->loadresult(); $subject = t_('a new private message has arrived'); $msg = t_('a new private message has arrived'); mosmail($mosconfig_mailfrom, $mosconfig_fromname, $recipient, $subject, $msg); } return true; } } else { if (is_object( $this )) { $this->_error = t_('the user has locked their mailbox. Message failed.'); } } return false; } } ?>
admin panalinden veri gireşinde kaydet butonu çalışmıyor, bu konuda yardım bekliyorum.