Hi,
If you remember, last year we had a whole series of problems with CCK imagefield and all other fields not displaying.

On my live site (Drigg 5x) I have had the following fix for many months now: http://www.drigg-code.org/node/611 It works without any problems!

But I noticed that it was not incorporated into 6.x!!!

I tried that code in my 6x-dev of drigg.module and it works perfectly too.

Please incorporate this fix into drigg.module for 6.x

Thank you.

Comments

mercmobily’s picture

Hi,

OH MY GOD.
YOU FIXED THE CCK PROBLEM!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!

I... I...

I will commit to CVS ASAP.

I... I...

Thank you!! :-D

Please email and pester me tomorrow in case I am taking too long to fix this.

THANKS!

Merc.

drupalina’s picture

Hi,
(I didn't do the fix. Some other drigger did and I just put it on my 5.x site, and it works for 6.x too)

It seems like this code has not been implemented in Drigg-dev yet

The fix:

In the file "\sites\all\modules\drigg\drigg\drigg.module"

change:

function drigg_insert($node) {
drigg_insert_or_update($node, "insert");
}

to:

function drigg_insert($node) {
drigg_insert_or_update($node, "insert");
// CCK bug work around. We clear the cache so CCK fields will appear in the post.
$cid = 'content:'. $node->nid .':'. $node->vid;
cache_clear_all($cid, 'cache_content');
}

So far this has worked OK in my testing.

looking forward to new drigg 6x dev

ajayg’s picture

Any update on this? I still don't see this commited yet.

Ouark’s picture

Excuse-me, can you delete my post, I was reply in wrong issue.

Thank you.

Jordi Bufí’s picture

function drigg_insert($node) {
drigg_insert_or_update($node, "insert");
// CCK bug work around. We clear the cache so CCK fields will appear in the post.
$cid = 'content:'. $node->nid .':'. $node->vid;
cache_clear_all($cid, 'cache_content');
}

It has worked for me too!

Chrys’s picture

Assigned: Unassigned » Chrys
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.