Thursday, August 4, 2011

Yahoo Messenger Module For Presta

Create files: config.xml, ym.php in ym folder.

config.xml codes:

<?xml version="1.0" encoding="UTF-8" ?>
<module>
<name>ym</name>
<displayName>ym</displayName>
<version>1</version>
<description>Yahoo Messenger.</description>
<author>Your Name</author>
<tab>front_office_features</tab>
<is_configurable>0</is_configurable>
<need_instance>1</need_instance>
</module>

ym.php codes:

class Ym extends Module
{
function __construct()
{
$this->name = 'ym';
$this->tab = 'front_office_features';
$this->version = 1.0;
$this->author = 'Your Name';

parent::__construct();

$this->displayName = $this->l('ym');
$this->description = $this->l('Yahoo Messenger.');
}




function hookLeftColumn($params)
{
$this->_html .='<div id="myform_block_left" class="block myform_block">';
$this->_html .= '<h4>'.$this->displayName.'</h4>
<p class="block_content">
<br>
';
$this->_html .='<a href="ymsgr:sendim?vallent_atom"><img border="0" alt="" src="http://opi.yahoo.com/online?u=vallent_atom&amp;m=g&amp;t=2" /> </a>'; /*your id YM*/


$this->_html .='</p> </div>';

return $this->_html;

}

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

}

}

Zip ym folder. And install this component in back office..

This simple way to create YM Module for Presta

0 komentar:

Post a Comment

Thanks a lot for your attention...

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Best Web Hosting