Attachment Block Edit?

Post Reply

Topic author
shelliwood
Active Member
Posts: 2
Joined: 21. October 2008 11:07
Contact:

Attachment Block Edit?

Post by shelliwood »

I would ike to change it so the block show the most downloaded attachements rather than the most recent, but not sure how to go about it, any help?
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: Attachment Block Edit?

Post by Kevin »

Not tested:

Open portal/block/attachments.php

find:

Code: Select all

            ORDER BY
                filetime ' . ((!$config['display_order']) ? 'DESC' : 'ASC') . ', post_msg_id ASC';
replace with:

Code: Select all

            ORDER BY
                download_count ' . ((!$config['display_order']) ? 'DESC' : 'ASC') . ', post_msg_id ASC';
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

Topic author
shelliwood
Active Member
Posts: 2
Joined: 21. October 2008 11:07
Contact:

Re: Attachment Block Edit?

Post by shelliwood »

Thanks, that works
Post Reply

Return to “Modifications Support”