83 Posts
squareweb
10 years ago
12
Topic
Hi,

I want to let "superuser" change the "created by" field of content-items created by registered users.
When I create front-end-form the superuser is presented with the edit-form of already created content-items but the superuser cannot change the "created by" filed. Instead the details of the superuser profile are presenten which can be edited?

What am I missing?

Thanks in advance.

Mark
Get a Book for SEBLOD
10 years ago
1
Level 1
Hello squareweb and welcome to the forum,

have you added any link to that created by field in your frontend form? If yes, remove the link and try again.
83 Posts
squareweb
10 years ago
0
Level 2
Thanks for replying Gebeer,

There is no link to this field.

Any idea?

Its a listview with a link (title) to the edit-page, on the edit page I expected a listbox with usernamers to select but instead the (edit)profile-form appears.

Thanks in advance.

Mark
10 years ago
1
Level 1
Hi Mark,

did you use the original created by field that is supplied by default? Screenshots of your content form setup would be helpful. To post screenshots here, you have to upload them somewhere and then include a <img src="/xxx"> tag manually in source code view of the forum message editor here.
83 Posts
squareweb
10 years ago
0
Level 2
Thanks Gerhard,

Find image here

Mark
10 years ago
2
Level 1
Ok, I see now. If you just want to let the super user change the created by value, in the site form setup do not use a live value. Set that to default and try again. It should work without any live values.

Let me know if this worked.
83 Posts
squareweb
10 years ago
1
Level 2
Sorry Gerhard,

I've removed the live value and set it to default. Still it is not possible to select the user?

If needed I can PM login credentials via your website.

Thanks again

Mark
83 Posts
squareweb
10 years ago
0
Level 4
Thanks a lot both Zwergo and Gerhard,

I'll give it a spin, let you know.

Mark
83 Posts
squareweb
10 years ago
1
Level 1
Zwergo,

I've set up as you adviced, but how to initialize the selectlist with the saved value after saving the content-type.
Next visit to the content-type's userfield doesn't show the right username.

Thanks in advance, see my settings and front-end here
83 Posts
squareweb
10 years ago
0
Level 3
No problem,

Thanks anyway

Cheers
10 years ago
1
Level 1
@squareweb

sorry, I was quite busy. Have you found a solution yet? You can still PM me the login and I can have a look. But I'll be out on the island for the weekend and can only have a look on Monday.

For Zwergo's suggestion with the select list:
This would be a dynamic select list where you query the user table and set the user name as option and the user id as value. You can save the value to the default created by field, I guess. Or you could also define your own field for that.

Later when you retrieve the value (user id) in the content type, it should show the correct user name.

83 Posts
squareweb
10 years ago
0
Level 2
No problem Gerhard,

I've tried some changes which resulted in malfunction of seblod. Could not get seblod re-installed so reinstalled Joomla!
Now cannot install Seblod because of installation error: Table 'dem.dem_cck_core_fields' doesn't exist SQL=SELECT id FROM dem_cck_core_fields WHERE id >= 500 AND id < 5000

Will post this one on the forum.

Thanks anyway for assistance. When I'm up and running I'll let you know if I succeeded with the User-selectbox.

Cheers

Mark
10 years ago
0
Level 1
Hi Mark,

Reinstalling Seblod can produce a total mess, so this is not recommended.

But strange, that you get these errors on a new install of Joomla. Looks like something goes wrong with the table prefix. Or did you really assign "dem.dem" as DB table prefix when you installed Joomla? Never seen one with a period (.). Maybe this causes the errors?

Greets
Gerhard


Get a Book for SEBLOD