Jump to content

msn hakkında


Recommended Posts

Modül ayrıştırma hatası var

1. blockmsn

ARKADASLAR BEN SIZE PHP SAYFASINI VERIYORUM.GEREKLI YERLERI ASIL DOLDURMALIYIM?LTFEN YARDIMCI OLUN

<?php

class BlockMsn extends Module
{
private $_html;

public function __construct()
{
$this->name = 'blockmsn';
$this->tab = 'Prestashopturkiye.com';
$this->version = '0.3';
parent::__construct();
$this->page = basename(__FILE__, '.php');
if (Configuration::get('MSN_KOD')=='')
$this->warning = $this->l('MSN Destek modülü için html kaynak kodu girilmemiş!

Kaynak kodunuzu MSN hesabınızdan oluşturabilirsiniz.

Kaynak kodunuzu altdaki linkten alabilirsiniz: http://settings.messenger.live.com/Applications/WebSettings.aspx?');
$this->displayName = $this->l('MSN Destek Modülü');
$this->description = $this->l('MSN Destek kutusu ekler, müşterileriniz msn hesabı ile giriş yapıp sizinle yazışabilir');
}

function install()
{
if (!Configuration::updateValue('MSN_KOD', '') OR !parent::install() OR !$this->registerHook('leftColumn'))
return false;
if (!Configuration::updateValue('MSN_YAZI', 'Ürün hakkında sorunların için bizimle MSN hesabınız ile yazışabilirsiniz'))
return false;
return true;
}



public function getContent()
{
if(isset($_POST['btnSubmit']))
$this->_postProcess();
$this->_displayForm();
return $this->_html;
}

private function _displayForm()
{
$this->_html .=
'<form action="'.$_SERVER['REQUEST_URI'].'" method="post">


page.'/logo.gif" />'.$this->l('MSN Modülü by PrestaShopTurkiye.com').'
'.$this->l('Lütfen buraya MSN kaynak kodunuzu giriniz').'

 


<textarea name="msnkodu" id="msnkodu" cols="80" rows="7">'.Configuration::get('MSN_KOD').'</textarea><br>


'.$this->l('Lütfen buraya MSN buttonun altında görüntülenecek yazıyı giriniz').'

 


<textarea name="msnyazi" id="msnyazi" cols="80" rows="5">'.Configuration::get('MSN_YAZI').'</textarea>


<input type="submit" name="btnSubmit" class="button" value="'.$this->l('Güncelle').'">





page.'/destek.png" />'.$this->l('PrestaShop Türkçe Destek Portalı').'
'.$this->l('PrestaShop hakkında yardım için').' PrestaShopTürkiye



'.$this->l('MSN kaynak kodunuzu almak için:').' BURAYA TIKLAYINIZ';

$this->_html .='


</form>
';
}

private function _postProcess()
{
if(isset($_POST['msnkodu'])){
if (Configuration::updateValue('MSN_KOD',Tools::getValue('msnkodu'),true))
$this->_html .= '
'.$this->l('MSN kaynak kodunuz güncellendi').'
';
}
if(isset($_POST['msnyazi'])){
if (Configuration::updateValue('MSN_YAZI',Tools::getValue('msnyazi'),true))
$this->_html .= '
'.$this->l('MSN kaynak kodunuz güncellendi').'
';
}

}

function hookLeftColumn($params)
{
global $smarty, $cookie;
$smarty->assign('msnkodu', Configuration::get('MSN_KOD'));
$smarty->assign('msnyazi', Configuration::get('MSN_YAZI'));
return $this->display(__FILE__, 'blockmsn.tpl');
}

function hookRightColumn($params)
{
return $this->hookLeftColumn($params);
}
}

?>
Link to comment
Share on other sites

×
×
  • Create New...