Part of the EllisLab Network
   
39 of 41
39
FreakAuth light 1.1 released
Posted: 13 July 2008 02:36 PM   [ Ignore ]   [ # 381 ]  
Grad Student
Rank
Total Posts:  94
Joined  06-04-2007

Hi Gewa, im new with this.... but u will try with ROLE

$role =  $this->db_session->userdata('role');
if(
$role == 'superadmin'){

echo 'super admin';
}

Profile
 
 
Posted: 14 July 2008 02:26 AM   [ Ignore ]   [ # 382 ]  
Summer Student
Total Posts:  16
Joined  07-14-2008

Hey Guys,

Let me say first off. Great module, you guys have already saved me countless hours of workin shit out. So when I get my app built I’ll be slingin some bucks your way.

Now my question;

Within your demo admin section how would I go about restricting certain parts of the menu . ie if you had a menu like this:

Users | blog | gallery | Events

And you logged in as a “Events Manager” you could only see the Events section.

Profile
 
 
Posted: 14 July 2008 11:11 AM   [ Ignore ]   [ # 383 ]  
Grad Student
Rank
Total Posts:  94
Joined  06-04-2007

Hi Webberoo , im new too with CI..but im using this for some parts o the menu:

if($this->freakauth_light->isSuperAdmin()){
     
echo " Users | blogs ";

}

if the user is not superadmin this part is invisible smile

Profile
 
 
Posted: 15 July 2008 12:26 AM   [ Ignore ]   [ # 384 ]  
Summer Student
Total Posts:  16
Joined  07-14-2008
Asinox - 14 July 2008 11:11 AM

Hi Webberoo , im new too with CI..but im using this for some parts o the menu:

if($this->freakauth_light->isSuperAdmin()){
     
echo " Users | blogs ";

}


if the user is not superadmin this part is invisible smile

Thnx for the reply. Are you placing that directly into the view?

Profile
 
 
Posted: 15 July 2008 12:55 AM   [ Ignore ]   [ # 385 ]  
Grad Student
Rank
Total Posts:  94
Joined  06-04-2007

Yes

Profile
 
 
Posted: 15 July 2008 01:45 AM   [ Ignore ]   [ # 386 ]  
Summer Student
Total Posts:  16
Joined  07-14-2008
Asinox - 15 July 2008 12:55 AM

Yes

Do you think it would be better to create a menu controller that outputs into a menu view?

W

Profile
 
 
Posted: 15 July 2008 07:29 AM   [ Ignore ]   [ # 387 ]  
Grad Student
Rank
Total Posts:  94
Joined  06-04-2007

Hi, ill to know where’s this loginAnchorAdmin() fucntion?

Thanks u

Profile
 
 
Posted: 16 July 2008 12:30 AM   [ Ignore ]   [ # 388 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  191
Joined  01-25-2008

Is there a way to tell FAL which page redirect to?
I know calling

$this->freakauth_light->check();

will force the redirection to wherever controller/method it was called from… but is there a way to force to another controller/method?

(PS: this isn’t a redirect question)

 Signature 

Kick-Ass Real Estate Widgets
http://www.redmol.com/page/widget - written with CI

Profile
 
 
Posted: 23 July 2008 08:04 AM   [ Ignore ]   [ # 389 ]  
Grad Student
Rank
Total Posts:  56
Joined  04-26-2008

Hi, I have 2 questions.

1. I need to know which algorithm is used when generating a password for registration? I tryed MD5, its not the md5(password_from_form) .... Then what?
2. How can i put Custom User Profile fields in registration ? I mean I whant that in registration custom user profile also must be filled out

Profile
 
 
Posted: 23 July 2008 11:31 AM   [ Ignore ]   [ # 390 ]  
Grad Student
Rank
Total Posts:  94
Joined  06-04-2007

i dontknow the firts question, but the second

http://www.4webby.com/freakauth/tutorials/freakauth-light-custom-userprofile-part-1.html

smile abul

Profile
 
 
   
39 of 41
39
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 61065 Total Logged-in Users: 16
Total Topics: 73886 Total Anonymous Users: 1
Total Replies: 398531 Total Guests: 318
Total Posts: 472417    
Members ( View Memberlist )