<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dwight Jack Diary &#187; joomla 1.0</title>
	<atom:link href="http://www.dwightjack.com/diary/tag/joomla-10/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dwightjack.com/diary</link>
	<description>Diary of music, design and code</description>
	<lastBuildDate>Tue, 13 Jul 2010 20:46:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Enable global checkin for managers in Joomla 1.0.x</title>
		<link>http://www.dwightjack.com/diary/2009/01/27/enable-global-checkin-for-managers-in-joomla-10x/</link>
		<comments>http://www.dwightjack.com/diary/2009/01/27/enable-global-checkin-for-managers-in-joomla-10x/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 10:47:36 +0000</pubDate>
		<dc:creator>Dwight Jack</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[global check-in]]></category>
		<category><![CDATA[joomla 1.0]]></category>

		<guid isPermaLink="false">http://www.dwightjack.com/diary/?p=83</guid>
		<description><![CDATA[Due to a comment request in a preview post i've worked out an hack to enable global checkin for managers in Joomla 1.0.x (1.0.13 in my case).]]></description>
			<content:encoded><![CDATA[<p>Due to a comment request in a <strong><a title="Enable global checkin for managers in Joomla 1.5" href="http://www.dwightjack.com/diary/2008/12/22/enable-global-check-in-for-managers-in-joomla-15/">preview post</a></strong> i&#8217;ve worked out an hack to enable global checkin for managers in Joomla 1.0.x (1.0.13 in my case).</p>
<p>Open file <strong>includes/gacl.class.php</strong> and add below line <strong>162</strong> (after the comment &#8220;<em>add additional components for a manager as desired, or give access to all</em>&#8220;) the following code:</p>
<pre><code>$this-&gt;_mos_add_acl( 'administration', 'config', 'users', 'manager', null, null );
$this-&gt;_mos_add_acl( 'administration', 'edit', 'users', 'manager', 'components','com_checkin');</code></pre>
<p>As a side effect, this will also enable other menus such as <strong>Site </strong>(with configuration&#8217;s options)<strong> </strong>and <strong>Messages</strong>.</p>
<p>If you want to show only a <strong>Global Checkin</strong> menu item you should modify the full menu module in <strong>administrator/modules/mod_fullmenu.php</strong> by editing line <strong>35</strong> from:</p>
<pre><code>$canConfig = $acl-&gt;acl_check( 'administration', 'config', 'users', $usertype );</code></pre>
<p>to:</p>
<pre><code>$canConfig = (bool) ($acl-&gt;acl_check( 'administration', 'config', 'users', $usertype ) &amp;&amp; strpos($usertype,"Administrator") !== false );</code></pre>
<p>Then add at about line <strong>303</strong> (there&#8217;s a closing curly bracket ):</p>
<pre><code>if ($usertype == 'Manager') {
?&gt;
     [null, 'Global Checkin', 'index2.php?option=com_checkin', null,'Check-in all checked-out items'],
&lt;?php
}</code></pre>
<p><em><strong>Note:</strong> On some installations or different versions of 1.0x lines can differ.</em></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p><span style="text-decoration: underline;"><strong>03/02/09 UPDATE</strong></span>: I&#8217;ve zipped the hacked files to make it simpler to patch your installation. <strong>Note</strong> that these files belong to a english Joomla 1.0.13 clean install. You can browse change with a compare software like <a href="http://winmerge.org/" target="_blank">WinMerge</a>.</p>
<a href=http://www.dwightjack.com/diary/wp-content/plugins/download-monitor/download.php?id=3>Joomla 1.0.x Global Checkin for Manager (7.69 kB)</a>
]]></content:encoded>
			<wfw:commentRss>http://www.dwightjack.com/diary/2009/01/27/enable-global-checkin-for-managers-in-joomla-10x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
