| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 4610|Reply: 2
Collapse the left

Custom attachments with icons

[Copy link]

 United States

Post time: 2017-11-15 20:41
| Show all posts |Read mode
Edited by evanhenry at 2017-11-15 20:43

Hello Discuz/Vot,

The \static\image\filetype has 24 icons for attachments types. In which file are these extensions defined to icons?

How can I define a custom attachment type and add a new icon that will be displayed for it?

Thanks for your time

 Russia

Post time: 2017-11-16 08:07
| Show all posts
1) Add your icons into /static/image/filetype/ folder.
2) Edit the file: /source/function/function_attachment.php,     function attachtype()

 United States

 Author| Post time: 2017-11-16 13:51
| Show all posts
vot 2017-11-16 08:07
1) Add your icons into /static/image/filetype/ folder.
2) Edit the file: /source/function/function_a ...

Excellent. Thank you Vot.
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-22 04:51 GMT+3 , Processed in 0.033480 sec., 9 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list