Ok first of all I solved my own problem. I have the flags plugin installed and I have a field named cb_country. It is a select field with the names of all countries (I found it somewhere on this forum). This is helpfull because now you restrict your members to a format of writing their country.
Now we can open comprofiler.php and go to line 560:
[code:1]$lfields .= "</td>\n";[/code:1]
Now you can decide for yourself where to put the flag, I wanted the flag in the 4th column (witch I disabled in the cb admin).
After line 560 I put the the following:
[code:1]$lfields .= "<td valign='top'><img height='20px'src='components/com_comprofiler/plugin/user/plug_cbprofileflags/countries/\$user->cb_country.gif' style='border-style: none;' /></td>";[/code:1]
As you can see I have a flag that is 20 px high and has the name $user->cb_country.gif . This string is going through an eval() function, that's why this string is strange.
For the result see
game.hkc-utrecht.nl/component/option,com_comprofiler/task,usersList/listid,5/Itemid,7/lang,en/
When you want the flag somewhere else, change the position of the line you add.
Post edited by: rutgerius, at: 2007/05/31 01:29
Post edited by: rutgerius, at: 2007/05/31 01:30