I have read every post about the profile pages, and even though I get the concept I can't get it to work.
Following the instructions below:
Choose table
OKChoose field,
OK, I picked CF_ID (in lower case)
Target field,
I'm LOST. I figured it would also be the same so I tried CF_ID (in lower case)
URL,
I'm LOST. Where do you put it? There is no spot on the plugin to put it, so where does it go, and how the heck do I add the CF_ID to it? The form links shows:
index.php?option=com_chronocontact&chronoformname=profile
but it is not editable and how would I add a variable to equal a variable like cf_id = cf_id???? That makes no sense to me. if I mimic the example below:
e.g. . . . &chronoformname=my_form&cf_id=99
I will always get the record #99 !!!!
{column name},
I'm lost again. Where does that go? I have already built the form, and already connected the database table. I see no place in the plugin to add it. I can't see how it would be added to the "Form Code" section of the form code??? There is no place to put it without replacing the field name or id. I figured that maybe it would go into the "Value" field of each text field (click here to edit), but several posts say that is wrong???? What is correct??
So, I am stupid. I can only figure out how to use 2 of the 5 instructions in the help menu. Boy, I even feel stupid!!!
Please help, I'm just stupid now, but by morning, I may be a moron!!!
the_fitz
Hi Andy,
Here are the contents of the Help tab - should be enough to get you going:
Help for Profile Table plugin
The plugin allows you to read values from any table in the database and include them in your form.
It was originally designed to allow access to the jos_users table to create member profiles but it is capable of much more.
To use the plugin effectively you will need to call the form from a link on your site. This could be from - for example a list of users, or topics, or events where you have some related information in a database table.
* Choose the table you want to use in the first drop-down e.g. jos_users to get a user's name and email.
* Select a field or column name from the table in the second drop down. This should be a field that will uniquely identify the record you want to use e.g. 'id' or 'username' for the jos_user table. NB This drop-down will not appear until you select a table in the first drop-down.
* In the Target field name box put the name of the field you will use to identify the record e.g. user_id. You will need to add this field to a url calling the form e.g. . . . &chronoformname=my_form&user_id=99
* You can then use information from this record in your form by putting {column_name} where you want it to appear e.g. {name} for a users name from the jos_users table.
* Once this plugin is configured you must enable it in the Form 'Plugins' tab.
To redirect use this code:
<?php
if ( !$mainframe->isSite() ) { return; }
$uid =& JRequest;getString('uid', '', 'get');
if ( !$uid ) {
$mainframe->redirect('404');
}
?>
Bob