I will appreciate your help in creating the following scenario:
My goal is to have a form that is linked with cb1.2rc2 profile such that after login
1. subscriber can complete the form as part of CB profile
2. form is emailed to both subscriber and admin (or designated email)
3. form is part of cb profile tab
Thanks in advance...
Hi,
Assuming that your CB has the fields field1,field2...field5, make a new form with some fields and name some of them as field1...field5 too, now add to your form a hidden field called id and at the value="" attribute add this :
<?php $user = JFactory::getUser(); echo $user->id; ?>
this will load the id field with the logged in user's id, now at the DB connection tab in the admin area, enable it and choose the jos_comprofiler table, save teh form, now on form submit, the user's record will be updated with the form's data!
Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Thanks...I will try it and report back...I really appreciate your effort....
Not there yet....I followed the process outlined...however, when I submit the form, I get a blank screen and no date is added to the cb profile....
Can I see your form code and your CB table fields list ? can you take a screenshot of the CB table with phpmyadmin or something ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
I have the form code, however, I don't know how to get the cb info you requested...if you don't mind let me know how to get it or I can pm you the login info to my site/with db access...either way will be greatly appreciated...thanks again...
do you have PHPmyadmin access ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Ok, can you login there, open your database, find the jos_comprofiler table and click "structure" to see its fields then take a screenshot ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Thanks...both from teaching me how to do this and helping to take a look....now I know how..
Unable to send both here...attached cb info....I have sent a PM with form info
Hi, All I need to see now is the form HTML, you can put it here safely!
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
here is the form: (removed...because form is proprietery)
Hi lifeischoice, I see that you don't have any fields in your HTML with the same names as the CB table fields names!
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Thanks...I am not sure I understood....what I was shooting for is for the information on the html form to be an "add on" to cb data (not to replace it)....however, I will add cb data to the form and test....
ok let me know after you test, but for the form to add data to some table, there must be some table fields ready to receive this data first!
Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
yes, just the form and the CB table should have some common fields to be populated with the form data!
Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
sorry...I am not able to make it work...
show me your form code ? are you connected to the right table ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.