<?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; global check-in</title>
	<atom:link href="http://www.dwightjack.com/diary/tag/global-check-in/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>
		<item>
		<title>Enable global checkin for managers in Joomla 1.5</title>
		<link>http://www.dwightjack.com/diary/2008/12/22/enable-global-check-in-for-managers-in-joomla-15/</link>
		<comments>http://www.dwightjack.com/diary/2008/12/22/enable-global-check-in-for-managers-in-joomla-15/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 13:51:52 +0000</pubDate>
		<dc:creator>Dwight Jack</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ACL]]></category>
		<category><![CDATA[com_checkin]]></category>
		<category><![CDATA[global check-in]]></category>
		<category><![CDATA[joomla]]></category>

		<guid isPermaLink="false">http://www.dwightjack.com/diary/?p=47</guid>
		<description><![CDATA[Here is a quick hack to allow global check-in action for manager user level in Joomla 1.5]]></description>
			<content:encoded><![CDATA[<p>One of the most common problems in a multi-user Joomla environment is content&#8217;s locking due to an incorrect end of editing session. The main issue is that only the user who locked the content is allowed to unlock it.</p>
<p>To overcome this problem, users usually rely on an (super) administrator user action, since it&#8217;s the only user level who can access the <strong>Global Chek-in</strong> tool in the backend panel.</p>
<p>The main concern in this ACL rule on Joomla is that most of the times users who manage the website contents have a <strong><em>manager</em></strong> access level, since this user level is much more restricted on technical configuration&#8217;s options.</p>
<p>To allow Global Check-in action for managers, just edit the core file located at <strong><code>/libraries/joomla/users/authorization.php</code></strong> adding below line <strong>91</strong> the following code:</p>
<pre><code>$this-&gt;addACL( "com_checkin", "manage", "users", "manager" );
</code></pre>
<p><strong>Important</strong>: Since this is a core hack, keep in mind that it could be overwritten on further upgrades!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwightjack.com/diary/2008/12/22/enable-global-check-in-for-managers-in-joomla-15/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
