Hello All:

I need a tag to out the user status to promote user for login if they are not 
etc.
here's the javascript that I used to show the login box:




The problem is the Cookie.get('name') reports a nil error.

does anyone knows where to look for the user login status? I am pretty new the 
radiant and rails so if it's session, I duno how to access it in my module tag 
which includes Radiant::Taggable, and I know that radiant is using cache so I 
might also disable that to make it work.. 

Thank in advance!

Ray

From: gzm...@hotmail.com
To: radiant-requ...@radiantcms.org
Subject: How to check for user login status in cook
Date: Mon, 5 Oct 2009 12:52:57 -0500




Hello All:
I need a tag to out the user status to promote user for login if they are not 
etc.here's the javascript that I used to show the login box:
<script type="text/javascript">/* Displays users name and association name in 
the right menu, if logged in */function init_right_menu(){        user_name = 
Cookie.get('name')        association_name = Cookie.get('association_name')     
   if(user_name != null)        {                $('content').innerHTML = 
user_name                if(association_name != null) $('content').innerHTML = 
association_name                $('rightmenu_not_logged_in').style.display = 
'none';                $('rightmenu_logged_in').style.display = 'block';        
}}
init_right_menu();
</script>

The problem is the Cookie.get('name') reports a nil error.
does anyone knows where to look for the user login status? I am pretty new the 
radiant and rails so if it's session, I duno how to access it in my module tag 
which includes Radiant::Taggable, and I know that radiant is using cache so I 
might also disable that to make it work.. 
Thank in advance!
Ray                                       
Faster Hotmail access now on the new MSN homepage.
                                          
_________________________________________________________________
New! Faster Messenger access on the new MSN homepage
http://go.microsoft.com/?linkid=9677406_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to