Forums

Your Profile

tim3482 10 May, 2008
I am currently trying to update the 'Your Profile' section or the QContacts table for a user. Is this possible and how do I do it? I am guessing the profile plugin would work but I do not know if you can update tables that exist or if you can only update new tables created for the form? Currently, I created a form with the fields that I want to update and used the profile plugin to assign to table qcontacts_details and then used the parameter dataid and default id as the next selection. I did not create a table because I was thinking that I could directly update the QContacts table. I know that I am probably way off on what I am trying to do but please let me know.
GreyHead 10 May, 2008
Hi tim 3482,

AFAIK the Profile Plugin is only to display data. You can't use it to update a table.

To update the QContacts table you'll probably need to look in their code to see what fields are updated. You can add this to either the 'OnSubmit after' or the 'AutoGenerated' code boxes in ChronoForms.

Bob
tim3482 11 May, 2008
I guess I don't understand what each of these plugins do because I created a form that allows users to submit to jos_chronoforms_1 and with dataid and cf_id within the Profile plugin and the form comes up, I can submit and post the data to the table that I created. But I am new to these things and trying to understand what each of these plugins are used for so I am even more confused because I used profile plugin to update a table already via other posts out here. What is the difference between joomla registration, profile plugin, etc...and how do they work. Do they specifically access a specific table or do they do other things? Thanks so much for your help as I am just starting to learn how chronoforms works and how it can best be used for us. Has anyone else wanted to update your profile section without having to manually do it for a user? Also, has anyone got your profile in joomla to only show your specific profile, not everyones, which does not make any sense to me?
Max_admin 11 May, 2008
Hi Tim,

I agree we need a full descriptive documentation for this part, We will try to have one ready soon, in the mean time there was many posts before where the issue was explained if you can make a quick search you can find some useful info too🙂

Best regards,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
tim3482 12 May, 2008
Here is what I have done so far:

Created Form with the following Code:

<?php global $mosConfig_live_site; echo "<script type=\"text/javascript\" " . "src=\"".$mosConfig_live_site."/includes/js/overlib_mini.js\"></script>"; ?> 
<style type="text/css"> .titleCell{ padding-right:3px;text-align:right; } </style> 
<table cellpadding="5" cellspacing="0" border="0" width="98%" class="contentpane" id="registrationTable"> <tr> <td colspan="2" width="100%">
<div class="componentheading">Your Profile Update</div></td> </tr> <tr><td> </td><td>Fields marked with an asterisk* are required.</td></tr><tr> 
<td class="titleCell">Email Address:</td> <td class="fieldCell"><input type="text" size="40" id="email" name="email" value="" />*</td></tr> <tr>
<td class="titleCell">State/County:</td> <td class="fieldCell"><input type="text" size="40" id="statecounty" name="statecounty" value="" /></td> </tr> <tr> 
<td class="titleCell">Postal Code/Zip:</td> <td class="fieldCell"><input type="text" size="40" id="zip" name="zip" value="" /></td> </tr> <tr> 
<td class="titleCell">Country:</td> <td class="fieldCell"><input type="text" size="40" id="country" name="country" value="" /></td> </tr> <tr>
<td class="titleCell">Telephone:</td> <td class="fieldCell"><input type="text" size="40" id="telephone" name="telephone" value="" /></td> </tr> <tr>
<td class="titleCell">Mobile Phone Number:</td> <td class="fieldCell"><input type="text" size="40" id="mobile" name="mobile" value="" /></td> </tr> <tr>
<td class="titleCell">Fax Number:</td> <td class="fieldCell"><input type="text" size="40" id="fax" name="fax" value="" /></td> </tr> <tr>
<td class="titleCell">Web URL:</td> <td class="fieldCell"><input type="text" size="40" id="url" name="url" value="" /></td> </tr> <tr>
<td class="titleCell">Skype:</td> <td class="fieldCell"><input type="text" size="40" id="skype" name="skype" value="" /></td> </tr> <tr>
<td class="titleCell">Yahoo Messenger:</td> <td class="fieldCell"><input type="text" size="40" id="ymessenger" name="ymessenger" value="" /></td> </tr> <tr><td class="fieldCell"><input type="submit" value="Send Profile update" class="button" /> 
<br> <br></td></tr>
</table> 


Then Created Table for these fields and saved that. After this, I used the profile plugin (which I think I should not have) and used the jos_chronoforms_1, dataid and cf_id as the parameters.

I have entered information into this form and submitted the data. The table that I created has been updated correctly. How do I have a form that displays the data from this table?
How do I update this table with user id so I can show the form information just for this user id?

Thanks a lot.
Max_admin 13 May, 2008
Hi,

If you need to show more than one record then you will need to write some PHP code or wait the show data plugin to be released soon hopefully (Im working on it), if you need only one record then you can use the profile plugin, use the form url followed by &the_parameter_name=the_value_of_the_field_name like dataid=1, you will need to create a complete new form to work with the profile plugin, it works the same as the email template, with fields inside {}, we are working on a detailed documentation for this part, sorry!!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Rrr 29 May, 2008
HI Max

Well that sounds great and I cannot wait for the update of this plugin because it's going to be realy good to display the date entered on the page on which they enter it! If you know what I mean.

At the moment doing only one item per single page isn't quite how forms are used - that is, people input a date over and over . I s there some way I can be notified when it comes out? Thanks
Max_admin 31 May, 2008
No, just keep checking, but it will not be before 1 week because I'm alittle sick here!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.