Skip to Content Skip to Menu

Delimiter field: if-statement gives empty result but the field title is shown on profile

  • kupfer
  • kupfer
  • OFFLINE
  • Posts: 1
  • Thanks: 0
  • Karma: 0
11 years 11 months ago - 11 years 11 months ago #213848 by kupfer
Hi everybody,

I tried to find a solution on this and spent already quite some time for searching. Maybe here are some wise guys, who could help me.

I got the following code:

[cb:if user="#displayed" cb_partnerid!=""] <a href="index.php/vdw-adressen/vdw-nutzer/userprofile/[CB_PARTNERID]">[CB_PARTNERNAME]</a>[/cb:if][cb:if user="#displayed" cb_partnerid="" and cb_partnername!=""][CB_PARTNERNAME][/cb:if]

Everything works fine, but if both fields (...partnername and partnerid) are empty, I want the title of the delimiter field not been shown on profile. Unfortunaltely the title is always shown, no matter what. I made a test and erased the complete code. Then the delimiter field title vanished (settings = dont show empty field). I guess this is a hint, that my if-statement gives somehow a (non-visible) result and so the delimiter field title is shown??! I had a look in the mysql-database itself, the respective fields are definitely empty...

Has someone an ideaH on this? Help would be great, thx in advance!
Last edit: 11 years 11 months ago by kupfer.

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

Moderators: beatnantkrileon
Powered by Kunena Forum