Jump to content

pb de position module livezilla


Recommended Posts

Bonjour,

Je n'arrive pas à déplace mon module livezilla vers la droite et de façon qui reste "coller" à l'écran en descendant ou montant sur la page (jespere etre clair ;)

Je ne peux modifier la position via module-position.

Voici le code php que j'ai essayé de modifier : merci d'avance


<?php

class BlockPSELiveZilla extends Module
{
private $_html;

public function __construct()
{
$this->name = 'blockpselivezilla';
$this->tab = 'PShopExpert';
$this->version = '1.0';
parent::__construct();
$this->page = basename(__FILE__, '.php');
if (Configuration::get('PS_PSE_LIVEZILLA')=='')
$this->warning = $this->l('You have not yet configured your LiveZilla!');
$this->displayName = $this->l('PSE LiveZilla Block');
$this->description = $this->l('Adds a block with a live support chat connected to your LiveZilla server');
}

public function install()
{
Configuration::updateValue('PS_PSE_LIVEZILLA','');
if (!parent::install() OR !$this->registerHook('leftColumn'))
return false;
return true;
}

public function uninstall()
{
if (!Configuration::deleteByName('PS_PSE_LIVEZILLA') OR !parent::uninstall())
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('Your LiveZilla live support').'
'.$this->l('Place the LiveZilla code here').'

 


<textarea name="livezillacode" id="livezillacode" cols="80" rows="7">'.Configuration::get('PS_PSE_LIVEZILLA').'</textarea>


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





page.'/help.png" />'.$this->l('Help').'
'.$this->l('Live support application by').' LiveZilla



'.$this->l('Powered by').' PShopExpert';
$lastversion=file_get_contents('http://www.pshopexpert.com/getversion.php?p='.$this->name);
if ($lastversion!='0'){
$lv=split('\.',$lastversion);
$v=split('\.',$this->version);
if (($lv[0] > $v[0]) OR ($lv[0] == $v[0] AND $lv[1] > $v[1]))
$this->_html .='



'.$this->l('New version available on PShopExpert.com! Go to').' PShopExpert.com
';
}
$this->_html .='


</form>
';
}

private function _postProcess()
{
if(isset($_POST['livezillacode'])){
if (Configuration::updateValue('PS_PSE_LIVEZILLA',Tools::getValue('livezillacode'),true))
$this->_html .= '
'.$this->l('LiveZilla code updated').'
';
}
}

function hookLeftColumn($params)
{
global $smarty, $cookie;
$smarty->assign('livezillacode', Configuration::get('PS_PSE_LIVEZILLA'));
return $this->display(__FILE__, 'blockpselivezilla.tpl');
}

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

?>
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...