<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — 2.3 - Extensions. How ?]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1698&amp;type=atom" />
	<updated>2015-03-03T13:56:07Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=1698</id>
		<entry>
			<title type="html"><![CDATA[Re: 2.3 - Extensions. How ?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22758#p22758" />
			<content type="html"><![CDATA[<p>There is no official payroll extension in FA as yet. Where did you get the clone? If it is made for an older version of FA, you will have to adjust it for FA 2.3.x</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-03-03T13:56:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22758#p22758</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.3 - Extensions. How ?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22742#p22742" />
			<content type="html"><![CDATA[<p>hi <br />i try to add payroll extension&nbsp; <br />i take clone files and put it at modules folder with name &quot;payroll&quot;<br />then , i go to installed extension and add this code <br />//======<br /> 6 =&gt;&nbsp; <br />&nbsp; array (<br />&nbsp; &nbsp; &#039;name&#039; =&gt; &#039;payroll&#039;,<br />&nbsp; &nbsp; &#039;package&#039; =&gt; &#039;payroll&#039;,<br />&nbsp; &nbsp; &#039;version&#039; =&gt; &#039;2.3.0-5&#039;,<br />&nbsp; &nbsp; &#039;type&#039; =&gt; &#039;extension&#039;,<br />&nbsp; &nbsp; &#039;active&#039; =&gt; true,<br />&nbsp; &nbsp; &#039;path&#039; =&gt; &#039;modules/payroll&#039;,<br />&nbsp; ),<br />//====== </p><p>first is this right step <br />second error appear </p><p>Fatal error: Class &#039;references&#039; not found in C:\xampp\htdocs\ac\includes\session.inc on line 428</p><p>thanks</p>]]></content>
			<author>
				<name><![CDATA[waleedaz]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19308</uri>
			</author>
			<updated>2015-03-02T09:01:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22742#p22742</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.3 - Extensions. How ?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=8293#p8293" />
			<content type="html"><![CDATA[<p>Answer to my question:<br />Yes, you have to create the report an place it into modules/xxx/reporting<br />The function find_custom_file in main.inc search in this order:<br />1) report in the company folder<br />2) report in one extension (the first found is the first used)<br />3) standar file</p>]]></content>
			<author>
				<name><![CDATA[eclipxe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=1024</uri>
			</author>
			<updated>2011-02-09T07:51:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=8293#p8293</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.3 - Extensions. How ?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=8291#p8291" />
			<content type="html"><![CDATA[<p>In the old extension system you can replace a report by creating the reporting folder and the report number, like &quot;report/rep107.php&quot;</p><p>In 2.3, is there any way to do it ?</p>]]></content>
			<author>
				<name><![CDATA[eclipxe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=1024</uri>
			</author>
			<updated>2011-02-09T04:29:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=8291#p8291</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.3 - Extensions. How ?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=8081#p8081" />
			<content type="html"><![CDATA[<p>Yes it work I am add like this in hook.php in module directory</p><p>function install_access()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $security_sections[SS_APWORKS] =&nbsp; &nbsp; _(</p>]]></content>
			<author>
				<name><![CDATA[straga]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=246</uri>
			</author>
			<updated>2011-01-18T10:24:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=8081#p8081</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.3 - Extensions. How ?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=8057#p8057" />
			<content type="html"><![CDATA[<p>Yes, you can now provide access levels via extension hook class method intall_access(). I was missing in previous hooks.inc file, so please upload te newest version form CVS or wait for 2.2.2 to be released.<br />Sorry for the delay with the info.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2011-01-16T15:09:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=8057#p8057</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.3 - Extensions. How ?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=8015#p8015" />
			<content type="html"><![CDATA[<p>How about access level where put acc_file?</p><p>I mena custom access level for extension.</p><p>How add new extension in 2.3 i got it and work for me. Now a can add custome TAB&#039;s, menu it cool.</p>]]></content>
			<author>
				<name><![CDATA[straga]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=246</uri>
			</author>
			<updated>2011-01-08T19:54:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=8015#p8015</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.3 - Extensions. How ?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=7813#p7813" />
			<content type="html"><![CDATA[<p>Yes it does. You have to implement install_tab() method in your hooks class. The example_class mentioned in hooks.inc comments should be defined as is e.g. customers_app class in application/customers.php.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2010-12-22T21:35:34Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=7813#p7813</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.3 - Extensions. How ?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=7808#p7808" />
			<content type="html"><![CDATA[<p>One more question?</p><p>Add new TAB it work now?</p>]]></content>
			<author>
				<name><![CDATA[straga]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=246</uri>
			</author>
			<updated>2010-12-22T11:26:09Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=7808#p7808</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.3 - Extensions. How ?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=7806#p7806" />
			<content type="html"><![CDATA[<p>You should create your own hook class named hooks_APworks which extends hooks class. Also please look inot comments in hook class definition in hooks.inc - here you will find which methods are appropriate for your extension and how to implement them.<br />Do not include &#039;includes/hooks.inc- it is always included in session.inc file.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2010-12-22T07:49:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=7806#p7806</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.3 - Extensions. How ?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=7801#p7801" />
			<content type="html"><![CDATA[<p>i make new file </p><p>PHP Fatal error:&nbsp; Cannot redeclare install_hooks() in D:\webserver\htdocs\web\2.3-original-aimaks\modules\APworks\hooks.php on line 187</p><p>PHP Fatal error:&nbsp; Cannot redeclare class hooks in D:\webserver\htdocs\web\2.3-original-aimaks\modules\APworks\hooks.php on line 21</p><p>but some wrong because hook.inc exist class and funcion like this. Do you have a little examlpe , new extension.</p>]]></content>
			<author>
				<name><![CDATA[straga]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=246</uri>
			</author>
			<updated>2010-12-21T23:03:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=7801#p7801</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.3 - Extensions. How ?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=7549#p7549" />
			<content type="html"><![CDATA[<p>Thanks. I will try.</p>]]></content>
			<author>
				<name><![CDATA[straga]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=246</uri>
			</author>
			<updated>2010-11-27T12:42:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=7549#p7549</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 2.3 - Extensions. How ?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=7543#p7543" />
			<content type="html"><![CDATA[<p>Extension manual for FA 2.3 is not written yet. In mean time you should look into includes/hook.inc file to find how the extension is integrated with core sources. <br />In short words:<br />. create unique folder under /modules and place here all the extension scripts,<br />. create /modules/xxxx/hooks.php connector file containing extension hook class definition which extends hooks class found in hooks.inc;<br />. write all hooks_xxx class methods you need to be used in core FA code (especially install_options);<br />. install and activate extension under Setup - Install/Activate Extensions.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2010-11-26T10:42:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=7543#p7543</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[2.3 - Extensions. How ?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=7539#p7539" />
			<content type="html"><![CDATA[<p>Old system plugin removed ? How to write new extension ?</p>]]></content>
			<author>
				<name><![CDATA[straga]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=246</uri>
			</author>
			<updated>2010-11-25T11:35:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=7539#p7539</id>
		</entry>
</feed>
