<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Creating modules 2.34]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=2122&amp;type=atom" />
	<updated>2011-05-27T22:52:29Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=2122</id>
		<entry>
			<title type="html"><![CDATA[Re: Creating modules 2.34]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9288#p9288" />
			<content type="html"><![CDATA[<p>You have to go back to Install/Activate extensions, select your company in the selector at top of page, and turn the extension on for the company. If your extension provides any new permittion areas, the Access Setup fixes are&nbsp; also necessary as you stated of course.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2011-05-27T22:52:29Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9288#p9288</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Creating modules 2.34]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9285#p9285" />
			<content type="html"><![CDATA[<p>Janusz do you mean when running &#039;Access Setup&#039;?<br />I did that, but it doesn&#039;t appear to change the variable (to false or true when selected).</p>]]></content>
			<author>
				<name><![CDATA[p2409]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=267</uri>
			</author>
			<updated>2011-05-27T14:37:28Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9285#p9285</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Creating modules 2.34]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9282#p9282" />
			<content type="html"><![CDATA[<p>This is not set automatically on module installation, as often installed module is no needed in some companies. This should be changed when you activate module on per company basis after installation.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2011-05-27T13:23:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9282#p9282</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Creating modules 2.34]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9280#p9280" />
			<content type="html"><![CDATA[<p>Thanks Janusz. </p><p>I&#039;ve create hook.php, the import_transactions.php file and a config text file as you describe.<br />I can install the module OK, but found that that to see the new menu item I had to manually edit</p><p>company/0/installed_extensions.php<br />to set <br /></p><div class="codebox"><pre><code>active=&gt;&#039;true&#039;</code></pre></div><p>How do I make sure this is set during the install process?<br />Thanks<br />Pete</p>]]></content>
			<author>
				<name><![CDATA[p2409]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=267</uri>
			</author>
			<updated>2011-05-27T09:05:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9280#p9280</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Creating modules 2.34]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9256#p9256" />
			<content type="html"><![CDATA[<p>If you want use the module only locally, there is no need for _init directory at all. If extension is of type theme, chart, language, or it contains only additional reports there is even no need for hooks.php file. For any more complex extension module you have to create hooks.php file containing class definition &#039;hooks_name_of_the_package&#039; derived from hooks class found in includes/hooks.php. Methods of this class (if defined) are used for module integration with various FrontAccounting parts. Most important hooks are:<br />* install_tabs() - adds new tabs in FA menu;<br />* install_options() - adds option to various FA menus;<br />* install_access() - allow additional permission levels to be defined for module&#039;s pages;<br />* install_extension() - called on extension installation;<br />* activate_extension() - called when extension is activated for selected company.</p><p>All the available hook methods are described in includes/hooks.inc file, and the hook files bundled with extensions in FA central repo can be used as examples.</p><p>If you create extension which you want to be placed in central FrontAccounting repository, you should create only single additional _init/config file containing following information used during install/preview:</p><div class="codebox"><pre><code>Package: single_word_package_name
Version: 2.3.4
Name: One line description  of the package
Description: Longer description of the package content. Can be 
 continued on following lines providing the first char in line is space.
Author: name and &lt;email of the author&gt;
Maintenance: name and email of current maintainer (or the author)
Homepage: address of related www page
Type: extension or chart or language or theme
InstallPath: modules/folder_name</code></pre></div><p>That&#039;s all. Before the package is placed in repository we make some rough code audit and create all the other needed auxiliary files, so you can don&#039;t care about them.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2011-05-25T14:51:34Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9256#p9256</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Creating modules 2.34]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9253#p9253" />
			<content type="html"><![CDATA[<p>Hi Guys<br />Think I lost the last post I tried to make on this: apologies if it&#039;s a duplicate)</p><p>I have updated/extended the import_multijournalentries module and it also now works in 2.34</p><p>I&#039;m trying to work out how to package it up as a module.</p><p>Do I need to :<br />- create/complete _init directory<br />- manually edit installed_modules (/modules directory)<br />- create a hooks.php file</p><p>Is there a description anywhere, or can you recommend a complete module that does what&#039;s required for me to copy?<br />Thanks<br />Pete</p>]]></content>
			<author>
				<name><![CDATA[p2409]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=267</uri>
			</author>
			<updated>2011-05-25T12:12:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9253#p9253</id>
		</entry>
</feed>
