Avatar

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Lance

About

Username
Lance
Joined
Visits
214
Last Active
Roles
Member

Comments

  • Method signature for options list is: options_list($key = NULL, $val = NULL, $where = array(), $order = TRUE) If you don't supply a key or val it'll use the first field after the id. I guess you have foriegn keys in this table? try, options_list(…
  • Try request_uri instead of auto. Usually works for me. Firebug tell you anything?
  • I think instead of me trying to explain the answers, take a look at the method in /modules/fuel/helpers it's quite short and easy to follow.. It'll probably be more succinct than my ramblings!
  • I just did exactly that but added a concat() in there, the get_others list works perfectly fine... but this data is a mess/unsuitable for this approach, re-think needed! Cheers for your help.
  • Thanks for that David, Doesn't quite crack it. I'm happy enough to keep hacking at it. So far: Problem comes from base_module_models::get_others which boils down to MY_Model::options_list options_list() seems to not use MY_Model::get() so it does…
  • And in case it's not obvious, you can also add 'skin' => 'your_skin_name' to add skins etc in that array as well...
    in Full CKeditor Comment by Lance May 2011
  • Cool, and yeah it didn't overwrite that method. Coming changes sound great too.
  • Ahh never mind.. an array_push to $config['fuel_javascript'] in MY_fuel.php gets it done...
  • Is there an unobtrusive/easy to upgrade method of loading other JS files for the admin when not in one of our own modules? I'd like to overwrite some functionality in _iniAssets() in BaseFuelController.js with my own behavior without hacking at the…
  • Okay, I think for now I'll just let it be known that the last thing to do is a key stroke in there. Probably a pretty slim use case for that not being the case anyway..
  • Yeah thanks from me too, works sweet. To build on the info a fraction further: Custom tool bar/skin on instantiation: $ckEditor.ckeditor({toolbar : "MyCustomToolbarsName", skin : "mySkinsName"}); Custom toolbar config in /editor/config.js: c…
  • FWIW I embedded Vanilla into a Fuel view and it worked fine. Not as nice as a fuel module but a work around.
  • Sweet thanks. Any pointers as to where/when in the form post the images are getting saved? In the case of a new entry there won't be an id to insert so it's dumping at the root instead. Would need to use on_after_save() to get the id. Is $_Files[]…
  • Yeah that works, created a folder and stuck it in there: $fields['upload_images'] = array('type' => 'file', 'class' => 'multifile', 'order' => 6, 'upload_path' => assets_server_path($CI->fuel_blog->settings('asset_upload_path').'…
  • Oh okay.. that's cool - thought I was losing my mind for a second! So when I edited the post after the upload the images were probably just cached in the interface? Can you point me in the right direction to where in the code (or maybe when is a …
  • debug_data()!! Thanks. Requirements have changed and I no longer need to store the per criteria results only matches across all so will rewrite. I noticed in the UG for find_all_assoc() and find_all_array_assoc() it says: "...The second parameter…
  • Is it a page made in the admin? Is cache enabled for it? I've had no problems with CI and Ajax in the past. Are you returning JSON and pushing to the DOM or?
  • Check out blog_comments_model.php for a more thorough form_fields() example as the functionality seems similar to what you're trying to achieve. I'm learning as I go too. I get confused between what's available/useable in the admin side vs public c…
  • That's (one of) the correct ways to use the form_attrs var yeah. Could be as a string as the UG points out. Action should be a destination url though. It'll render something like: Can use site_url() in there if you want to as well.
  • Boomer! Works fine.
  • When you asked about it being in a controller I wrote, why is that? I have the same bar on a page that is using the blog module and on that page it doesn't work. It's now fine on all the admin-made pages.
  • Ugh, works now.. Can only assume it was a cache issue. Pages aren't cached in the admin and I also logged out just to check that. Thanks for checking and sorry to waste your time!
  • Its set to auto
  • Mapped view file. But a block. I've created no controllers for this. So in a 'home' view I use: <?php $this->load->view('_blocks/side_bar')?> To load a block. To use the site variable In the side_bar I have: <?=fuel_var('side_stats…
  • Ah cool thanks for that. Is that documented and I just missed it or? So you'd use the on_before_save method to decide which form value to use yeah?
  • FWIW it's fine on OSX FF/Safari. I do see it on Win7 FF/EE however..
  • From my experience so far, yes absolutely. Nothing stopping you running your CI controllers, helpers, models & libraries in plain CI. It's why I've chosen Fuel.
  • Thanks, hopefully I'll get some time..
  • I sure did! I got it figured, was the order I had messed with it. This works: $this->db->select($this->_tables['blog_posts'].'.*, '.$this->_tables['blog_users'].'.display_name, CONCAT('.$this->_tables['users'].'.first_name, " ", '.…
  • Hey, Dave - it's Friday here so a few beers in. Will email on Monday. Tags table is in the config. I've basically duplicated everything about the categories and swapped out category for tag and the plural. I changed the _common_query() from above…