Page 1 of 1

[solved] CGUserDirectory and Uploads modules

Posted: Thu Jun 13, 2013 9:48 am
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

[solved] Re: CGUserDirectory and Uploads modules

Posted: Fri Jun 14, 2013 2:03 am
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