(SOLVED) -Uploads Module - Displaying a Detail Page for user after single Upload
(SOLVED) -Uploads Module - Displaying a Detail Page for user after single Upload
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!
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!
Last edited by rayrayray on Thu Sep 25, 2008 5:16 pm, edited 1 time in total.
Re: Uploads Module - Displaying a Detail Page for user after single Upload
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
-
- Forum Members
- Posts: 116
- Joined: Mon Jul 28, 2008 4:48 pm
Re: Uploads Module - Displaying a Detail Page for user after single Upload
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
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
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.
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
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
{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
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.
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.
-
- Forum Members
- Posts: 116
- Joined: Mon Jul 28, 2008 4:48 pm
Re: Uploads Module - Displaying a Detail Page for user after single Upload
Off the top of my head, does it need a category?
Nick
Nick
Re: Uploads Module - Displaying a Detail Page for user after single Upload
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
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
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!!!
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
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
please add "(SOLVED)" to the subject line of this thread, so that other users will know that this issue has been answered/resolved