hi guys.

i have a bad problem!

if the group admin or a moderator (assigned role with og_user_roles) edit a post from another user,
it will not longer assigned to the group that the creator of the node checked.

please someone help me

regards

Lausch

Comments

somebodysysop’s picture

If I'm not mistakened, this is not an OGR issue. It was hashed out here in the OG group: http://drupal.org/node/164070

Lausch’s picture

hm i dont thnk so

my problem is that if a user create a node it will not assignet to a group

Lausch’s picture

Priority: Critical » Normal
Status: Active » Fixed

sorry for above..

i mean if a moderator edit a node from a user it will not longer assignet to it...

i solved the problem myself. i added a code in my forum-edit template that forward the user from /node/234/edit to /node/123/edit?gids=123

than if user click save the post will assignet to the group...

regards

Lausch

lias’s picture

Would you mind posting your code? Thanks.

Lausch’s picture

i know this isnt professional but it work.


<?php $nodegid = node_load(arg(1)) ?> 
<?php if ($_GET['gids'] == '') : ?>
<?php drupal_goto("/node/" . arg(1) . "/edit/" , $query =  "gids[]=" . $nodegid->og_groups[0]); ?>	
<?php else : ?>
<?php print drupal_render($form); ?>
<?php endif; ?>

regards

Lausch

Anonymous’s picture

Status: Fixed » Closed (fixed)

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