Skip to Content Skip to Menu

profile flags plugin show flag in list

  • SGT_2AD
  • SGT_2AD
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
16 years 9 months ago #55914 by SGT_2AD
Replied by SGT_2AD on topic Re:profile flags plugin show flag in list
Question about this....
What is the code above and below. I looked at line 560, but I think I am using a newer version, so the comprofiler.php has changed. If I know the above and below code, I would be able to have a better idea where to insert your lines.
This is exactly what I would like to do, also with my profile lists.

BTW... My comprofiler.php did not contain "$lfields" line at all. A search of the file show no such line.

rutgerius wrote:

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


Post edited by: SGT_2AD, at: 2008/02/07 00:50

Please Log in or Create an account to join the conversation.

16 years 4 months ago #67253 by addicted2dance
Replied by addicted2dance on topic Re:profile flags plugin show flag in list
beat wrote:

Nice idea, any url for free-to-use flags ?

Well, this comes over a year after you asked for a flag set to use, here is one with small flags:
famfamfam.com/lab/icons/flags/ :)

But I also want to have country flags displayed in the userlists and profiles, well everywhere the country name or username are displayed, like the Users online module etc...

Joomla 1.0.15 / SMF 1.1.4 / Joomla-SMF 2.0.2 / CB 1.1 / CPG 1.4.18 / Joomla-CPG Bridge by Mehdi (PHP 5.2.0, MySQL 5.0.22, Apache 2.2.4)

Please Log in or Create an account to join the conversation.

16 years 4 months ago #67254 by addicted2dance
Replied by addicted2dance on topic Re:profile flags plugin show flag in list
Sorry about the double post, dont know why that happened! :blush:

So, does anyone know how to "hack" the 1.1/1.2 files to make the flags from CB Profile Flags visible in the userlists?

Post edited by: addicted2dance, at: 2008/07/03 20:46

Joomla 1.0.15 / SMF 1.1.4 / Joomla-SMF 2.0.2 / CB 1.1 / CPG 1.4.18 / Joomla-CPG Bridge by Mehdi (PHP 5.2.0, MySQL 5.0.22, Apache 2.2.4)

Please Log in or Create an account to join the conversation.

  • beat
  • beat
  • ONLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
16 years 4 months ago #67504 by beat
addicted2dance wrote:

beat wrote:

Nice idea, any url for free-to-use flags ?

Well, this comes over a year after you asked for a flag set to use, here is one with small flags:
famfamfam.com/lab/icons/flags/ :)

But I also want to have country flags displayed in the userlists and profiles, well everywhere the country name or username are displayed, like the Users online module etc...


Cool, thanks for the reply. Indeed, better late than never :) , question was still open :)

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum