Hello
I will like to know why when I use the ChronoForms module to load a form that use the plugin Profile page it is not working the data of the database is never load but if I use the link to access the form BOTH the form and the module are updated properly with the right data.
I will like if I could have this module to get the data from the table at any time the module is load (refresh)
Joomla 1.5.14
ChronoForms_V3.1_RC5.5
mod_chronocontact_V3.1_RC5.2
Thanks
Hi joevan,
The Profile Plugin needs a 'record id' to work, if you don't provide it with an id in a link then it will try the current user id.
How do you want it to pick the record to display?
Bob
Thanks for your reply
I have the form working perfectly so far, I have found how to fix my calender year problem and how to have my form updating the existing record with 2 line of code that you post in another topic of this forum. Thanks
My form use the plugin Profile page the get the existing record base on the field cf_user_id
when the form is load via the link or via the menu task of Chronofrom the record that match the Joomla user Id is load in the form no problem. (without giving any id or param, just the link or the menu task with the form name)
my problem is that I want this form to work in a module or with the plugin {chronocontact}FormName{/chronocontact} with other contents but for some reasons the form do no load any data.
-- But if I load the form with the link or via the menu task and if the module is present with the same form in it, bolt load the data (The main page form and the one in the module)
Also is it possible to retrieve the file upload path name, my form record a picture. For some reasons that is the only field that do not retrieve infomation from the database (the person need to re-upload the same picture again and again at each update of the record)
Why not I have one more Question.
I will like to see that picture in the form any suggestion!!!
Thanks again!
Joe
Hi Joe,
The problem with the Profile Plugin is that it needs to get an 'id' to recognise which record it is supposed to show and it gets this from the URL. So when the form is displayed 'normally' the id is in the URL and both can access it and display the data.
However, when you use the form in a module or a plugin there is no id in the url and the plugin doesn't know which record to show.
If there is no 'id' then the plugin will try to use the user_id but this may not be useful to you.
Bob
--If there is no 'id' then the plugin will try to use the user_id but this may not be useful to you.
Bob
---------------------------------------
That what I want! But the plugin Profile Page do not retrieve the user_id when the form is in the module.
Any idea How to make it work
Hi Joe,
Oh OK - now I understand the problem; don't have a solution though. I looked at the code yesterday and it looks as though it should work. I'll try to find some time to debug and see what is happening.
Bob
Cool!! The thing is I want to subscribe but before I do, I want to be sure that ChronoForm is the right product to do want I need to do.
by the way any sugestion for this!
1 - Also is it possible to retrieve the file upload path name, my form record a picture. For some reasons that is the only field that do not retrieve information from the database (the person need to re-upload the same picture again and again at each update of the record)
2 - I will like to see that picture in the form any suggestion!!! Can this be a custom element?
If you find a solution the user_id in the module it will be perfect.
Thanks for your good work!!!!
Thanks again!
Hi joevan,
Re-showing the file path in the form doesn't make much practical sense. The usual solution is to show the image in the form if one exists and to ask the user if they want to replace it.
To show the picture you'll need to build an <img . . ./> tag in your form html.
The module seems to be picking up the user_id OK for me in my little test :-(
Bob
PS I've attached a copy of my current development version of the Profile plugin. Rename the old file in the com_chronocontact/plugins folder to keep it as a backup, un-zip the attachment and copy the new cf_profile.php into the folder.