[DEV] View Attachments

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
User avatar
digioz
Registered User
Posts: 297
Joined: Thu Feb 05, 2004 9:20 pm
Location: Chicago, IL
Name: DigiOz Multimedia
Contact:

[DEV] View Attachments

Post by digioz » Tue Aug 16, 2011 4:55 pm

Modification Name: View Attachments
Author: digioz

Modification Description: Allows you to perform a quick search of all posts that have an attachment in them and view them in one place without going through all the replies associated with it
Modification Version: 0.1.0

Requirements: None
Supported PHPBB Versions: 3.0.9, 3.0.10

Download: view-attachments_0.1.0.zip
Source Code: DigiOz Github phpbb-mods

Image
Image

Screenshots:

Image

Image

Thanks,
Pete
Last edited by digioz on Tue Apr 03, 2012 12:48 am, edited 2 times in total.
DigiOz Multimedia
http://www.digioz.com

User avatar
FranckTH
Registered User
Posts: 361
Joined: Thu Jul 28, 2011 12:14 pm
Location: France
Name: Franck
Contact:

Re: [DEV] View Attachments

Post by FranckTH » Tue Aug 16, 2011 4:56 pm

very good idea this mod ;)
Free Flash & HTML5 Games for Phpbb 3.2.2 + Extension Relax Arcade Pro
Free Flash & HTML5 Games for Relax Arcade Pro

User avatar
digioz
Registered User
Posts: 297
Joined: Thu Feb 05, 2004 9:20 pm
Location: Chicago, IL
Name: DigiOz Multimedia
Contact:

Re: [DEV] View Attachments

Post by digioz » Tue Aug 16, 2011 5:19 pm

FranckTH wrote:very good idea this mod ;)
Thanks, and the best part of it is the fact that it uses all the built in search features which come out of box, just the actual query was added. :)

Here is the changes required to support Subsilver2 (not in ModX):
  • Open File "/styles/subsilver2/template/overall_header.html"
  • Find this line:

    Code: Select all

    <span style="float: {S_CONTENT_FLOW_BEGIN};"><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> | <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></span>
  • Replace it with this:

    Code: Select all

    <span style="float: {S_CONTENT_FLOW_BEGIN};"><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> | <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a> | <a href="search.php?search_id=attachposts&sr=posts">{L_SEARCH_ATTACHMENTS}</a></span>
The rest is the same for all other styles. :)

Pete
DigiOz Multimedia
http://www.digioz.com

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] View Attachments

Post by 4_seven » Tue Aug 16, 2011 5:55 pm

Last edited by 4_seven on Wed Apr 04, 2012 8:11 pm, edited 1 time in total.
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [DEV] View Attachments

Post by Jessica » Tue Aug 16, 2011 6:17 pm

4_seven wrote:looks near identical
http://www.phpbb.com/community/viewtopi ... #p12799067

search-result
http://4seven.kilu.de/phpbb3/search.php ... att_sr=att

so congrats 2 the clone..
except...yours just searches your own. This one searches ALL attachments by everyone. so it really isn't exactly the same... unless I'm wrong about that?
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein

User avatar
digioz
Registered User
Posts: 297
Joined: Thu Feb 05, 2004 9:20 pm
Location: Chicago, IL
Name: DigiOz Multimedia
Contact:

Re: [DEV] View Attachments

Post by digioz » Tue Aug 16, 2011 6:19 pm

4_seven wrote:looks near identical
http://www.phpbb.com/community/viewtopi ... #p12799067

search-result
http://4seven.kilu.de/phpbb3/search.php ... att_sr=att

so congrats 2 the clone..
Nice! Now users will have a choice. The one I did is a lot simpler then yours, and is meant to display ALL attachments starting with the most recent, whereas yours is User ID based.
jesschen wrote:
4_seven wrote:looks near identical
http://www.phpbb.com/community/viewtopi ... #p12799067

search-result
http://4seven.kilu.de/phpbb3/search.php ... att_sr=att

so congrats 2 the clone..
except...yours just searches your own. This one searches ALL attachments by everyone. so it really isn't exactly the same... unless I'm wrong about that?
You are correct actually. :)
DigiOz Multimedia
http://www.digioz.com

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] View Attachments

Post by 4_seven » Tue Aug 16, 2011 6:20 pm

Fine, so i can [ABD] this.
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
digioz
Registered User
Posts: 297
Joined: Thu Feb 05, 2004 9:20 pm
Location: Chicago, IL
Name: DigiOz Multimedia
Contact:

Re: [DEV] View Attachments

Post by digioz » Tue Aug 16, 2011 6:21 pm

4_seven wrote:Fine, so i can [ABD] this.
I would be happy to collaborate together with you, if you are open to such thing. Why ABD it if we can put our heads together and improve both? Viewing attachments by User ID (your Mod) is another very useful Mod which mine doesn't have, and I think both of them come in very handy.
DigiOz Multimedia
http://www.digioz.com

User avatar
FranckTH
Registered User
Posts: 361
Joined: Thu Jul 28, 2011 12:14 pm
Location: France
Name: Franck
Contact:

Re: [DEV] View Attachments

Post by FranckTH » Tue Aug 16, 2011 6:33 pm

i think these two mods are complementary, one for search your own attachments, one for search all topics with attachments...

no ?
Free Flash & HTML5 Games for Phpbb 3.2.2 + Extension Relax Arcade Pro
Free Flash & HTML5 Games for Relax Arcade Pro

User avatar
digioz
Registered User
Posts: 297
Joined: Thu Feb 05, 2004 9:20 pm
Location: Chicago, IL
Name: DigiOz Multimedia
Contact:

Re: [DEV] View Attachments

Post by digioz » Tue Aug 16, 2011 6:35 pm

FranckTH wrote:i think these two mods are complementary, one for search your own attachments, one for search all topics with attachments...

no ?
Yes, I agree they would complement each other nicely.
DigiOz Multimedia
http://www.digioz.com

User avatar
FranckTH
Registered User
Posts: 361
Joined: Thu Jul 28, 2011 12:14 pm
Location: France
Name: Franck
Contact:

Re: [DEV] View Attachments

Post by FranckTH » Tue Aug 16, 2011 6:53 pm

and why not add the possibility when you click on "view attachments" to select in drop dow menu, "your own topics" or "all topics" ?

it's a possibility no ?
Free Flash & HTML5 Games for Phpbb 3.2.2 + Extension Relax Arcade Pro
Free Flash & HTML5 Games for Relax Arcade Pro

User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [DEV] View Attachments

Post by Jessica » Tue Aug 16, 2011 7:09 pm

FranckTH wrote:i think these two mods are complementary, one for search your own attachments, one for search all topics with attachments...

no ?
yes yes I agree.
FrankTH wrote:and why not add the possibility when you click on "view attachments" to select in drop dow menu, "your own topics" or "all topics" ?
yes I agree with this too
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein

User avatar
digioz
Registered User
Posts: 297
Joined: Thu Feb 05, 2004 9:20 pm
Location: Chicago, IL
Name: DigiOz Multimedia
Contact:

Re: [DEV] View Attachments

Post by digioz » Tue Aug 16, 2011 7:40 pm

FranckTH wrote:and why not add the possibility when you click on "view attachments" to select in drop dow menu, "your own topics" or "all topics" ?

it's a possibility no ?
Yes, this is possible too. But I think it would make more sense if we do it the way 4_seven did from the user profile page. That way you can view the list for all users, not just your own.
DigiOz Multimedia
http://www.digioz.com

User avatar
digioz
Registered User
Posts: 297
Joined: Thu Feb 05, 2004 9:20 pm
Location: Chicago, IL
Name: DigiOz Multimedia
Contact:

Re: [DEV] View Attachments

Post by digioz » Tue Apr 03, 2012 12:49 am

Hello All,

I have verified that this mod version 0.1.0 now works with PHPBB version 3.0.10 in addition to 3.0.9, so feel free to use this mod with either of the two.

Thanks,
Pete
DigiOz Multimedia
http://www.digioz.com

User avatar
martin123456
I've Been Banned!
Posts: 726
Joined: Sat Mar 05, 2011 7:44 pm

Re: [DEV] View Attachments

Post by martin123456 » Wed Apr 04, 2012 7:28 pm

Exelent mod i placed mine else where but still on the index-body.html

Image

would there be any way of it detecting the amount of attachments or search count as it's done by search ?

Code: Select all

<!-- IF S_CODE_UNTIDY and S_MESS_ON_INDEX Good If_Not_TIDY_Then_SUBMIT -->

Locked

Return to “[3.0.x] MODs in Development”