Will you tell me how to add them manually, please? I don't mind going into the code and adding things as long as i know which files to edit and what lines to add (i'm learning as i go).
Here you go:
Step 1
You need to first add columns to the codo_users table eg. 'art' & 'bitcoin'
Step 2
You have to display these fields in the profile.
Open file:
~sites/default/themes/default/templates/user/profile/view.tpl
You have to add your fields in the div with the class 'codo_user_details'.
Step 3
Now, you need to add these fields in the profile edit page.
Open file:
~sites/default/themes/default/templates/user/profile/edit.tpl
Add your fields inside the first form defined there.
Step 4
Saving these details to database.
Open file:
~sys/Controller/user.php
Edit the function edit_profile() ,
Edit the variable $values as folows
$values = array(
"name" => \CODOF\Filter::msg_safe($_POST['name']),
"signature" => \CODOF\Format::omessage($_POST['signature']),
"bitcoin" => strip_tags($_POST['bitcoin']),
....
);
The above array is a name value pair of the codo_users columns and the POST data.
We will be automating the whole process with more advanced options either in the V2.6 or in V2.7
>Will you tell me how to add them manually, please? I don't mind going into the code and adding things as long as i know which files to edit and what lines to add (i'm learning as i go).
Here you go:
###Step 1
You need to first add columns to the `codo_users` table eg. 'art' & 'bitcoin'
###Step 2
You have to display these fields in the profile.
Open file:
```
~sites/default/themes/default/templates/user/profile/view.tpl
```
You have to add your fields in the div with the class 'codo_user_details'.
###Step 3
Now, you need to add these fields in the profile edit page.
Open file:
```
~sites/default/themes/default/templates/user/profile/edit.tpl
```
Add your fields inside the first form defined there.
###Step 4
Saving these details to database.
Open file:
```
~sys/Controller/user.php
```
Edit the function edit_profile() ,
Edit the variable $values as folows
```
$values = array(
"name" => \CODOF\Filter::msg_safe($_POST['name']),
"signature" => \CODOF\Format::omessage($_POST['signature']),
"bitcoin" => strip_tags($_POST['bitcoin']),
....
);
```
The above array is a name value pair of the `codo_users` columns and the POST data.
We will be automating the whole process with more advanced options either in the V2.6 or in V2.7