Notifications
Clear all

Pagination?

12 Posts
2 Users
1 Reactions
6,608 Views
Astghik
Posts: 6149
Admin
(@astgh)
Illustrious Member
Joined: 7 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: 99
Customer
Topic starter
(@radiostv)
Member
Joined: 7 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