Uploads module: Show logged in user’s uploads

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
10010110
Translator
Translator
Posts: 224
Joined: Tue Jan 22, 2008 9:57 am

Uploads module: Show logged in user’s uploads

Post by 10010110 »

How would I go about showing a logged in user a list of their uploads? In the help I’ve found this:
key="value" - Provide an additional key to the module for further organizing uploads. This key could be an encoded string like: 'feusers:uid', etc.
How does that work? Is it {Uploads key="feusers:uid"}? And how does the module know what to do with that?

Or am I on the totally wrong track here?
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: Uploads module: Show logged in user’s uploads

Post by psy »

10010110
Translator
Translator
Posts: 224
Joined: Tue Jan 22, 2008 9:57 am

Re: Uploads module: Show logged in user’s uploads

Post by 10010110 »

Thanks psy, but that’s not what I need.
I played around with the key parameter to no avail so far. It’s not showing anything so either it does never match anything or it’s broken altogether.

I’ve tried (as it is suggested in the module help):

Code: Select all

{Uploads category="Member uploads" mode="summary" key="feusers:$userID"}
{Uploads category="Member uploads" mode="summary" key="feusers:1"}
{Uploads category="Member uploads" mode="summary" key="1"}
But nothing shows up.
Do I need to modify something in the template to make that work?
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: Uploads module: Show logged in user’s uploads

Post by psy »

Maybe look at it from another angle.

When an FEU uploads at file, have a hidden field write the FEU id to a custom field.

Then in the tag to display uploads by user, use:

Code: Select all

(optional) fieldname="" - -- Missing Languagestring - module:Uploads string:param_fieldname--
(optional) fieldval="" - -- Missing Languagestring - module:Uploads string:param_fieldval--


where fieldname is your custom feu id field name and fieldval is the feu id?
Post Reply

Return to “Modules/Add-Ons”