Your Profile

Post any questions you may have here

Your Profile

Postby tim3482 on Sat May 10, 2008 12:58 am

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.
tim3482
Fresh Boarder
 
Posts: 3
Joined: Sat May 10, 2008 12:41 am

Re:Your Profile

Postby GreyHead on Sat May 10, 2008 6:55 am

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
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3461
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Your Profile

Postby tim3482 on Sun May 11, 2008 3:45 am

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?
tim3482
Fresh Boarder
 
Posts: 3
Joined: Sat May 10, 2008 12:41 am

Re:Your Profile

Postby admin on Sun May 11, 2008 4:42 am

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
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 3282
Joined: Mon Aug 14, 2006 5:29 am

Re:Your Profile

Postby tim3482 on Mon May 12, 2008 2:44 am

Here is what I have done so far:

Created Form with the following Code:
Code: Select all
<?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.
tim3482
Fresh Boarder
 
Posts: 3
Joined: Sat May 10, 2008 12:41 am

Re:Your Profile

Postby admin on Tue May 13, 2008 3:33 pm

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
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 3282
Joined: Mon Aug 14, 2006 5:29 am

Re:Your Profile

Postby Rrr on Thu May 29, 2008 7:07 am

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
Rrr
Fresh Boarder
 
Posts: 8
Joined: Fri Feb 01, 2008 5:45 am

Re:Your Profile

Postby admin on Sat May 31, 2008 12:05 am

No, just keep checking, but it will not be before 1 week because I'm alittle sick here!

Cheers

Max
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 3282
Joined: Mon Aug 14, 2006 5:29 am


Return to ChronoForms Questions & Answers

Who is online

Users browsing this forum: Google [Bot], MSN [Bot] and 3 guests