Announcing Bonfire - A jumpstart for your web apps |
[eluser]Basketcasesoftware[/eluser]
[quote author="kilishan" date="1301599879"]I'm not sure, but it sounds like you might be overcomplicating things.... but, yeah. In your main view, you'll have your array of albums/images/whatever. Loop over those, using a simple <?php echo theme_view('viewname', $data) ?> for each spot. Two thoughts, though. First - should this be a theme view? Sounds like the gallery would work best as a module, so the view would be part of that. Second, sounds like the easier way might be to just use the one view and spit out a series of ul's with each image being your tiles. Granted, I don't know exactly what you're trying to accomplish, but it just sounds like you're going about it the hard way. ![]() Because the tiles aren't simple images. They are a dynamically created combination of text, background image, and foreground image with a a border. They are pretty complex objects. They are a product gallery components of an online store front. The client wants his customers to be able page through the variations of a product from the current page with only so many of the product displayed at the time. The product "tiles" need to be laid out on a 2x2, 2x3, 3x2, ..., 4x4 grid depending on user settings. For the JQuery library that means potentially over a hundred tiles loaded up and paged through. I'm actually using the JQuery Tools Overlay tool as a container for the JQuery Tools Scrollable tool (yes, the site suggests similar). Each product image is required to have a complex popup window with it's own links, images, text, etc on hover. Currently I just use the CI template class with partials to render this but I'd like to convert this to the Ocular engine if possible. Currently I take the DB query for the current product category, divide the array into chunks based on the required frame dimensions. Then for each frame chunk I divide it into rows based on the given horizontal dimension - row divisions are necessary for proper vertical spacing and other row-level elements. Finally I iterate through each row chunk getting the data for the current title. I have to render an enclosing div for each frame. That div has to have enclosing divs for each row. And finally there are enclosing divs for each tile. And I've really simplified things already!
[eluser]defectivereject[/eluser]
I would add a position: relative; on your #toolbar so it contains your #toolbar-left and #toolbar-right for those with fixed width sites. Otherwise if you have a fixed width body the toolbar left and rights absolute position to that
[eluser]ipsod[/eluser]
I'm trying to install it on my server and getting a ton of errors. Just extracted everything to a subdirectory (mysite.com/bonfire) on my test server and went to mysite.com/bonfire/install A PHP Error was encountered Severity: Notice Message: Constant FILE_READ_MODE already defined Filename: config/constants.php Line Number: 16 A PHP Error was encountered Severity: Notice Message: Constant FILE_WRITE_MODE already defined Filename: config/constants.php Line Number: 17 A PHP Error was encountered Severity: Notice Message: Constant DIR_READ_MODE already defined Filename: config/constants.php Line Number: 18 A PHP Error was encountered Severity: Notice Message: Constant DIR_WRITE_MODE already defined Filename: config/constants.php Line Number: 19 A PHP Error was encountered Severity: Notice Message: Constant FOPEN_READ already defined Filename: config/constants.php Line Number: 30 A PHP Error was encountered Severity: Notice Message: Constant FOPEN_READ_WRITE already defined Filename: config/constants.php Line Number: 31 A PHP Error was encountered Severity: Notice Message: Constant FOPEN_WRITE_CREATE_DESTRUCTIVE already defined Filename: config/constants.php Line Number: 32 A PHP Error was encountered Severity: Notice Message: Constant FOPEN_READ_WRITE_CREATE_DESTRUCTIVE already defined Filename: config/constants.php Line Number: 33 A PHP Error was encountered Severity: Notice Message: Constant FOPEN_WRITE_CREATE already defined Filename: config/constants.php Line Number: 34 A PHP Error was encountered Severity: Notice Message: Constant FOPEN_READ_WRITE_CREATE already defined Filename: config/constants.php Line Number: 35 A PHP Error was encountered Severity: Notice Message: Constant FOPEN_WRITE_CREATE_STRICT already defined Filename: config/constants.php Line Number: 36 A PHP Error was encountered Severity: Notice Message: Constant FOPEN_READ_WRITE_CREATE_STRICT already defined Filename: config/constants.php Line Number: 37 A PHP Error was encountered Severity: Notice Message: Constant BONFIRE_VERSION already defined Filename: config/constants.php Line Number: 40 A PHP Error was encountered Severity: Notice Message: Undefined property: CI::$auth Filename: hooks/App_hooks.php Line Number: 39 Fatal error: Call to a member function role_id() on a non-object in /home/cw/public_html/forgetyourself.com/bonfire/bonfire/application/hooks/App_hooks.php on line 39
[eluser]Syahzul[/eluser]
great work! i just want to request you not to use php short tags, since in some server it will cause problem. other than that, it's awesome! http://postimage.org/image/315ftf0h0/
[eluser]Ruud Jonk[/eluser]
Hello All, I just started with codeigniter for a new project and now trying bonfire. At the moment I run into the following error when running the installer. A Database Error Occurred Unable to connect to your database server using the provided settings. Filename: /home/*****/public_html/project/third_party/MX/Loader.php Line Number: 93 This is at "/install/account". All database info given in the installer are correct and stored within the database.php file. Can someone tell me what I'm doing wrong here? Thanks for helping.
[eluser]kilishan[/eluser]
[quote author="Syahzul" date="1301752056"]great work! i just want to request you not to use php short tags, since in some server it will cause problem. other than that, it's awesome! http://postimage.org/image/315ftf0h0/[/quote] Thanks for the report. I didn't think I was using shorttags anywhere. Guess you found the last ones that were remaining from old projects.
[eluser]kilishan[/eluser]
[quote author="defectivereject" date="1301691321"]I would add a position: relative; on your #toolbar so it contains your #toolbar-left and #toolbar-right for those with fixed width sites. Otherwise if you have a fixed width body the toolbar left and rights absolute position to that[/quote] Could you create an issue for this at the GitHub Issue Tracker? Thanks
[eluser]kilishan[/eluser]
@ipsod - I'm not sure what's going on here or why it's trying to pull in the constants.php twice. The two things that come to mind, though, are: 1) With this being a sub-directory, is your main site CI based? If so, you probably need to adjust the main .htaccess file and point your rewritebase to the proper folder, otherwise, it might be trying to use your main site's configuration/index file to run Bonfire, which won't work. 2) Did you download from ci-bonfire/Bonfire on GitHub or lonnieezell/bonfire? I've noticed a few new people watching/forking the lonnieezell one, which is old and will be removed soon, but I wanted to give people time to get switched over and not just yank it away without any warning.
[eluser]kilishan[/eluser]
[quote author="Ruud Jonk" date="1301873097"]Hello All, I just started with codeigniter for a new project and now trying bonfire. At the moment I run into the following error when running the installer. A Database Error Occurred Unable to connect to your database server using the provided settings. Filename: /home/*****/public_html/project/third_party/MX/Loader.php Line Number: 93 This is at "/install/account". All database info given in the installer are correct and stored within the database.php file. Can someone tell me what I'm doing wrong here? Thanks for helping.[/quote] Hey Ruud - Please verify that the correct details are also in config/developer/database.php.
[eluser]Ruud Jonk[/eluser]
Ahh, Looks like I just the wrong repo. Now I use ci-bonfire/Bonfire and it worked. Thanks |
Welcome Guest, Not a member yet? Register Sign In |