ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Looking for people to give feedback on Community Auth

March 14, 2012 10:42pm

Subscribe [20]
  • #31 / Apr 13, 2012 11:10am

    CI_Monkey

    6 posts

    Hey Brian - Just wanted to let you know I ended up just downloading the full version.  Figured, as a newbie, I was jumping in way too deep off the bat.  I do now have Community Auth up and running, and WOW, looks like you really thought of everything.

    I did run into two very minor things that tripped me up during the install/setup, and wanted to pass along as possible updates to the documentation to help others.  These may be just newbie things, so take these suggestions with that in mind:

    A) Step 3 “Edit and Run Init Controller” - you might add a note specifically for the $disabled setting to “set this to FALSE as your first step before trying to run init.php”.  I know this seems completely obvious now, but after installing and making all the config changes, I didn’t know what this setting did and left it alone.  The result of keeping this TRUE unfortunately looks identical to he issue leatherback reported running into with the .htaccess issue (my log looked identical to his log output), so I ended up spending way too much time tweaking .htaccess stuff.  Again, turned out I just hadn’t changed the $disabled setting.

    B) Then the first thing to do once you have everything up and running, is go to the “Registration Mode” page to enable registration.  Again, very minor, but took me a while to figure out why I couldn’t create registrations, and spent too much time going back through the installation and configuration side of things to figure out what I had wrong.

    Again, awesome job on this - I’m amazed at all the features, like the Registration Mode - very complete set of options!  I hope to get into it pretty deep next week.

  • #32 / Apr 13, 2012 1:03pm

    skunkbad

    1326 posts

    Monkey, glad you like it. Yes, the enabling of the init controller could probably be better documented, but if you notice, none of the example functionality is well documented. I work many hours a day, so I’ll put it on the list of things to do!

    Next on the list is a contact form. You won’t find many sites that don’t have one, so it ought to be part of the package.

  • #33 / Apr 13, 2012 1:40pm

    CI_Monkey

    6 posts

    Looks like you have a “contact us” form in your Community Cart code (just found Community Cart via reading through some other threads).  You’re going to keep me very busy checking all this wonderful code of yours out. 😊

  • #34 / Apr 13, 2012 7:50pm

    skunkbad

    1326 posts

    Looks like you have a “contact us” form in your Community Cart code (just found Community Cart via reading through some other threads).  You’re going to keep me very busy checking all this wonderful code of yours out. 😊

    Yeah, but Community Cart is really not as good was I want it to be. I’m going to completely redo it at some point, but I just don’t have time right now.

  • #35 / Apr 27, 2012 12:19am

    skunkbad

    1326 posts

    There has been a lot of work done in Community Auth in the last week or so, and specifically in regards to the new “Deny Access” functionality, I’m hoping some will test it out and let me know if you find any bugs or issues. I know because this feature works specifically with a .htaccess file that there may be a good percentage of people that won’t be able to use it, but let me know how it goes, and what you think.

    Also, there’s a new maintenance mode (not documented) found in /index.php. It allows you to set the ENVIRONMENT to ‘maintenance’ and show a custom maintenance mode page to everyone except devs whose IP addresses are listed in the developer IPs array.

    Tons of changes if you look at all the commits!

  • #36 / May 26, 2012 2:34am

    skunkbad

    1326 posts

    Thank you to CroNiX for pointing out a bug in the init controller. Admin creation was causing an error because there was no `license_number` for the insert into DB. What’s really strange is that when I was testing at home, I still didn’t have the problem, but I just added the license number to the admin creation form, and nobody should have that problem anymore.

    Another more important issue was resolved in a commit a few days ago:

    https://bitbucket.org/skunkbad/community-auth-ci-session-version/changeset/7eea4c3954b1

    If you are using Community Auth, you should definitely update.

  • #37 / Jun 04, 2012 7:19pm

    CI_Monkey

    6 posts

    Hey Brian - Been slowly making my way through the code - still a steep learning curve for a newbie.  I believe I’ve found an issue I wanted to let you know about.  Was working with the Manage Users, and noticed when I page to the next set of data, the results appear in multiple places on my page.  Narrowed it down to the manage-users.js, which seems to be writing to any/all tables that are included on my page, as opposed to a specific table (such as “myTable” which you’ve defined in the manage-users.php view).

    I looked at the javascript, but don’t know enough how to tell it to only manipulate a specific table.

  • #38 / Jun 04, 2012 7:28pm

    skunkbad

    1326 posts

    Hey Brian - Been slowly making my way through the code - still a steep learning curve for a newbie.  I believe I’ve found an issue I wanted to let you know about.  Was working with the Manage Users, and noticed when I page to the next set of data, the results appear in multiple places on my page.  Narrowed it down to the manage-users.js, which seems to be writing to any/all tables that are included on my page, as opposed to a specific table (such as “myTable” which you’ve defined in the manage-users.php view).

    I looked at the javascript, but don’t know enough how to tell it to only manipulate a specific table.

    So, have you made customizations to the page? Is so, you added at least one tbody tag? On line 75 of the js file, you will see that tbody is emptied out and replaced with the contents of ajax. So, if you add another tbody to the page, you could just add an id to the original tbody, and add the id to the js too. So, for example, if you added an ID of “whatever” to the tbody, line 75 of the js becomes this:

    $(‘tbody#whatever’).empty().append(data.table_content);

    Yes, there is a learning curve, but at least you have something to learn from! Have fun!

  • #39 / Jun 04, 2012 7:48pm

    CI_Monkey

    6 posts

    Yes, I’ve been making changes to learn the code and bring it into my own test website.  I’m very grateful for the code, so don’t take my posts as complaints - just trying to learn and provide feedback.

    The change you suggested didn’t work correctly, but got me on the right path.  Ended up changing to use “#myTable > tbody” and then things began to work.  The full line:
      $(’#myTable >tbody’).empty().append(data.table_content);

    Thanks for the quick response Brian, and again, for this code.

    - CI Monkey

  • #40 / Jun 04, 2012 7:50pm

    CroNiX

    4713 posts

    Looks like you could just

    $('#myTable tbody').html(data.table_content);
  • #41 / Jun 04, 2012 8:05pm

    skunkbad

    1326 posts

    Glad you got it figured out. jQuery, as you have probably already found out, is super easy to use. Thanks for the feedback!

  • #42 / Jun 20, 2012 5:26am

    lazzymonk

    3 posts

    are there any known incompatibilities when it comes to servers? I have 2 very similar cpanel servers and community auth works fine on one but just shows a completely blank page on the other (0 bytes, just headers). I have configured it correctly and all that stuff.

    I have tried everything I can think of that would cause this but nothing seems to help.

    If anyone could point me in the right direction it would be much appreciated.

    ps regular codeigniter works fine.

  • #43 / Jun 20, 2012 11:03am

    skunkbad

    1326 posts

    If it were me, I’d probably start by removing the call to is_logged_in() in the construct of the static pages controller. This controller is where the home page is generated from, and by removing is_logged_in(), you’d essentially have nothing going on with the authentication library. You could take it a step further by removing autoloaded stuff in config/autoload. By doing these things, you are really reducing it down to just plain CI. I’d be glad to take a look at it with you if you give me access. I haven’t heard anyone else say that there were server incompatibilities, so I’m leaning towards a corrupt file download or something….

  • #44 / Jun 20, 2012 1:34pm

    lazzymonk

    3 posts

    Thanks for the pointers, they did send me in the right direction. Turns out it was an ‘i’ causing the problem.

    Your database config file has mysqli as the default driver, the default CI one is mysql. It seems that was enough to stop the whole thing working for me.

    I did however find a typo / bug in application/models/registration_model.php on line 201, you missed the ;

    Thanks for the help.

  • #45 / Jun 20, 2012 2:16pm

    skunkbad

    1326 posts

    Thanks for the pointers, they did send me in the right direction. Turns out it was an ‘i’ causing the problem.

    Your database config file has mysqli as the default driver, the default CI one is mysql. It seems that was enough to stop the whole thing working for me.

    I did however find a typo / bug in application/models/registration_model.php on line 201, you missed the ;

    Thanks for the help.

    lazzymonk! Thanks for your feedback. I fixed those issues in the repository tip just now. Let me know if you find anything else, and again, thank you.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases