Skip to Content Skip to Menu

$user->get('cb_city') won't work --> HELP please?

  • mk3
  • mk3
  • OFFLINE
  • Posts: 137
  • Thanks: 2
  • Karma: -1
8 years 9 months ago - 8 years 9 months ago #274212 by mk3
Hi there!
In the file .../com_comprofiler/plugin/templates/default/default.php
I'm trying to get the city field value...but it won't work!

I'm doing like this:
Code:
$user_city = $user->get('cb_city'); if ( $user_city == "St. Petersbourg" ) $i=$i+10;

cb_city is the field I've created in CB fields.

Help me resolve this problem please?
Last edit: 8 years 9 months ago by mk3.

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

Moderators: beatnantkrileon
Powered by Kunena Forum