Posted by abraham on March 15, 2009 at 8:38am
| Project: | Planet profile |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
When "Role to select user from" is set to "authenticated user" the edit form field is empty because role id 2 is not present in users_roles. I think it is assumed to apply to any user with an account.
My recommendation is to get rid of the dropdown and just use an autocomplete form.
I've started working on a patch and will try to finish it in a day or two. (Remind me if it is not done by the end of the week :-/)
Comments
#1
I am curious to see the patch.
#2
This patch changes the original author field into an autocomplete field and removes the role to select users from field. There may be bit I missed removing since the form logic is so intertwined.
#3
Fixed a small typo.
#4
Hello poseurtech
Great it works !!
But when i edit a feed author name, it does not changes in node table. Here the code to do that
else if ($edit['fid'] && intval($edit['fid']) > 0) {// Username can change, so we need to store the ID, not the username.
$edit['uid'] = db_result(db_query("SELECT uid from {users} WHERE name = '%s'", $edit['username']));
db_query('UPDATE {planet_feeds} SET uid = %d, title="%s", link = "%s", image="%s" WHERE fid=%d', $edit['uid'], $edit['title'], $edit['link'], $edit['image'], $edit['fid']);
// changing the uid of nodes that are associated to this fid.
$result = db_query("SELECT nid FROM {planet_items} WHERE fid = %d", $edit['fid']);
while ($nid = db_fetch_object($result)) {
db_query('UPDATE {node} SET uid = %d WHERE nid = %d', $edit['uid'], $nid->nid);
}
drupal_set_message('Edited "'. $edit['title'] .'" feed.');
}
#5
I'd like to point out that the Ubuntu-Drupal team has completed their Planet module which is much more stable and featured than this modules.
As per this issue: We're using this and have it working very well.
Try it out and see which you prefer. http://drupal.org/project/udplanet
#6
This project is being abandoned by the maintainer (swe3tdave) in favor of a similar project that has many of the bugs in this module taken care of. Please try to udplanet module (http://drupal.org/project/udplanet) to see if this bug still exists. If it does please report it. This module is actively maintained and the Ubuntu-Drupal team that maintains it will make every effort to ensure the issue is resolved as quickly as possible.
Because this project is now abandoned, I and setting the Status to Won't Fix and removing anyone assigned to it.
Thanks,
MTecknology