How about 6.x version of this awesome module?

CommentFileSizeAuthor
#27 nodegift.zip30.17 KBoff
#22 nodegift6x.zip13.82 KBpitxels
#11 nodegift6.x.zip30.28 KBoff

Comments

igorik’s picture

subscribe
I would like to partially donate the 6.x. version If someone will be interested

Igorik
http://www.somvprahe.sk

drupalprojects’s picture

Assigned: Unassigned » drupalprojects

Too much work last months.
I will get back to this module soon and port it to 6.x as well as fix bugs and implement some feature requests.

igorik’s picture

There are great news!
Thanks for your work

Igorik

Witch’s picture

subscribe!

I need this module very much for a brandnew page!

It would be great if there will be a port to drupal 6 soon!

Do you know more about a release?

greetz

off’s picture

subscribe!

Very necessary module

Larus’s picture

Subscibe!

igorik’s picture

Is this module abandoned?

Witch’s picture

i think so

drupalprojects’s picture

No. this module isn't abandoned.

If any of you, guys, can make a donation, I will be happy to port it in the next few days as well as fix bugs.
Unfortunately, I can't do any free work these days as I'm in urgent need of moneys.

Btw, I think user http://drupal.org/user/210064 already have it for drupal 6 and you can ask him to share his work.
Have a good day.

igorik’s picture

Hi!

Thanks for the answer.
Could you please to specify ammount what is needed for you for start to work on upgrade to D6 and bugfix?
Maybe there will be here enough people to collect money for it.

Do you know that you can use chipin tool on your project page? http://www.chipin.com/

I really like this your module. I asked you about partially donate some bugfix/feature requests last year for D5, but I never got answer.
I would like to add my little bit for support of D6 upgrade.

Have a nice day
Igor
http://www.somvprahe.sk

off’s picture

StatusFileSize
new30.28 KB

6.x version

Special for igorik!

igorik’s picture

Wau Roman, thanks a lot.
I am looking forward to coming at home and trying it :)

Have a nice and successful day!
Igor
http://www.somvprahe.sk

igorik’s picture

Hi Roman,

could be possible that your module doesn't work with latest cck module?

I was happy that I can play with it today, but as I am trying it, I always end on the first step,

Node-type Darček doesn't contains at least 1 number integer CCK field

althoug I have content type(new, right for node gift) with integer field (field type Integer, widget type - textfield.)
Number of values - 1 (default)

this is my content type

$content['type']  = array (
  'name' => 'Darček',
  'type' => 'darcek',
  'description' => 'darcek',
  'title_label' => 'Názov darčeka',
  'body_label' => '',
  'min_word_count' => '0',
  'help' => '',
  'node_options' => 
  array (
    'status' => true,
    'promote' => false,
    'sticky' => false,
    'revision' => false,
  ),
  'language_content_type' => '0',
  'upload' => '1',
  'phpfreechat_nodeapi' => 'never',
  'phpfreechat_nodeapi_custom' => 0,
  'phpfreechat_nodeapi_title' => '',
  'phpfreechat_nodeapi_channels' => '',
  'old_type' => 'darcek',
  'orig_type' => '',
  'module' => 'node',
  'custom' => '1',
  'modified' => '1',
  'locked' => '0',
  'og_content_type_usage' => 'omitted',
  'signup_node_default_state' => 'disabled',
  'signup_date_field' => '0',
  'content_profile_use' => 0,
  'fivestar' => 0,
  'fivestar_stars' => 5,
  'fivestar_labels_enable' => 1,
  'fivestar_label_0' => 'Zruš svoje hlasovanie',
  'fivestar_label_1' => 'Slabé',
  'fivestar_label_2' => 'Okay',
  'fivestar_label_3' => 'Dobré',
  'fivestar_label_4' => 'Great',
  'fivestar_label_5' => 'Awesome',
  'fivestar_label_6' => 'Daj @star/@count',
  'fivestar_label_7' => 'Daj @star/@count',
  'fivestar_label_8' => 'Daj @star/@count',
  'fivestar_label_9' => 'Daj @star/@count',
  'fivestar_label_10' => 'Daj @star/@count',
  'fivestar_style' => 'average',
  'fivestar_text' => 'dual',
  'fivestar_title' => 1,
  'fivestar_feedback' => 1,
  'fivestar_unvote' => 0,
  'fivestar_position_teaser' => 'hidden',
  'fivestar_position' => 'below',
  'comment' => '0',
  'comment_default_mode' => '4',
  'comment_default_order' => '1',
  'comment_default_per_page' => '50',
  'comment_controls' => '3',
  'comment_anonymous' => 0,
  'comment_subject_field' => '1',
  'comment_preview' => '1',
  'comment_form_location' => '0',
  'image_attach' => '1',
  'image_attach_size_teaser' => 'thumbnail',
  'image_attach_weight_teaser' => '0',
  'image_attach_size_body' => 'thumbnail',
  'image_attach_weight_body' => '0',
  'notifications_node_ui' => 
  array (
    'form' => false,
    'comment' => false,
    'links' => false,
    'teaserlinks' => false,
    'subform' => false,
    'block' => false,
  ),
  'notifications_content_type' => 
  array (
    'grouptype' => true,
    'thread' => true,
    0 => 1,
    'nodetype' => false,
    'author' => false,
    'typeauthor' => false,
  ),
  'print_display' => 0,
  'print_display_comment' => 0,
  'print_display_urllist' => 0,
  'print_mail_display' => 0,
  'print_mail_display_comment' => 0,
  'print_mail_display_urllist' => 0,
  'ant' => '0',
  'ant_pattern' => '',
  'ant_php' => 0,
);
$content['fields']  = array (
  0 => 
  array (
    'label' => 'obrázok',
    'field_name' => 'field_darcek_obrazok',
    'type' => 'filefield',
    'widget_type' => 'imagefield_widget',
    'change' => 'Change basic information',
    'weight' => '1',
    'file_extensions' => 'png gif jpg jpeg',
    'progress_indicator' => 'bar',
    'file_path' => 'imagefield/darcek/obrazky',
    'max_filesize_per_file' => '',
    'max_filesize_per_node' => '',
    'max_resolution' => 0,
    'min_resolution' => 0,
    'custom_alt' => 0,
    'alt' => '',
    'custom_title' => 0,
    'title_type' => 'textfield',
    'title' => '',
    'use_default_image' => 0,
    'default_image_upload' => '',
    'default_image' => NULL,
    'description' => 'obrazok darceka',
    'group' => false,
    'filefield_insert' => false,
    'filefield_insert_presets' => 
    array (
      'autor_prispevku' => false,
      'bublina' => false,
      'ddblock' => false,
      'fotka_v_profile' => false,
      'ikonka' => false,
      'Malý obrázok v článku' => false,
      'Maly_obrazok_do_clanku' => false,
      'Maly_obrazok_do_uputavky' => false,
      'nahlad_50_x_50' => false,
      'node-gallery-cover' => false,
      'node-gallery-display' => false,
      'node-gallery-thumbnail' => false,
      'normal' => false,
      'skupina_detail' => false,
      'skupina_vzorove_foto' => false,
      'thumbnail' => false,
      'Veľký obrázok v článku' => false,
      'velky_obrazok_do_clanku' => false,
      'Velky_obrazok_do_clanku' => false,
      'Velky_obrazok_do_uputavky' => false,
    ),
    'filefield_insert_width' => '',
    'required' => 1,
    'multiple' => '0',
    'list_field' => '0',
    'list_default' => 1,
    'description_field' => '0',
    'op' => 'Save field settings',
    'module' => 'filefield',
    'widget_module' => 'imagefield',
    'columns' => 
    array (
      'fid' => 
      array (
        'type' => 'int',
        'not null' => false,
        'views' => true,
      ),
      'list' => 
      array (
        'type' => 'int',
        'size' => 'tiny',
        'not null' => false,
        'views' => true,
      ),
      'data' => 
      array (
        'type' => 'text',
        'serialize' => true,
        'views' => true,
      ),
    ),
    'display_settings' => 
    array (
      'weight' => '1',
      'parent' => '',
      'label' => 
      array (
        'format' => 'above',
      ),
      'teaser' => 
      array (
        'format' => 'image_plain',
        'exclude' => 0,
      ),
      'full' => 
      array (
        'format' => 'image_plain',
        'exclude' => 0,
      ),
      4 => 
      array (
        'format' => 'image_plain',
        'exclude' => 0,
      ),
      'email_plain' => 
      array (
        'format' => 'image_plain',
        'exclude' => 0,
      ),
      'email_html' => 
      array (
        'format' => 'image_plain',
        'exclude' => 0,
      ),
      'token' => 
      array (
        'format' => 'image_plain',
        'exclude' => 0,
      ),
    ),
  ),
  1 => 
  array (
    'label' => 'Popis darčeka',
    'field_name' => 'field_darcek_popis',
    'type' => 'text',
    'widget_type' => 'text_textarea',
    'change' => 'Change basic information',
    'weight' => '2',
    'rows' => '5',
    'size' => 60,
    'description' => 'popis darceka',
    'default_value' => 
    array (
      0 => 
      array (
        'value' => '',
        '_error_element' => 'default_value_widget][field_darcek_popis][0][value',
      ),
    ),
    'default_value_php' => '',
    'default_value_widget' => 
    array (
      'field_darcek_popis' => 
      array (
        0 => 
        array (
          'value' => '',
          '_error_element' => 'default_value_widget][field_darcek_popis][0][value',
          'format' => '3',
        ),
      ),
    ),
    'group' => false,
    'required' => 1,
    'multiple' => '0',
    'text_processing' => '1',
    'max_length' => '',
    'allowed_values' => '',
    'allowed_values_php' => '',
    'op' => 'Save field settings',
    'module' => 'text',
    'widget_module' => 'text',
    'columns' => 
    array (
      'value' => 
      array (
        'type' => 'text',
        'size' => 'big',
        'not null' => false,
        'sortable' => true,
        'views' => true,
      ),
      'format' => 
      array (
        'type' => 'int',
        'unsigned' => true,
        'not null' => false,
        'views' => false,
      ),
    ),
    'display_settings' => 
    array (
      'weight' => '2',
      'parent' => '',
      'label' => 
      array (
        'format' => 'above',
      ),
      'teaser' => 
      array (
        'format' => 'default',
        'exclude' => 0,
      ),
      'full' => 
      array (
        'format' => 'default',
        'exclude' => 0,
      ),
      4 => 
      array (
        'format' => 'default',
        'exclude' => 0,
      ),
      'email_plain' => 
      array (
        'format' => 'default',
        'exclude' => 0,
      ),
      'email_html' => 
      array (
        'format' => 'default',
        'exclude' => 0,
      ),
      'token' => 
      array (
        'format' => 'default',
        'exclude' => 0,
      ),
    ),
  ),
  2 => 
  array (
    'label' => 'Cena',
    'field_name' => 'field_darcek_cena',
    'type' => 'number_integer',
    'widget_type' => 'number',
    'change' => 'Change basic information',
    'weight' => '3',
    'description' => 'cena darceka',
    'default_value' => 
    array (
      0 => 
      array (
        'value' => '',
        '_error_element' => 'default_value_widget][field_darcek_cena][0][value',
      ),
    ),
    'default_value_php' => '',
    'default_value_widget' => 
    array (
      'field_darcek_cena' => 
      array (
        0 => 
        array (
          'value' => '',
          '_error_element' => 'default_value_widget][field_darcek_cena][0][value',
        ),
      ),
    ),
    'group' => false,
    'required' => 0,
    'multiple' => '0',
    'min' => '0',
    'max' => '',
    'prefix' => '',
    'suffix' => '',
    'allowed_values' => '',
    'allowed_values_php' => '',
    'op' => 'Save field settings',
    'module' => 'number',
    'widget_module' => 'number',
    'columns' => 
    array (
      'value' => 
      array (
        'type' => 'int',
        'not null' => false,
        'sortable' => true,
      ),
    ),
    'display_settings' => 
    array (
      'weight' => '3',
      'parent' => '',
      'label' => 
      array (
        'format' => 'above',
      ),
      'teaser' => 
      array (
        'format' => 'default',
        'exclude' => 0,
      ),
      'full' => 
      array (
        'format' => 'default',
        'exclude' => 0,
      ),
      4 => 
      array (
        'format' => 'default',
        'exclude' => 0,
      ),
      'email_plain' => 
      array (
        'format' => 'default',
        'exclude' => 0,
      ),
      'email_html' => 
      array (
        'format' => 'default',
        'exclude' => 0,
      ),
      'token' => 
      array (
        'format' => 'default',
        'exclude' => 0,
      ),
    ),
  ),
);
$content['extra']  = array (
  'title' => '-5',
  'revision_information' => '-3',
  'comment_settings' => '0',
  'menu' => '-4',
  'path' => '-2',
  'print' => '-1',
);

Thanks for your answer
Igor

Witch’s picture

hi igorik,

i have exactly the same problem.

off’s picture

igorik, I am use Content 6.x-2.4 and module work fine..

After a while I plan to update modules to last versions and I will possibly face to this problem, in any case I not the developer and hardly can correct a code.

adam_c’s picture

I would desperatly like this module, there has been no activity on this page for many months, has it been abandoned?

off’s picture

adam_c, I am sponsored a development of this module and 6.x version upgrade, and I use this module with my project, but I'm don't have permissions to edit this page

Methos76’s picture

Hello,

cause of the fact I want to use this Module in Drupal 6, I corrected the problem mentioned by igorik & witch.

the problem is in function nodegift_admin_settings_form_validate (nodegift.module) in case 1 block :

original code:

			foreach ($types[$form_state['values']['ng_type']]['fields'] as $key => $field) {
				if ($field['type'] == 'number_integer') {
					$number_count++;
				}

				if (!$number_count) {
					form_set_error('ng_type', t('Node-type @node-type doesn\'t contains at least 1 number integer CCK field',
					 array('@node-type' => $types[$form_state['values']['ng_type']]['name'])));
					$form_state['storage']['step']--;
			    }
			} 

change to :

			foreach ($types[$form_state['values']['ng_type']]['fields'] as $key => $field) 
			{
				if ($field['type'] == 'number_integer') 
				{
					$number_count++;
				}
			}
			if (!$number_count) {
				form_set_error('ng_type', t('Node-type @node-type doesn\'t contains at least 1 number integer CCK field',
				 array('@node-type' => $types[$form_state['values']['ng_type']]['name'])));
				$form_state['storage']['step']--;
		    }

Short description: the if-block must not be in the foreach block. Thats simply all.

igorik’s picture

Many thanks Methos76 , it works! :)

I liked this module so much but I was really sad that I couldn't use it because this bug what I didn't know to solve...
Now I started again to use it on my site.

I noticed a few more or less annoying things in this module, please, let me (and the others) know, if you will be doing (and solve) something with this:

1. Gift comments textarea output would be sent as html, because if you are using wysiwyg, there are html tags within final gift comment and it doesn't look good for receiver.

2. When you are buying gift, the image of the gift could be shown, no just link to it. It is not big thing, just an idea, users could be missunderstood from this.

3. I would like to send some email or private message about that receiver got a new gift (what kind of gift, and who is sender, maybe include gift comment )... please if you will be doing something with it, share your code with us. Probably the best thing will be to connect sending gifts to rules, and then anybody can do anything with rules after gift is sending (send email/privatemessage, whatever), or after gift is viewing (send email/privatemessage that your gift was viewed)

4. I think that would be great to show to receiver info about new gift after his login - same as it with privatemessage (You have x new messages) - in this case: You have x new gifts with link to gift page (site/gifts)

Thanks again, I think when these points will be sometimes solved, this module will be a lot of more usable and it will be really famouse.
But I like this node gift idea at all, it finally give to my users an option to do something nice with their earned userpoints. :)

Igor

pitxels’s picture

So it is possible to have a v6 release now? or a donation is still required?

pitxels’s picture

The views integration is not working for me :(

Broken/missing handler Gift Image

Error: handler for node_data_field_2 > field_2_fid doesn't exist!

pitxels’s picture

Priority: Normal » Critical
StatusFileSize
new13.82 KB

I just patched the validation and its working decently.

The view is not complete, but the cck image field can be added for the image, etc.

sadly i don't know enough coding for finishing the port

Please make this a release if you want others to benefit from the 6x module, so people don't think you want to stop the progress of the contributions because the lack of donations.

Witch’s picture

This module should get a donator to get finished and become stable.

@Developer
Let us know how we can improve the development.

igorik’s picture

not sure if the module author is interested in anything because 2 years no comment of him here...
I wrote to him 1 or 2 years ago about supporting developing of this module, and I didn't receive any answer.

ocamp’s picture

im getting ... (Object) stdClass

called from sites\all\modules\nodegift\nodegift.module, line 416

how do I get rid of this?

off’s picture

Assigned: drupalprojects » off

Post the revised version of the module.

It took some changes for the new project. Now the module requires only one obligatory field - the price. Gift can now be any type of document, not just a picture. Example - http://bruneta.ru/music

The database structure has not changed and will not change because she thought pretty good, can not be said about usability.

The module operates on two major projects, no problems noticed.

Maintainer very busy, but once freed, I will ask to make some changes and what to put on the project page.

Do not be afraid to use the module. Version 7.x and he always will be maintained until then, until the alternative, if you will.

off’s picture

StatusFileSize
new30.17 KB

Module here

monkey_luv10’s picture

I downloaded the above zip for the giftnode version 6. It seems to work it saysgift sent but where do i see the gifts given? wheres the gift page? i have search low andhigh everthing i cant seem to find it. I have posted blocks and veiws but nuttin shows up. :(

Witch’s picture

Just build a view. The module supports views.

andrii_svirin’s picture

Witch plz share last version of module.
If module wish's CCK integer field -- Try create Content type with default options + Add Integer field with default options.
Question is "How to send Gift" ? I hadn't found any link in Profile?
I think the first future would be make default argument for filling user_name such arg(1) from URL.
Another question "How user can delete his gift, submitted him from another user?"

igorik’s picture

Hi

is there some new version of Node Gift? The last version doesn't work with my latest version of CCK...
Would be great, it is pity that this lovable module is not supported/developed :(

hankamodrovska’s picture

super tiez to pozuzijem http://www.edarceky.eu/