<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
	<channel>
		<title>Making module positions viewable only by unregistered visitors</title>
		<description>Comments for Making module positions viewable only by unregistered visitors at http://www.howtojoomla.net , comment 1 to 47 out of 20 comments</description>
		<link>http://www.howtojoomla.net</link>
		<lastBuildDate>Tue, 07 Oct 2008 08:00:32 +0100</lastBuildDate>
		<generator>FeedCreator 1.7.2</generator>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/7/6/#comment-997</link>
			<description>Thanks mate!! This is wonderful.  :) - Katie</description>
			<pubDate>Tue, 16 Sep 2008 03:09:17 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/7/6/#comment-951</link>
			<description>Whoa, you're fast!  Thanks.  I'm kinda of a newbie.  Not sure I understand what the actual mod to my index.php would be then.  Thanks in advance for more specificity. - Dean</description>
			<pubDate>Tue, 05 Aug 2008 09:52:06 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/7/6/#comment-950</link>
			<description>Hi Dean,

This does not work for Joomla 1.5. Instead of using $my, you need to get an instance of the JUser object. Here is how you would do that:

[quote]
$user = JFactory::getUser();
[/quote]

Once you have that, you should be able to access the user id with &quot;$user-&gt;id&quot;.

Good luck! - Cory</description>
			<pubDate>Tue, 05 Aug 2008 09:46:49 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/7/6/#comment-949</link>
			<description>Does this code mod work for Joomla 1.5?  I added it to my template's index.php and it doesn't work. Thanks. - Dean</description>
			<pubDate>Tue, 05 Aug 2008 09:43:44 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/7/6/#comment-919</link>
			<description>Dude. You're awesome. Saved me a headache. - Joomlarox</description>
			<pubDate>Thu, 17 Jul 2008 19:16:14 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/7/6/#comment-911</link>
			<description>That would work, say if it was for the &quot;top&quot; module. - Rob</description>
			<pubDate>Thu, 10 Jul 2008 11:28:48 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/7/6/#comment-910</link>
			<description>It is not possible from the template to hide a specific module from IE6 users. However, you can hide a module position from IE6 users. - Cory</description>
			<pubDate>Thu, 10 Jul 2008 10:30:47 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/7/6/#comment-909</link>
			<description>Disregard the previous comment system is stripping the tags

php if (isIe6()) :
[if lte IE 6]

 - Rob</description>
			<pubDate>Thu, 10 Jul 2008 10:30:10 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/7/6/#comment-908</link>
			<description>Hmm seems the quote code didnt work:


 - Rob</description>
			<pubDate>Thu, 10 Jul 2008 10:29:19 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/7/6/#comment-907</link>
			<description>Great info here. My question is it is possible to use this to hide a module to certain browser users?

I want to hide a problematic module for IE 6 users, is that possible?

My template currently checks for IE 6 users to load a special IE 6 CSS file with the following code:

[quote]

 - Rob</description>
			<pubDate>Thu, 10 Jul 2008 10:28:42 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/7/6/#comment-860</link>
			<description>Hi Joost, the easiest way to do that (as far as I know) would be to write a cookie to that person's machine, which would tell you that the person had visited your site before. - Cory</description>
			<pubDate>Wed, 25 Jun 2008 08:09:26 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/7/6/#comment-858</link>
			<description>Hi Cory,
Thanks for sharing this simple but very useful tip.
On a related note: how would you test for a user visiting your site for the very first time so you  could serve them a kind of splash page/ intro module?

Thanks! - Joost</description>
			<pubDate>Wed, 25 Jun 2008 03:14:59 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/7/6/#comment-666</link>
			<description>Hi John...The code tests only whether or not the user is logged in. - Cory</description>
			<pubDate>Wed, 02 Jan 2008 20:09:56 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/7/6/#comment-665</link>
			<description>Hi Cory,
Quick question - does the code test whether they are a registered user or whether they are logged in?

I am wanting to show/hide instructions (within content), ie &quot;You must be logged in to download this file&quot; depending upon whether the user is logged in. I found a mambot moshidefrom, but it required MAL component to work. I will see if I can adapt your &quot;argument&quot;.
 - John Scott</description>
			<pubDate>Wed, 02 Jan 2008 19:44:45 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/7/6/#comment-605</link>
			<description>Easy and usable. Thanks! - Paul</description>
			<pubDate>Fri, 23 Nov 2007 16:50:15 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/7/6/#comment-572</link>
			<description>I got it working, pretty simple once you figure out the template. Thanks! One of the best hacks for Joomla! - Brian</description>
			<pubDate>Thu, 01 Nov 2007 12:17:38 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/7/6/#comment-557</link>
			<description>Hi Locoman,

You would have get the language parameter by using this:

$mylang = mosGetParam($_REQUEST,'lang', '');

Then, wherever you want to load a module, you would just check $mylang using &quot;if ( $mylang == 'name of language here')&quot;

Good luck! - Cory</description>
			<pubDate>Sun, 21 Oct 2007 13:57:51 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/7/6/#comment-556</link>
			<description>HOW TO LOAD A MODULE DEPENDING OF THE LANGUAGE 

[quote]



[/quote] - locoman</description>
			<pubDate>Sat, 20 Oct 2007 23:51:09 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/7/6/#comment-555</link>
			<description>HOW TO LOAD A MODULE DEPENDING OF THE LANGUAGE



 - locoman</description>
			<pubDate>Sat, 20 Oct 2007 23:50:18 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/7/6/#comment-507</link>
			<description>Hi Brian,

You would need to use a different module position than &quot;right&quot;, because right is already being used by your template. Basically, in your template's &quot;index.php&quot; file, you would add the &quot;if ( !$my-&gt;id)&quot; code from this tutorial, and use a module position that is not already in use by the template. Then, you would publish your &quot;Register&quot; module in that position.

You can literally put it anywhere you want in your template. If you want it on the right hand side, you could put it under or above the &quot;right&quot; module position.

I hope that makes sense. - Cory</description>
			<pubDate>Mon, 01 Oct 2007 16:05:42 +0100</pubDate>
		</item>
	</channel>
</rss>
