Skip to Content Skip to Menu

User ID in Profil/Portrait

  • sekelfek
  • sekelfek
  • OFFLINE
  • Posts: 46
  • Thanks: 2
  • Karma: 0
8 years 5 months ago - 8 years 5 months ago #282011 by sekelfek
User ID in Profil/Portrait was created by sekelfek
I want the User ID View profile / Portrait of the user.

If I investing a new field with the name "user_id", the name will automatically change to "cb_user_id". And there is no user ID is displayed in the profile.

In the database, the column name is called "user_id" and not "cb_user_id".
Last edit: 8 years 5 months ago by sekelfek.

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

  • sekelfek
  • sekelfek
  • OFFLINE
  • Posts: 46
  • Thanks: 2
  • Karma: 0
8 years 5 months ago #282050 by sekelfek
Replied by sekelfek on topic User ID in Profil/Portrait
I made a test.

I went into the database table "comprofiler_fields". The value "cb_user_id" searched. He's in a row two times available. I have modified this two value in "user_id".
Now the USER ID is displayed in the user profile!

Now comes what extraordinary.

I opened the field in CB admin area and have re-saved it.
Now the two values in the database table "comprofiler_fields" were changed back to "cb_user_id" AND the column name "user_id" in the database table "comprofiler" was changed to "cb_user_id". This is absolutely incomprehensible.
Now as no new registration is possible. Because the column "user_id" no longer exists and the "POST" or "GET" goes nowhere and produced a "1054 Error".

I have now again everything fixed back.

That's the problem.
Who has the solution?

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
  • sekelfek
  • sekelfek
  • OFFLINE
  • Posts: 46
  • Thanks: 2
  • Karma: 0
8 years 5 months ago - 8 years 5 months ago #282061 by sekelfek
Replied by sekelfek on topic User ID in Profil/Portrait
Thanks, i have read this yesterday, and i don't understand it.
What is the exact string for display user_id?

What is field="FIELD_NAME"?
is it the name of the field what will replaced, or is it the name of the field what are to displayed?

What ist user="REPLACEMENT"?
is it the name of the field what will replaced, or is it the name of the field what are to displayed? or what is it?

[cb:userdata field="cb_user_id" user="user_id" /]
or
[cb:userfield field="user_id" /]
put in Community Builder: Fields -> Parameters -> Profil Value Layout.
don't work.

EDIT:
i have seen the video tutorial and test this:
<!--[value]-->
[cb:if cb_gender="female"]<img src="images/test.png" alt="test" />[/cb:if]
[cb:if cb_gender="male"]<img src="images/test.png" alt="test" />[/cb:if]
dont' work.

EDIT 2:
I test it on a another field:
x-[value]
yes, it's works fine in field "name" (example).
the same don't work in field "cb_user_id".
only display in profil this value: -

What is wrong?
Last edit: 8 years 5 months ago by sekelfek.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
  • sekelfek
  • sekelfek
  • OFFLINE
  • Posts: 46
  • Thanks: 2
  • Karma: 0
8 years 5 months ago - 8 years 5 months ago #282068 by sekelfek
Replied by sekelfek on topic User ID in Profil/Portrait
OK! Thanks!
You should also inform me immediately that [user_id] must be written in the description, so that it appears. Normal is only for MouseHover tooltip. That's not logical.
Thanks again!

PS: CB is the best!
Last edit: 8 years 5 months ago by sekelfek.

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

Moderators: beatnantkrileon
Powered by Kunena Forum