Skip to Content Skip to Menu

profile flags plugin show flag in list

  • iff
  • iff
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 1
17 years 8 months ago #32107 by iff
Hi all,

i searched the hole web but i didnt found a solution for that,
please help.


i want to display the Country flag (from the profileflag plugin) in a List next to the username. But it dont work, it just show the country as text.
how can I do that ?
thanks for any help !

Woomla The Website in Ireland for foreigners www.woomla.com
I am using Joomla 1.0.12 /CB 1.0.2

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

  • rutgerius
  • rutgerius
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 1
17 years 5 months ago #38664 by rutgerius
Replied by rutgerius on topic Re:profile flags plugin show flag in list
I want to do the same. I have a lot of international members, and I think it would be great to show their flags in the lists.

Can someone help us?

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

  • beat
  • beat
  • ONLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
17 years 5 months ago #38679 by beat
Nice idea, any url for free-to-use flags ?

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.

  • rutgerius
  • rutgerius
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 1
17 years 5 months ago #38722 by rutgerius
Replied by rutgerius on topic Re:profile flags plugin show flag in list
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
Attachments:

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

  • masyomo
  • masyomo
  • OFFLINE
  • Posts: 18
  • Thanks: 0
  • Karma: 1
17 years 5 months ago #39438 by masyomo
Replied by masyomo on topic Re:profile flags plugin show flag in list
thanks for this - works great ;)

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

  • rutgerius
  • rutgerius
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 1
17 years 5 months ago #39445 by rutgerius
Replied by rutgerius on topic Re:profile flags plugin show flag in list
You're welcome...

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

Moderators: beatnantkrileon
Powered by Kunena Forum