⚠ In case you've missed it we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠


threestatedrive

Member Since 29 Mar 2012
Offline Last Active Jan 21 2013 01:09 PM
-----

Topics I've Started

set_relation_n_n not saving to db

11 January 2013 - 06:41 PM

i have done this successfully in another instance, but for some reason, this isnt saving to the db

i have a table Cases
case_id
case_title

a table Posts
post_id
post_title

and my relational table is case_post
case_id
post_id
priority

In my Case controller, i want to be able to relate multiple posts, so my controller code line is:
$this->grocery_crud->set_relation_n_n('posts', 'case_post', 'posts', 'case_id', 'post_id', 'post_title','priority');

it displays no problem in my edit page, but when i try and save, it doesnt...
i'm really struggling to see why
on my post controller, i am able to do it with a post_cat relational table, and even in the Case controller, if i utilize the post_cat code, it saves.. just not this table.. I've even tried rebuilding the table, but to no avail..
anyone seen this before?

image upload and resize

23 August 2012 - 04:01 PM

hey everyone,
i have a question, there's an example of using the file upload, and a callback to resize the image using image_moo..
i can use this no problem as far as the upload goes, however when it comes to resizing, what are the restrictions on file size/dimensions?
i've had no problems uploading large file sizes, or even large dimensions, provided that the width x height arent large.
for example, i can upload a file that's 3000px wide by 12px high and it resizes no problem, same if i swap the width and height.
so i would've thought that i would be fine with a 3000px X 3000px image, but it never seems to work.
Like i said, the upload works, but the resizing times out (i just keep getting the spinning circle after the image has uploaded, and a thumbnail is never generated)

does anyone have any info on what restrictions there are? or how (if possible) to over ride them?
im building a cms for an elderly lady to upload images, and she's really not going to be able to resize them prior to uploading.

thoughts?

thanks

set_relation_n_n validation

11 May 2012 - 01:07 PM

I have a field that is set_relation_n_n, and i've set_rules for that field to be required.
however, it always passes the validation, even if nothing has been selected.
Does anyone have a solution for this?
or does anyone know of a way to default the dropdown to always start on an item?

[ANSWERED] set_relation and "Add New" button to quick insert.

24 April 2012 - 07:59 PM

Hello all,
I've been looking through the forums, and perhaps its been answered, but I cant find that answer anywhere..
I have a simple relation between two tables... posts and categories...
i'm using set relation on the posts pages, so that I can quickly choose from a dropdown of categories... is there a way to put an 'add new' in that dropdown? (preferably without leaving the page)
ie, so the user doesnt have to go out to the category edit section to add a category, and then come back..

appreciate any thoughts

tinymce + free uploader

29 March 2012 - 05:29 PM

Hi, I think this is such an amazing solution, and will insanely speed up my work..
my question is.. how can i set up image upload inside textareas...
currently i can attach a link to a file.. but how can I insert an image into a text area, and browse my machine and upload?
i've looked all over, but no luck finding it...

thanks in advance