<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Modules Add-Ons]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=2060</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=2060&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Modules Add-Ons.]]></description>
		<lastBuildDate>Wed, 06 Jul 2011 23:09:17 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Modules Add-Ons]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=9661#p9661</link>
			<description><![CDATA[<p>I have seen that, but it still begs the question:</p><p>Is it safe to assume you verify the contributed extensions have unique numbers before posting them on the website?</p><p>If I create a new extension from an existing one and forget to change the number, we could have two with the same number.</p><p>tom</p>]]></description>
			<author><![CDATA[null@example.com (tom)]]></author>
			<pubDate>Wed, 06 Jul 2011 23:09:17 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=9661#p9661</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modules Add-Ons]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=9657#p9657</link>
			<description><![CDATA[<p>Tom, there is no need for central synchronizing security code numbers. You can use arbitrary numbers yet not&nbsp; used in core FA code, e.g. 100, 102 etc. The numbers are reassigned later, and you should use only text identifiers in your code (the $security_area array keys).<br />Read comments at the top of access_leveles.inc file and all should be clear for you</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Wed, 06 Jul 2011 16:29:02 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=9657#p9657</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modules Add-Ons]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=9641#p9641</link>
			<description><![CDATA[<p>How can developers request values for modules they create?</p><p>Maybe set a range for local use and any others need to be allocated by the core development team?</p><p>tom</p>]]></description>
			<author><![CDATA[null@example.com (tom)]]></author>
			<pubDate>Tue, 05 Jul 2011 16:51:15 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=9641#p9641</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modules Add-Ons]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=9640#p9640</link>
			<description><![CDATA[<p>No, the values have to be defferent (see related php code), but in fact they <strong>are</strong> rewritten during installation.</p><p>Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Tue, 05 Jul 2011 14:39:33 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=9640#p9640</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modules Add-Ons]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=9629#p9629</link>
			<description><![CDATA[<p>As I understand, the security section codes are rewritten during integration...<br />I haven&#039;t verfied this until now.</p><p>barney</p>]]></description>
			<author><![CDATA[null@example.com (barneyfa)]]></author>
			<pubDate>Mon, 04 Jul 2011 14:19:06 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=9629#p9629</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modules Add-Ons]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=9627#p9627</link>
			<description><![CDATA[<p>So maybe they could all be the same value?<br />Seems odd to me...</p>]]></description>
			<author><![CDATA[null@example.com (tom)]]></author>
			<pubDate>Mon, 04 Jul 2011 12:44:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=9627#p9627</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modules Add-Ons]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=9624#p9624</link>
			<description><![CDATA[<p>Sounds interesting ....</p><p>barney</p>]]></description>
			<author><![CDATA[null@example.com (barneyfa)]]></author>
			<pubDate>Mon, 04 Jul 2011 08:53:10 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=9624#p9624</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modules Add-Ons]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=9623#p9623</link>
			<description><![CDATA[<p>If you read the documentation /doc/access_levels.txt part 5.:</p><div class="codebox"><pre><code>5. Example access control configuration file
--------------------------------------------

This is content of sample access control file for CRM extension module:

&lt;?php
/*
    Define security section codes
*/
define(&#039;SS_CRM_C&#039;,    101&lt;&lt;8);
define(&#039;SS_CRM&#039;,    102&lt;&lt;8);
define(&#039;SS_CRM_A&#039;,    103&lt;&lt;8);

/*
    Additional security sections for CRM module
*/
$security_sections[SS_CRM_C] = _(&quot;CRM configuration&quot;);
$security_sections[SS_CRM] = _(&quot;CRM transactions&quot;);
$security_sections[SS_CRM_A] = _(&quot;CRM analytics&quot;);
/*
    Additional security areas for CRM module
*/
$security_areas[&#039;SA_CRMSETUP&#039;] = array(SS_CRM_C|1, _(&quot;CRM module setup&quot;));
$security_areas[&#039;SA_CRMCONTACTENTRY&#039;] = array(SS_CRM|1, _(&quot;Customer contact entry&quot;));
$security_areas[&#039;SA_CRMANALYITCS&#039;] = array(SS_CRM|1, _(&quot;Pre-sale contact analytics&quot;));

?&gt;

The exact values used for security section codes are not very important, 
as they are rewritten by access control system during integration of
access extensions. Therefore numeric values of security sections/areas should 
never be used directly in the extensions source. Use string representations
instead when needed, or values retrieved from $security_areas array.</code></pre></div><div class="quotebox"><blockquote><p><strong>The exact values used for security section codes are not very important, <br />as they are rewritten by access control system during integration of<br />access extensions.</strong></p></blockquote></div><p>Though I never try to confirm this.</p>]]></description>
			<author><![CDATA[null@example.com (captain_kuro)]]></author>
			<pubDate>Mon, 04 Jul 2011 04:20:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=9623#p9623</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modules Add-Ons]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=9617#p9617</link>
			<description><![CDATA[<p>&#039;define (&#039;SS_IMPORTCUSTOMERS&#039;, 105&lt;&lt;8);&#039;</p><p>I think a more important question is: Does the 105 have to be unique across all add-on modules?<br />Are we granted security permissions based upon that bit mask?</p><p>If two modules have the same SS_ value won&#039;t they be controlled together in the security settings?</p><p>Tom</p>]]></description>
			<author><![CDATA[null@example.com (tom)]]></author>
			<pubDate>Sun, 03 Jul 2011 12:12:20 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=9617#p9617</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modules Add-Ons]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=9134#p9134</link>
			<description><![CDATA[<p>You&#039;re welcome</p><p>kuro</p>]]></description>
			<author><![CDATA[null@example.com (captain_kuro)]]></author>
			<pubDate>Mon, 16 May 2011 10:38:45 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=9134#p9134</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modules Add-Ons]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=9130#p9130</link>
			<description><![CDATA[<p>Hi captain_kuro,</p><p>thanks a lot,</p><p>barney</p>]]></description>
			<author><![CDATA[null@example.com (barneyfa)]]></author>
			<pubDate>Mon, 16 May 2011 10:06:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=9130#p9130</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modules Add-Ons]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=9129#p9129</link>
			<description><![CDATA[<p>Hi, I am new to FA and I am planning to use FA in our new project. So for the past few days I have been inspecting about extension in FA.<br />I have notice that some extensions use something like this in their hooks.php file:</p><div class="codebox"><pre><code>define(&#039;SS_ASSETREGISTER&#039;, 101&lt;&lt;8);</code></pre></div><p>What I realize is that every time there is that, there is this:</p><div class="codebox"><pre><code>function install_access()
{
    $security_sections[SS_ASSETREGISTER] = _(&quot;Asset Register&quot;);
    $security_areas[&#039;SA_ASSETTYPE&#039;] = array(SS_ASSETREGISTER|1, _(&quot;Asset Type Entries&quot;));
    $security_areas[&#039;SA_ASSETS&#039;] = array(SS_ASSETREGISTER|2, _(&quot;Assets Entries&quot;));
    $security_areas[&#039;SA_AMORTISATION&#039;] = array(SS_ASSETREGISTER|3, _(&quot;Amortisation Posting&quot;));
    return array($security_areas, $security_sections);
}</code></pre></div><p>(source taken from asset_register extension)</p><p>So I conclude that prefix SS_ means Security Section, the &quot;define&quot; statement above is used to define some kind of unique security level identifier, and that this defined constant will be used to define the security areas used by the extension.</p><p>Hope that helps.</p>]]></description>
			<author><![CDATA[null@example.com (captain_kuro)]]></author>
			<pubDate>Mon, 16 May 2011 09:58:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=9129#p9129</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modules Add-Ons]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=9007#p9007</link>
			<description><![CDATA[<p>Hello again, I can only tell you the mathematical expression. somevalue&lt;&lt;8 means that the binary bits are shifted 8 times to the left <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Maybe someone out there have a better understandable explanation.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Wed, 04 May 2011 07:02:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=9007#p9007</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modules Add-Ons]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=9000#p9000</link>
			<description><![CDATA[<p>So it works...<br />I added a hooks.php.</p><p>Could you tell me, what is the meaning of &#039;105&lt;&lt;8&#039; in &#039;define (&#039;SS_IMPORTCUSTOMERS&#039;, 105&lt;&lt;8);&#039; .<br />Or is some kind of description available?</p><p>Bernd</p>]]></description>
			<author><![CDATA[null@example.com (barneyfa)]]></author>
			<pubDate>Tue, 03 May 2011 15:31:57 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=9000#p9000</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modules Add-Ons]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=8998#p8998</link>
			<description><![CDATA[<p>I guess it will show up in the Sales tab. Maybe you have to logout and login again. I am not sure.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 02 May 2011 21:46:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=8998#p8998</guid>
		</item>
	</channel>
</rss>
