Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

File in backend and file name

6 Posts
2 Users
0 Reactions
6,457 Views
Posts: 3
Customer
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@redakcja)
Member
Joined: 9 years ago
[#1548]

Hi, i see that wpDiscuz is only front end, you can't view files in comments section in backend. Its really bad.. 

-----

 

1. Anyway, can u tell me how attachment are storing in DB ?

 

What is relationship between comments and files in database. 

 

Maybe you have documentation for that ?

I really need my comment file in backend, i'll write it. 

But i need any information about DB.

Thanks in advice.

----

 

2. Why comments file name is comment_25_file.docx when user try to download it?

----

greetings

 


5 Replies
Posts: 4238
 Tom
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@tomson)
Famed Member
Joined: 11 years ago

Hi Województwo Łódzkie,

Please find my answers below:

1. Anyway, can u tell me how attachment are storing in DB ?

Those stored in Wordpress Media Library as usual files. The logic is the same as other media library files. The relation information between comment and file is stored in wp_commentmeta table.

2. Why comments file name is comment_25_file.docx when user try to download it?

This make it unique and easy to manipulate in functions.


Reply
Posts: 3
Customer
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@redakcja)
Member
Joined: 9 years ago

1. Ok, I've already figured out how to do it. Meaby ill send u my work

2. In my case, file name is realy important. How can i fix that ?


Reply
Posts: 4238
 Tom
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@tomson)
Famed Member
Joined: 11 years ago

The name of files is not a bug to fix it, this is a working logic of the addon. I'm really sorry but there is no way to change it easily. We'll take this under consideration and add the real name after some unique phrase in file names.


Reply
Posts: 3
Customer
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@redakcja)
Member
Joined: 9 years ago

Hmmm, it's so bad.. Your plugin make so many additional files:

 

Zrzut ekranu 2017 08 17 o 10.43.31

 

Your plugin store normal file in upload folder and then copy to new file comment_name_file.. 

For me its strange..

Please just tell me where is function wich change file name..

 

 

Why plugin create jpg from pdf  file.. Like thumbnails in posts. I get different  size of pdf.. 1024 768 .. 

When user add 100 comments in one day with  pdf file  this will be big issue

1 file create 4,5 other files ..

 

Why plugin make jpg from pdf  file.. Like thumbnails in posts. I get different  size of pdf.. 1024 768 .. 

 

When user add 100 comments in one day with  pdf file  this will be big issue.

 

 


Reply
Page 1 / 2
Share:
Scroll to top