Part of the EllisLab Network
   
19 of 36
19
FreakAuth_light authentication library/admin application released!
Posted: 28 February 2007 01:34 PM   [ Ignore ]   [ # 271 ]  
Grad Student
Avatar
Rank
Total Posts:  94
Joined  03-05-2006

Gotta chime in with Oldcity on this one: I’ve done the same, getting rid of the multiple model load and initial upper-casing the references to the model throughout (as per the CI user guide), and it fixed all my problems. Well, my freakauth related ones anyway…

Also it got rid of the need to load the model in the constructor. Be great if this could be in the next release, Dan..?

I’m using PHP4.4.4 as well : you lucky PHP5 people don’t have the same problem, I checked by flipping between the two in MAMP.

Profile
 
 
Posted: 28 February 2007 01:43 PM   [ Ignore ]   [ # 272 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  514
Joined  12-05-2006

I’m planning a release at the beginning of next week fixing this PHP4 issue, Iksander, grahack and wolfear layout fixes, and some other minor stuff.

...I’ve just been on CI SWIFT MAILER today: did you check it out?

+ another candy for CI lovers will come soon: stay tuned!

tongue wink

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 28 February 2007 02:12 PM   [ Ignore ]   [ # 273 ]  
Summer Student
Total Posts:  4
Joined  02-28-2007

By the way, a small typo at site/admin/users/add

passoword:

should be password:


And I just have to say, excellent, excellent job with this complex script.

Profile
 
 
Posted: 28 February 2007 03:08 PM   [ Ignore ]   [ # 274 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  514
Joined  12-05-2006

I’ll try to do my best!

Just please don’t blame me I’ll forget to correct some typos!

sick

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 28 February 2007 04:18 PM   [ Ignore ]   [ # 275 ]  
Summer Student
Total Posts:  17
Joined  11-14-2006

first i have to thank for the errorfixing (1139/1196)
i guess i have another issue:
i used another prefix for my tables (not ci_ or fa_) -> i used ktr_ for some reasons
the first thing was that the installer didnt recognizes that - so i simply executed the original sql file
in my database. than it works
internally it uses my tables (with ktr_)

that should be fixed

Profile
 
 
Posted: 28 February 2007 04:23 PM   [ Ignore ]   [ # 276 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  514
Joined  12-05-2006

Did you change the prefix of ci_sessions to ktr_session?

I hard coded ci_sessions (instead of $this->config->item(‘sess_table_name’ ) at line 81 of installer.php)

I’ll fix it.

Dan

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 28 February 2007 04:27 PM   [ Ignore ]   [ # 277 ]  
Summer Student
Total Posts:  17
Joined  11-14-2006

Next one: wink
In the FreakAuth Administration Console could be a list for all “users” with a new field for the role.
I added an “Editor” and it only appears in the database… but not in any list.

so you could simplify your controllers (isnt users.php similar like admin.php ??)

Profile
 
 
Posted: 28 February 2007 04:35 PM   [ Ignore ]   [ # 278 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  514
Joined  12-05-2006

The role field it’s already there in version 1.0.2-BETA.

If you log in as ‘superadmin’ you should be able to see all roles, while if you log in as admin, you should see all roles but ‘superadmin’ and ‘admin’.

Don’t you have it?

alexpetri - 28 February 2007 04:27 PM

so you could simplify your controllers (isnt users.php similar like admin.php ??)

I agree, but this ‘doubling’ keeps things more tidy.
If you like you can merge them.

Dan

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 28 February 2007 08:41 PM   [ Ignore ]   [ # 279 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  277
Joined  02-07-2007

@oldcity: I didn’t mean to sound assertive about what should be right or wrong (I know it came off that way). My original intent with the post was to more or less question why that would solve the problem… as it seems odd to me that it would solve it (like you said, it is a moot point as it is fixed…).

Trivial…

Profile
 
 
Posted: 01 March 2007 06:56 AM   [ Ignore ]   [ # 280 ]  
Summer Student
Total Posts:  17
Joined  11-14-2006

I have a question about integrating freakauth in my application
its a normal html site with (simplified) 2 columns (content and sidebar)

i want to have the loginbox in the sidebar on every page/controller
but i dont know how to implement that. can anyone give me a hint to do that?

Profile
 
 
Posted: 01 March 2007 07:06 AM   [ Ignore ]   [ # 281 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  514
Joined  12-05-2006

There is an helper for this:

in your view (or in the controller assigning it to a variable) use the displayLoginForm() helper (it’s in application/helpers/freakauth_light_helper.php)

<?=displayLoginForm()?>
 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 01 March 2007 07:13 AM   [ Ignore ]   [ # 282 ]  
Summer Student
Total Posts:  17
Joined  11-14-2006

thx for the hint. but it passes only an array:

/**
     * Gets login form input values.
     *
     * @return array
     */
    
function getLoginForm()
    
{
        $values[
'user_name'] = $this->CI->input->post('user_name');
        
$values['password'] = $this->CI->input->post('password');
        
        
//$values[$this->CI->config->item('FAL_<your field>_field')] = $this->CI->input->post($this->CI->config->item('FAL_<your field>_field'));
        
        
return $values;
    
}
Profile
 
 
Posted: 01 March 2007 07:20 AM   [ Ignore ]   [ # 283 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  493
Joined  02-21-2007

Hi guys,

I needed to fetch the user_name of another user than the one connected.
Found nothing simple in the model.

I did this trick in the helper, but I’m sure that there is a better way.

function getUserProperty($id, $prop)
{
    $obj
=& get_instance();
    
$obj->lang->load('freakauth');
    
$obj->load->model('usermodel');
    
$query = $obj->usermodel->getUserById($id);
    if (
$query->num_rows() == 1)
    
{
        $row
= $query->row();
        if (isset(
$row->$prop)) return $row->$prop;
        else return
'<h1>unknown prop, please check the columns in table '.$obj->config->item('FAL_table_prefix').'user</h1>';
    
}
    
else return $obj->lang->line('FAL_unknown_user');
}

Ideas ?

Dan, what do you think about starting a new thread for the next release ?
This one is huge.
Forget my idea if you want to break the highest score.

Profile
 
 
Posted: 01 March 2007 07:28 AM   [ Ignore ]   [ # 284 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  514
Joined  12-05-2006

@alexpetri
Cool…. we found another small thing to implement!

Try to change that helper function in application/helpers/freakauth_light_helper.php to:

function displayLoginForm()
{
    $obj
=& get_instance();
    
$obj->lang->load('freakauth');
    return
$obj->load->view($obj->config->item('FAL_login_view'));
}

Maybe you will need to duplicate the login form view in order to work properly for your needs.

Dan

[EDIT] this is a temporary solution(not sure it works): I’ll fix this in next release

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 01 March 2007 08:35 AM   [ Ignore ]   [ # 285 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  493
Joined  02-21-2007
danfreak - 01 March 2007 07:28 AM
function displayLoginForm()
{
    $obj
=& get_instance();
    
$obj->lang->load('freakauth');
    return
$obj->load->view($obj->config->item('FAL_login_view'));
}

don’t we need the second parameter (true) here for $obj->load->view() ; ?

Profile
 
 
   
19 of 36
19
 
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: 77567 Total Logged-in Users: 11
Total Topics: 101557 Total Anonymous Users: 3
Total Replies: 544401 Total Guests: 207
Total Posts: 645958    
Members ( View Memberlist )
Newest Members:  ColeJLinskitnealsemperjrawhallshiusbozzlynobluffkatiejameshsmith101dddougal
Active Members:    btray77CrucialHerbkusmayadinblavoienetrosisPascal KrieteRD Gambolaskeletonfriendspider pigtheQco