[solved] CGUserDirectory and Uploads modules

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

[solved] CGUserDirectory and Uploads modules

Post by psy »

When I use the following module tag in a page on its own, the file upload works correctly.

Code: Select all

{cms_module module='Uploads' action='default' mode='upload' category='Attached Files' filetypes='pdf' noauthor='1'}
However when I use it in a detail template in CGUserDirectory, the form submits with no errors but the file is not uploaded nor the Uploads module record inserted.

On the same site in another CGUD detail template, I use a 'yousendit' Uploads template and it works fine. The file is saved, the email is sent and Uploads updated. In this case however, I do not want the user sent an email.

I've checked everything I can think of to see where the conflict may be without success, including reverting to the default CGUD detail and Uploads upload templates to ensure it's nothing in my custom templates.

Using:
CMSMS 1.11.6
FEU: 1.21.6
CGUserDir: 1.4
Uploads: 1.14.4

Any suggestions or workarounds? Help would be much appreciated.

psy
Last edited by psy on Fri Jun 14, 2013 2:12 am, edited 1 time in total.
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

[solved] Re: CGUserDirectory and Uploads modules

Post by psy »

Realised that the difference between the CGUDir detail template that worked and the one that didn't was that the 'good' one was accessed directly from the page template. The detail template that failed was accessed via the CGUDir summary template.

Figured that routing or similar was the problem so created a detail template that bypassed it by saving the $oneuser data to a session var then redirected to a page that called the CGUDir detail template directly. For the uid param, I put uid=$smarty.session.oneuser.id
Post Reply

Return to “Modules/Add-Ons”