Jump to content


vnt

Member Since 01 Feb 2012
Offline Last Active May 15 2012 05:10 PM
-----

Posts I've Made

In Topic: [ANSWERED] How to add fancybox in Grocery Crud

12 May 2012 - 06:43 AM

Your add_action is wrong the right one is:

$crud->add_action('More', '', 'demo/action_more','ui-icon-plus various');
and not "varius fancybox.iframe". Follow the instructions of KaBaDaBrA and it will work for the action too.

There is a problem because the button add_action not function!

In Topic: [ANSWERED] How to add fancybox in Grocery Crud

03 May 2012 - 03:05 PM

What can I do to add a fancybox at add_action?

<link rel="stylesheet" href="<?=base_url()?>assets/plugins/fancybox/jquery.fancybox.css?v=2.0.6" type="text/css" media="screen" />
<script type="text/javascript" src="<?=base_url()?>assets/plugins/fancybox/jquery.fancybox.pack.js?v=2.0.6"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".fancybox").fancybox();
});
$(document).ready(function() {
$(".various").fancybox({
  maxWidth : 800,
  maxHeight : 600,
  fitToView : false,
  width  : '70%',
  height  : '70%',
  autoSize : false,
  closeClick : false,
  openEffect : 'none',
  closeEffect : 'none'
});
});
</script>

    $crud->add_action('More', '', 'demo/action_more','ui-icon-plus varius fancybox.iframe ');

The fourth parameter ($css_class) not working properly?

void add_action( string $label,  string $image_url , string $link_url , string $css_class ,  mixed $url_callback)
  • $css_class: add a CSS class. Remember that at the theme of datatables a CSS class includes images , for example : ui-icon-image, ui-icon-plus, e.t.c.

Thanks a lot,
D.

In Topic: create 3 thumbnails from an upload

03 May 2012 - 01:58 PM

Aslo vnt I think that the image CRUD ( http://www.web-and-d...or-codeigniter/ T ) will help you a lot for this (it is still BETA version but it works)

Very interesting!

I have a problem with the upload, the new images are not seen. Images in the folder are 0 kb and thumbnails are not created!
when I delete the new file, I get the following error:

A PHP Error was encountered

Severity: Warning
Message: unlink(assets/uploads/thumb__8c6d-consulenza.jpg) No such file or directory
Filename: libraries/image_crud.php
Line Number: 205

A PHP Error was encountered

Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /Users/vnt/Sites/vnt/system/core/Exceptions.php:185)
Filename: helpers/url_helper.php
Line Number: 546


PHP Version 5.3.6
D.

In Topic: create 3 thumbnails from an upload

03 May 2012 - 01:28 PM

$file_uploaded = $field_info->upload_path.'/'.$uploader_response[0]->name;
$thumbnail1 = $field_info->upload_path.'/thumb1-'.$uploader_response[0]->name;
$thumbnail2 = $field_info->upload_path.'/thumb2-'.$uploader_response[0]->name;
$thumbnail3 = $field_info->upload_path.'/thumb3-'.$uploader_response[0]->name;

In this example, there is an error on file name:
'/thumb1-'.$uploader_response[0]->name; does not work because it can not rename the file. I do not know how to correct the error.
I solved it by creating three folders:

$file_uploaded = $field_info->upload_path.'/'.$uploader_response[0]->name;
$thumbnail1 = $field_info->upload_path.'/thumbs1/'.$uploader_response[0]->name;
$thumbnail2 = $field_info->upload_path.'/thumbs2/'.$uploader_response[0]->name;
$thumbnail3 = $field_info->upload_path.'/thumbs3/'.$uploader_response[0]->name;


thanks a lot!
D.

In Topic: unique field validation

02 May 2012 - 01:21 PM

Hello Johnny,
there are new for the validation unique field?
Thanks, David