Avatar

Howdy, Stranger!

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

edival

About

Username
edival
Joined
Visits
279
Last Active
Roles
Member

Comments

  • Is there a resize_and_crop option for the assets though? I want an odd shaped image to be say: 100x100 but maintain aspect and crop to that ratio before resizing.
  • Okay, well then... goes to show when you don't read ALL the new instructions what great things you miss! haha... That is fantastic... gotta promote that asset field type more 'cause it's fantastic!
  • yes, assets/images/gallery/ to be exact. $this->upload_path() is short for: function upload_path() { return(assets_server_path('gallery/','images')); }
  • That's the full server path to the file. Even if I hard code it to say: /var/server/path/to/file.jpg I get the same thing. Keep in mind that directs to the file that exists at this point.. but for some reason resize() or resize_and_crop() in on_af…
  • I'm having a similar issue while resizing, using the new 1.0 route I have: function on_after_post($where) { $file = $where['item']; // resize and crop thumb file $config = array(); $config['source_image'] = $this->upl…
  • That worked. Thanks! (thought I was losing my mind!)
  • Strange, in order for me to have the file name stay the same in the DB I had to add the following function to my module: function on_before_save($where) { $where['item'] = $_FILES['item']['name']; return ($where); } otherwise it saved without…
  • Okay, that's just odd. The files are being saved with the extension merged as their name: so file 1.jpg would go into the db as 1jpg but saved as 1jpg.jpg This is all I have in the module to modify the form to save the files: $fields['item'] = arr…
  • I tried adding that line, but it didn't help. I agree with My_string_helper being an issue with that particular issue. So, another new odd thing, my filenames when added to the DB are being changed to omit the . Is that supposed to happen? ie te…
  • Okay, so I found MY_fuel_modules.php in: \fuel\modules\fuel\views\_generate\simple\ and added the line: 'sanitize_input' => array('template','php'), But I still seem to have that same issue.
  • Actually, I think it might have something to do with this link: http://www.getfuelcms.com/forums/discussion/949/table-markup-is-mangled-after-save/p1 As I noticed the code I paste: {if ($session->flashdata('success')) } gets changed to {if $se…
  • Sorry, line 1217. Yes, the session library is loaded with: $this->load->library('session'); is session_flashdata() used to set the session or retrieve the session?
  • Next question, something changed with sessions or dwoo or variable passing: I used to be able to check {$session->flashdata} in the CMS but it's throwing an error now. This after setting the flashdata and redirecting back to the page: $this-&g…
  • Awesome, that worked perfectly. I was trying to find that in the documentation, not sure if I overlooked it or not but I appreciate your help. Thanks!
  • How do you make this case-insensitive? ie. this doesn't work: $pages['something/Something/this-is-news/:any/This-Is-News/:any'] = array('view' => 'showcase/project'); any easy idea? Thanks!
    in Uri routing Comment by edival July 2012
  • Wow, just spent over an hour trying to figure that out... Thanks! Too bad that wasn't a comment with the $fuel_var doc page.
  • I think I have it figured out... I don't know if there will be any side-effects yet or not, but what I did is: fuel/modules/fuel/controllers/modules.php -> module.php line 562 in Create() I changed the line to: if (!is_ajax() ) $this->_rende…
  • Lance: That's perfect! Thanks, I implemented that! Okay, my project is coming along great, but I'm totally stuck on the JSON info, it's very new to me and I want to learn how it works. My roadblock is with the communications between modules, per…
  • For adding the select/deselect all button in the list view I implemented the following: In my extra_script.js file: $(function() { $('a.ico_gallery_select').toggle(function(e) { e.preventDefault(); $('#multi_delete').css({'display':'block'})…
  • This project is starting to get me more comfortable with Fuel and I'm enjoying it. But here's today's questions: 1) I need to return a JSON response after on_after_post() in my simple module. What is the best way to make sure it's the last thing com…
  • I was looking for the "after_html" method which is exactly what I needed. Guess I was blind not being able to see it. Also thanks for the xtra_css. That's perfect. (I couldn't find that in the docs either) Soon as I get this working I'll post wh…
  • I was able to get this working with CI by itself, so that's a bonus, which means there's no issues with the _process_uploads method. This is because the upload loop is setup with the JavaScript. This creates an interesting dilemma. 1) I need to be …
  • With #2 I mean having a site with separate topics having distinct uri's. ie. Videos at http://site.com/Videos/2012/03/26/My-Latest-Video-Review or Reviews at http://site.com/Reviews/2012/03/25/Fantastic-Movie-Review That kind of thing. So the "cat…