Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Inti31 - tammikuu 12, 2014, 03:01:30 IP

Otsikko: List ALL attachments on one page?
Kirjoitti: Inti31 - tammikuu 12, 2014, 03:01:30 IP
hmmh, maybe this is asked before... - didn't find it...

All my attachments I find here by this link: http://myforum/index.php?action=admin;area=manageattachments;sa=browse;

but only 15 attachments are listed and I've to click on page 2, 3, etc

Is it possible to generate a list is longer than 15 entries?

I would like to download all my attachments local, and with DownloadThemAll I can do it (use *text* only) to get the full name of the attachment.


any idea - it is worse clicking on each page...

cheers Inti31
Otsikko: Re: List ALL attachments on one page?
Kirjoitti: hadesflames - tammikuu 14, 2014, 01:36:32 IP
Go to ManageAttachments.php in ./Sources

Search for


function BrowseFiles()
{


Then search inside that function for


'items_per_page' => $modSettings['defaultMaxMessages'],


Replace "$modSettings['defaultMaxMessages']"

With the number of attachments per page to show. Be sure to leave that comma in to the right of the number you put. Here's an example:

'items_per_page' => 50,

And be sure to change that back when you're done.
Otsikko: Re: List ALL attachments on one page?
Kirjoitti: Inti31 - tammikuu 16, 2014, 01:34:16 IP
Merci beaucoup  :)