Hi, may i know how can i add input file in my custom plugin setting at ACP? I need to allow admin to upload image via the setting.
https://prnt.sc/WZw383MilI3b
if you are programmer you can use php optionscode
(2022-05-10, 04:32 PM)Mostafa.Shiraali Wrote: [ -> ]if you are programmer you can use php optionscode
Hi Mostafa, thanks for your reply. But the optionscode only support the following and does not has file input field:
- text : A regular text box
- numeric : A numeric field
- textarea : A larger text box
- yesno : A boolean yes/no control
- onoff : A boolean on/off control
- select : A select box (in the format select followed by = with one per newline)
- forumselect : A built-in radio + select box to select forums
- forumselectsingle : A built-in select box to select only one forum
- groupselect : A built-in radio + select box to select groups
- groupselectsingle : A built-in select box to to select only one user group
- radio : A set of radio buttons (in the format select followed by = with one per newline)
- checkbox : A boolean checkbox field
- language : A language selection box
- adminlanguage : An ACP language select
- cpstyle : A theme selector
- php : A php code
Are you mentioning the php code? Do you have any sample code or references?
I told you use php code , add input type file with this option code , then with admin hook handle file uploading and ....