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.

Announcing Bonfire - A jumpstart for your web apps

March 30, 2011 2:05am

Subscribe [33]
  • #61 / Apr 15, 2011 11:29am

    kilishan

    183 posts

    Hello Lonnie,

    We can now give the database prefix on install, but the old bf_ prefix is still used in a file:

    A Database Error Occurred
    Error Number: 1146
    
    Table 'database.bf_users' doesn't exist
    
    SELECT role_name, COUNT(1) as count FROM bf_users, bf_roles WHERE bf_users.role_id = bf_roles.role_id GROUP BY bf_users.role_id
    
    Filename: /home/xxx/public_html/xxx/core_modules/users/models/user_model.php
    
    Line Number: 114

    You might have already fixed this now, but change the beginning part of this function to:

    $prefix = $this->db->dbprefix;
        
            $sql = "SELECT role_name, COUNT(1) as count
                    FROM {$prefix}users, {$prefix}roles
                    WHERE {$prefix}users.role_id = {$prefix}roles.role_id
                    GROUP BY {$prefix}users.role_id";

    It has been fixed in the latest develop branch.

    From now on, could you do me a favor and report errors like this in the issue tracker at GitHub? That will help me keep track of things better. Thanks!

  • #62 / Apr 15, 2011 11:31am

    kilishan

    183 posts

    @ac1drain Did you get this figured out? Were there any changes needed to Bonfire? It almost sounded like part of the database roles hadn’t been inserted properly during install, but not sure.

  • #63 / Apr 15, 2011 2:11pm

    Ruud Jonk

    7 posts

    Hello Lonnie,

    I’ll do that from now on. I’m still looking into codeigniter an bonfire so when I find some bugs I will report them on github.

  • #64 / Apr 15, 2011 5:05pm

    dpgtfc

    47 posts

    Great application!

    This is so very trivial, but the admin needs a link to the home page, just for ease of sake (maybe I’ve spent too much time with WordPress).  I tried to add one in the H1 tag, but it made the link disappear and I couldn’t for the life of me get it to show up with styles.

    Any plans on adding one for those of us that are CSS-challenged?

  • #65 / Apr 15, 2011 5:07pm

    kilishan

    183 posts

    Great application!

    This is so very trivial, but the admin needs a link to the home page, just for ease of sake (maybe I’ve spent too much time with WordPress).  I tried to add one in the H1 tag, but it made the link disappear and I couldn’t for the life of me get it to show up with styles.

    Any plans on adding one for those of us that are CSS-challenged?

    Thanks!

    You know, I think I tried that as I was pushing to get 0.1 out the door and ran into the same thing. Didn’t take the time to figure out what was going on at the time. Will fix that, though.

    Update: This is fixed in the latest push to the develop branch. ( https://github.com/ci-bonfire/Bonfire/tree/develop )

  • #66 / Apr 15, 2011 6:10pm

    dpgtfc

    47 posts

    Awesome, thanks! 

    By the way, boneheaded question.

    I’ve been trying to figure out how to do something like below in the template:

    if($this->auth->is_logged_in()){
          // display admin link (if admin) and logout link
         
       }else{
          // display login link
       }


    In your backend views you call $this->auth->restrict(), and I’ve tried to use the
    “is_logged_in” function of the auth library but it doesn’t seem to be auto-loaded for the basic homepage.  Any ideas on how to get around this?  I’m currently working on it, and will let you know if I find out a solution. Thanks!

  • #67 / Apr 16, 2011 6:47am

    MikeJS

    1 posts

    Hi I am trying to install bonfire outside of my public_html folder but I get an erorr telling me

    An Error Was Encountered

    Unable to find theme layout: index


    I have set the correct paths in index.php to /home/userid/bonfire/application

    is there another url link I need to update

    thanks

    M

  • #68 / Apr 17, 2011 4:06am

    Basketcasesoftware

    442 posts

    @basketcase - Sorry I missed your post, but it looks like you got it working. That’s great. Did you need to alter anything in Bonfire to make it work?

    What did you see working? If you see a bunch of frames of men’s suits that’s from a backup of earlier work before Bonfire (handled by my host). No. I never got it to work. My host even tried it and we were both scratching our heads. We were getting odd results every time we tried to run the installer and I just had the company delete and replace my entire site with the backups from April 5th. I could sporadically get Bonfire to connect to the database on the first screen of install, the next one wrote to the files correctly, but when Bonfire tried connecting to the DB to create the tables it started having connection errors. Tried to go back and start the installer again, but then it would not recognize the connection data for the connection test that had worked previously. VERY VERY odd.

  • #69 / Apr 17, 2011 11:56pm

    kilishan

    183 posts

    In your backend views you call $this->auth->restrict(), and I’ve tried to use the
    “is_logged_in” function of the auth library but it doesn’t seem to be auto-loaded for the basic homepage.  Any ideas on how to get around this?  I’m currently working on it, and will let you know if I find out a solution. Thanks!

    You’re right. With a default install, auth is not loaded for the front-end theme. To load auth, edit application/core/MY_Controller.php to load the required libraries in the Front_Controller class. You might also load it to the Base_Controller class, since it sounds like it is something that will be loaded site-wide for your application. But don’t do it both places, that’s would just create unnecessary double-loading. 😊

  • #70 / Apr 17, 2011 11:58pm

    kilishan

    183 posts

    Hi I am trying to install bonfire outside of my public_html folder but I get an erorr telling me

    An Error Was Encountered

    Unable to find theme layout: index


    I have set the correct paths in index.php to /home/userid/bonfire/application

    is there another url link I need to update

    thanks

    M

    It sounds like it’s the Template class complaining here, so open your application/config/application.php file and adjust your ‘template.site_path’ and ‘template.theme_paths’ settings to match your environment.

  • #71 / Apr 18, 2011 12:00am

    kilishan

    183 posts

    I could sporadically get Bonfire to connect to the database on the first screen of install, the next one wrote to the files correctly, but when Bonfire tried connecting to the DB to create the tables it started having connection errors. Tried to go back and start the installer again, but then it would not recognize the connection data for the connection test that had worked previously. VERY VERY odd.

    Yes, it was the men’s suits that I saw.

    Damn, was hoping you got it working. Sorry to hear about the issues. That’s really strange. Haven’t seen that one yet. What type of server are you running on?

  • #72 / Apr 18, 2011 8:44am

    Ephyzy

    22 posts

    Great job! This looks very exciting. I wonder how complicated it may be if I am to combine this with the A3M authentication system?

  • #73 / Apr 18, 2011 9:55am

    kilishan

    183 posts

    Thanks!

    Using a different auth system might be a little complex. Everything is built around the current auth that is in it. I am planning on some additions to the auth system to allow different auth plugins (like Facebook, Twitter, etc) which should help alleviate some of those issues.

    The easiest way to integrate would probably be to add a couple of functions to the auth of your choice that use the same name, though checking permissions for apps is done in a pretty specific way, so it could be a pain. 😊

    What are the parts of A3M that make you choose that one?

  • #74 / Apr 18, 2011 11:53am

    Ephyzy

    22 posts

    @kilishan

    Thanks for your reply. I’m quite the novice so I’m not sure I can combine them as you say. I love Bonfire but I really need native and third party authentication: FB, twitter and OpenID. That’s the only reason I’m with A3M now.  😊

  • #75 / Apr 18, 2011 12:02pm

    kilishan

    183 posts

    That is definitely in the plans, but I haven’t started on it yet.

    Keep an eye on the project and it should evolve to meet your needs 😊

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

ExpressionEngine News!

#eecms, #events, #releases