AI Assistant
Notifications
Clear all

Pagination?

12 Posts
2 Users
1 Reactions
10.1 K Views
Astghik
Posts: 6645
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
(@astgh)
Illustrious Member
Joined: 8 years ago

Hi @radiostv,

As a temporary solution, I can suggest you the following changes. 

Put the following code in class.wpForoAttachUploadHandler.php file as shown in the screenshot. The file is located in the  wp-content/plugins/wpforo-advanced-attachments/includes/ folder.

$files = array_diff($files, array('.', '..', 'thumbnail'));
$files = array_slice($files, 0, 20);
last20

Reply
radiostv
Posts: 117
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
(@radiostv)
Member
Joined: 8 years ago

Hi @astghik

I cannot thank you enough, that works a treat.

A fantastic temporary solution now my members with many attachments, can now continue to use the attach interface once again. 

I guess I will need to keep re-editing and adding this code if the plugin gets further updates.

Once again many thanks.


Reply
Page 3 / 3
Share:
Scroll to top