Page 1 of 1

(SOLVED) -Uploads Module - Displaying a Detail Page for user after single Upload

Posted: Mon Sep 22, 2008 8:44 pm
by rayrayray
Hello all,

First post here.  I hope someone can help.

I'm using the Uploads module and it works great!  The only problem I'm having is how to display an upload detail page after someone submits the upload.

Here is the code I'm using.

{cms_module module="Uploads" category="Client Upload" mode="upload"}

I understand that I need to be using

detailpage=""
detailtemplate="detail"

but don't know how to incorporate it, or if I need to be using any other parameters like

selectform=""
filter=""

Any help would be greatly appreciated.

Thanks!

Re: Uploads Module - Displaying a Detail Page for user after single Upload

Posted: Tue Sep 23, 2008 12:22 pm
by rayrayray
anyone? ???

Re: Uploads Module - Displaying a Detail Page for user after single Upload

Posted: Tue Sep 23, 2008 8:15 pm
by rayrayray
this has to be a fairly simple problem.  does anyone of you php masters out there help me with a quick fix.  the help section on the uploads manual is a little lacking

Re: Uploads Module - Displaying a Detail Page for user after single Upload

Posted: Tue Sep 23, 2008 11:54 pm
by Nick Smart
Hi,

I use the following:

In my uploads page - {cms_module module="Uploads" category="catname" mode="upload" noauthor="1" nocaptcha="1"}

In the Uploads module preferences page, I set "Redirect to page id/alias on user upload:" to the page alias I want the user to go to after upload.

Hope this helps.

Nick

Re: Uploads Module - Displaying a Detail Page for user after single Upload

Posted: Wed Sep 24, 2008 1:04 am
by rayrayray
Hmmm.

Maybe this Module doesn't do what I'm looking for.  I want the Module to generate a detail of the upload and have it appear after hitting submit.  Redirecting won't help I don't think since I won't be able to have the page that it's redirected to have the detail information of that particular upload.

Thanks for responding and helping me with this.  I appreciate it.

Re: Uploads Module - Displaying a Detail Page for user after single Upload

Posted: Wed Sep 24, 2008 1:30 am
by jmcgin51
Depending on how many users will likely be uploading, you could do something like this:

{cms_module module="Uploads" count="1" mode="detailed" sortorder="date_desc"}

This will show a detailed view of the last file uploaded.

If you have many users who might potentially be uploading files at the same time, this could potentially give unintended results, if User A uploads a file just before User B, but is redirected to the detail page AFTER User B uploads his file.  Then User A would see User B's uploaded file on the detail page.  I think you could work around this by writing a UDT to base the query on the customcontent_loginname AND the date_desc, giving you only the last file uploaded by the logged-in user.

(logic something like this)

SELECT the most recent uploaded file WHERE the author is the currently-logged-in user

Re: Uploads Module - Displaying a Detail Page for user after single Upload

Posted: Wed Sep 24, 2008 6:58 pm
by rayrayray
Awesome.

Thanks so much!  Really do appreciate the help. 

I understand this a little better now.  I've created a separate detail page, that doesn't show in the menu, but can be accessed via the preferences page in the module.  I have it all directing properly, but am running into one issue when the details page displays.

{cms_module module="Uploads" count="1" mode="detailed" sortorder="date_desc"}  code on detail page

Error!

Error: Insufficient parameters supplied to module!

I have the uploads directory and my category directory set to 777 permissions.  What am I doing wrong?

Also on the FileManager module I am unable to change permissions.

- error -- Couldn't change permissions on some files

I don't know if that has anything to do with it.

Any idea??? and thanks again for the help.

Re: Uploads Module - Displaying a Detail Page for user after single Upload

Posted: Wed Sep 24, 2008 6:59 pm
by Nick Smart
Off the top of my head, does it need a category?

Nick

Re: Uploads Module - Displaying a Detail Page for user after single Upload

Posted: Wed Sep 24, 2008 7:15 pm
by rayrayray
Yes, just realized that actually before I read your post.

Thanks -

I added the category, but am now receiving this error.

Cannot fetch image or images details.
Warning: imagejpeg(): supplied argument is not a valid Image resource in /nfs/c01/h02/mnt/35757/domains/signsanddesigns.cc/html/lib/filemanager/ImageManager/Classes/GD.php on line 461

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 10240 bytes) in /nfs/c01/h02/mnt/35757/domains/signsanddesigns.cc/html/lib/filemanager/ImageManager/Classes/GD.php on line 87

Re: Uploads Module - Displaying a Detail Page for user after single Upload

Posted: Wed Sep 24, 2008 9:37 pm
by rayrayray
Got it to work. 

Under the preferences page I deleted the "show thumbnail extensions" and it all work fine now!

Thanks again to everyone who had input!!!

Re: Uploads Module - Displaying a Detail Page for user after single Upload

Posted: Thu Sep 25, 2008 1:26 am
by jmcgin51
glad we could help!

please add "(SOLVED)" to the subject line of this thread, so that other users will know that this issue has been answered/resolved

Re: (SOLVED) -Uploads Module - Displaying a Detail Page for user after single Upload

Posted: Thu Sep 25, 2008 5:17 pm
by rayrayray
Done.  Thanks!