Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Black Friday Intro Offer for your subscription's lifetime
🎉 Black Friday sale is here! Great savings on professional and developer memberships! Get 25% off now with code BLACK-FRIDAY-2024!

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

  • kupfer
  • kupfer
  • OFFLINE
  • Posts: 1
  • Thanks: 0
  • Karma: 0
12 years 3 weeks ago - 12 years 3 weeks 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: 12 years 3 weeks ago by kupfer.

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

Moderators: beatnantkrileon
Powered by Kunena Forum