Gossamer Forum
Home : Products : DBMan : Customization :

Adding 3 fields only for admin

Quote Reply
Adding 3 fields only for admin
Hello,
first I would say sorry for my english, I come from germany. Now my problem:
Can I set permissions for 3 fields only in subhtml_add_form (the admin fill these fields, 8 other fields fill the registered user - and default user can search in all fields)?
How can I add graphics (gif-logos) to the records (it is one of the 3 fields only for admin)
Regards Ecki
Quote Reply
Re: Adding 3 fields only for admin In reply to
1) Use the following codes around the fields that you want to have the admin only add:

Code:
if ($per_admin) {
FIELDS
}

2) Either use FULL URLs to the image files, or use the File Upload Mod, located here:


Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Adding 3 fields only for admin In reply to
Hi Eliot,
thank you. But where must I set this codes? I put it in the sub html_add_form. My english is really not so good - I tell you my problem again:
#Adding#
admin have permissions for 11 fields
add have permissions for 8 fields

I am a beginner. Thank you.
Regards Ecki
Quote Reply
Re: Adding 3 fields only for admin In reply to
You put the codes in the sub html_record_form!

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Adding 3 fields only for admin In reply to
Hi Eliot,
thanks for all. I copy the code in the sub html_record_form, but the DB don't run. Now I see this:

http://www.gossamer-threads.com/scripts/forum/resources/Forum12/HTML/001193.html

I copy the sub html_record_form, rename it to sub html_record_add, delete there three fields, change the sub html_add_form with if ... elsif - AND IT RUN!!!

Now its midnight in germany, tomorrow I make the image files.

Again, thank you.
Regards Ecki
Quote Reply
Re: Adding 3 fields only for admin In reply to
Good...glad you figured it out.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------