Part of the EllisLab Network
   
5 of 25
5
FreakAuth light 1.0.4 released
Posted: 18 May 2007 07:58 AM   [ Ignore ]   [ # 41 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006
Crimp - 18 May 2007 07:52 AM

Thanks for doing that test, Dan. At least I know I am alone wink

I’ll do another FAL_1.0.4 clean installation and I’ll try again: I’ll keep you informed!
Did you do any hack, or does the problem arises after a new FAL_1.0.4 install?

...I’ll try to push my record of 1000000 logins, 300586869 registrations, 93746645 changepassword etc

...I think I’ll never register to any website anymore since releasing FAL cool grin

 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: 18 May 2007 09:26 AM   [ Ignore ]   [ # 42 ]  
Lab Assistant
RankRank
Total Posts:  192
Joined  04-03-2007

I’m still looking into the performance issues of FAL, but just a small note:
If you’re monitoring the profile time make sure the log status for your comparison situations is the same.  My profiler shows that logging is by far the biggest consumer of performance.

Profile
 
 
Posted: 18 May 2007 09:41 AM   [ Ignore ]   [ # 43 ]  
Summer Student
Total Posts:  24
Joined  10-19-2006
danfreak - 18 May 2007 06:58 AM

@smalljohnson
You might be right:in fact the Freak_auth.php library can just be loaded in the auth (or whatever you renamed it) controller
Nevertheless I didn’t notice souch a performance difference.
How did you run the test?
Did you use any script/custom software?

I didnt use any script or custom software.  Just CI 1.5.3, Freakauth_light 1.0.4, and the default welcome controller. 

I installed FAL 1.04 according to the installation guide with a fresh copy of CI 1.5.3.

The test consisted of continually refreshing the welcome page (refreshes about .5 seconds apart) and observing the “page rendered in X seconds”.

When the FAL library was autoloaded (used the autoload_demo.php file that comes with the install), there is a signifant increase in the “page rendered in” number of seconds.  When I removed the autoload of the FAL library, the time was reduced considerably.

While I was typing this reply, I tried some more testing to see if I could get anymore information.  I am unable to reproduce the problem at the moment.  I haven’t changed anything either.  And I know I was not seeing things as when I would remove the autoload of the library, the time would go down.  If I added it back, the time went up.  I had repeated this back and forth about 7-8 times.

I will continue looking into this to see if I can reproduce the problem.  The only thing that has changed is that I shutdown and restarted my computer.

So at the moment, don’t spend anytime on this until you hear back from me (unless someone else is seeing the issue)

Profile
 
 
Posted: 18 May 2007 09:47 AM   [ Ignore ]   [ # 44 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006

Cheers,

‘cause I made the same test as yours, and I didn’t notice any difference on time rendering on my dev machine.

Have also a look here, on a live server where FAL is autoloaded.

 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: 18 May 2007 09:48 PM   [ Ignore ]   [ # 45 ]  
Summer Student
Total Posts:  10
Joined  01-15-2007

Hello,
  I am just starting out on this new project of mine. I checked the CI forum and found FreakAuth. Well i downloaded it and installed it. And I instantly fell in love with the interface smile . Trust me, the admin console interface is great. It may be partly due to the fact that I SUCK at web design.. really..

  Anyway, it would be a great feature if I were able to add user profile fields using the admin console itself.  And also suppose I have a referer field, which I need to fill using a url segment or so . Of course I can make my own controller function to accept the value and convert it to the form to be stored in db. But then I need it do the usual registration routine. Is it possible to pass this value to the FreakAuth registration function, so that it gets stored along with the other data?

  Oh, and another thing is, using db prefixes completely breaks it. Suppose I set prefix as ab_ in database.php, naturally, I rename the freakauth tables to ab_fa_user etc to avoid mysql errors. Then I avoid getting mysql errors, but then I get errors in the freakauth installer saying “fa_country” not found etc. Maybe if I renamed the tables and set the prefix AFTER the installation , it may work .. hmm..

  The first time I ran the console, I got a PHP Notice saying the ‘rules’ index was not defined on line 247 of admin/users.php . This stopped coming after I manually added a user. It does break the app, but it would be nice if it were fixed.

I think thats all.  LOL .

Still hats off to you guys for making such a fantastic app. :D

~
Thomas

Profile
 
 
Posted: 19 May 2007 04:43 AM   [ Ignore ]   [ # 46 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  492
Joined  02-21-2007

Thanks thomasantony for this feedback and ideas.

thomasantony - 18 May 2007 09:48 PM

  Anyway, it would be a great feature if I were able to add user profile fields using the admin console itself.

Yeah, this would be great, but it’s quite a lot of work, and even if we wanted and had time, some stuff is in the config file and we would have to write in it (beurk).
Maybe we could use both: config based custom fields and db based ones…

Well, maybe in 2.0 !!! next decade !!!

And also suppose I have a referer field, which I need to fill using a url segment or so . Of course I can make my own controller function to accept the value and convert it to the form to be stored in db. But then I need it do the usual registration routine. Is it possible to pass this value to the FreakAuth registration function, so that it gets stored along with the other data?

This is interesting.
Well first, I’d like to be sure of what you wanna do.
I guess that you want to know how the visitor arrived to your door (which website hosted the link that pointed to ours). But the problem is, this kind of websites that you want to track may not point directly to the register page, and the referer that we’ll have at register time may be OUR homepage. So I think that we have something to do to store an “external” referer temporarily before thinking about storing it in the db for long.

This maybe a too specific feature for us (don’t know what Dan will think about it), but I’m interested in doing such a lib, with a dedicated table that would store a url for each user id (a kind of referer module like in Xaraya).

  Oh, and another thing is, using db prefixes completely breaks it. Suppose I set prefix as ab_ in database.php, naturally, I rename the freakauth tables to ab_fa_user etc to avoid mysql errors. Then I avoid getting mysql errors, but then I get errors in the freakauth installer saying “fa_country” not found etc. Maybe if I renamed the tables and set the prefix AFTER the installation , it may work .. hmm..

This question is very interesting too !!!
ok, we could change the hardcoded calls to the necessary tables in the installer and add some documentation for renaming the tables
anyway, this will be cleanly sorted when we’ll have an active record db installer

  The first time I ran the console, I got a PHP Notice saying the ‘rules’ index was not defined on line 247 of admin/users.php . This stopped coming after I manually added a user. It does break the app, but it would be nice if it were fixed.

we’ll investigate, thanks !

Still hats off to you guys for making such a fantastic app. :D

Thanks, this kind of post brings a shining sun. cool smile

Profile
 
 
Posted: 19 May 2007 07:01 AM   [ Ignore ]   [ # 47 ]  
Summer Student
Total Posts:  10
Joined  01-15-2007

Hi,
  When I said referer, I did not mean HTTP referer .. I meant a user who refers another . Its just that, I know how the get the username or id from the url or cookies and all.

  I like the default registration form, because it works and I dont want to make another. I can make a ‘referer’ box in the reg template and then pass the value to it in the $data variable in the Auth->register() function etc.

  But the problem is , even though I make an input box with the value in the reg page, it still wont put the thing into the db on submitting the form.

  I hope you understood. Even if not .. I will figure out some way. Maybe I will add the field into the fa_users table itself. That should work.

The library is good enuf as it is. It really spared me the work of developing an admin panel.
Thanks again.

~
Thomas

Profile
 
 
Posted: 19 May 2007 07:24 AM   [ Ignore ]   [ # 48 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  492
Joined  02-21-2007
thomasantony - 19 May 2007 07:01 AM

Hi,
  When I said referer, I did not mean HTTP referer .. I meant a user who refers another .

oh, ok

  I like the default registration form, because it works and I dont want to make another. I can make a ‘referer’ box in the reg template and then pass the value to it in the $data variable in the Auth->register() function etc.

  But the problem is , even though I make an input box with the value in the reg page, it still wont put the thing into the db on submitting the form.

  I hope you understood. Even if not .. I will figure out some way. Maybe I will add the field into the fa_users table itself. That should work.

yes, you have to tweak the db to achieve this
we’ll try to implement the “registration time infos” in next versions, but we have to foresee what people need.
maybe you could help us to find ideas about that
here is a kind of feature request page

The library is good enuf as it is. It really spared me the work of developing an admin panel.
Thanks again.

grin

Profile
 
 
Posted: 20 May 2007 02:16 PM   [ Ignore ]   [ # 49 ]  
Summer Student
Total Posts:  13
Joined  05-11-2007

Hi there..

After i upgraded to 1.0.4 from 1.0.3 the flash popups disappeared..
I have the $config[‘FAL_flash’] = TRUE;

Is it something more i have to do to get the flash messages up again?

Profile
 
 
Posted: 21 May 2007 01:09 AM   [ Ignore ]   [ # 50 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  492
Joined  02-21-2007
pels - 20 May 2007 02:16 PM

Hi there..

After i upgraded to 1.0.4 from 1.0.3 the flash popups disappeared..
I have the $config[‘FAL_flash’] = TRUE;

Is it something more i have to do to get the flash messages up again?

well, this is very strange since every single flash messages appears on our tests
1) this config item is dedicated to the deny process (maybe we’ll have to rename it, mea culpa), and has nothing to do with the other uses of the flash messages
2) do you mean that no flash message appears anymore, or some disappeared? Is it the same in the admin console?
3) be sure to have this snippet in one of your view files that you use

<!--STAR FLASH MESSAGE-->
     
<?php
     $flash
=$this->db_session->flashdata('flashMessage');
     if (isset(
$flash) AND $flash!='')
     
{?>
         
<div id="flashMessage" style="display:none;">
             
<?=$flash?>
         
</div>
     
<?php }?>
     
<!--END FLASH-->


and try to remove the <div> tags, just to see if the message arrives (not a css problem)

<!--STAR FLASH MESSAGE-->
     
<?php
     $flash
=$this->db_session->flashdata('flashMessage');
     if (isset(
$flash) AND $flash!='')
     
{?>
             <?
=$flash?>
     <?php }?>
     
<!--END FLASH-->

Profile
 
 
   
5 of 25
5
 
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: 64452 Total Logged-in Users: 20
Total Topics: 80957 Total Anonymous Users: 0
Total Replies: 435678 Total Guests: 175
Total Posts: 516635    
Members ( View Memberlist )