[geeklog-devtalk] changing owner

Wim Niemans ri remy at pbsolo.nl
Thu May 13 18:10:06 EDT 2004


2) Feature request #204 asked for an option to let the admin post a
story for someone, i.e. under their name. I've now added a dropdown
menu in the admin's story editor that lets you pick the user that
should be displayed as the author of the story.

I am featuring a similar button in the contacts plugin. It is used to
change ownership of a contact record. Clicking on it results in a
small popup listing the current users. Clicking on a user in the
popup, changes the owner id and name in the form.
The button only shows for Admin, at the moment.
Having this solution gives me a quick main page. The overhead to look
up all users (or......all users of a specific group.......) runs only
on demand.

Code of the button:

Owner: <input type=button name=owner_username value="vri11432"
onClick="javascript:window.open('userlist.php', 'userlist',
config='height=320,width=240,scrollbars=yes,top=50,left=150');">
<input type='hidden' name='owner_id' value='36'>

You may find the php (userlist) in attachment.

Cheers,
wim niemans




More information about the geeklog-devtalk mailing list