| 
Welcome, Guest
  • Page:
  • 1
  • 2

TOPIC: CB content and CB menu

Re:CB content and CB menu 2 years, 9 months ago #97134

  • Posts:
  • Karma:
Do these substitutions work for columns in __comprofiler_members?

 
[cb:if referenceid = "#me" and memberid = "#displayed" and accepted = "1"]
 
[menu caption="Remove Connection"] _UE_MENU_CONNECTION : _UE_REMOVECONNECTION [/menu]
 
[/cb:if]
 
[cb:if referenceid != "#me"]
 
[menu caption="Add Connection"] _UE_CONNECTION : _UE_ADDCONNECTION [/menu]
 
[/cb:if]
 


I don't think that would work, but something along those lines.

If not, where can I start looking to possibly add the sql for _comprofiler_members?

I'd like to have something like that in a delimiter field and put it in CB user lists, so people can add each other more easy.
The topic has been locked.

Re:CB content and CB menu 2 years, 6 months ago #105797

  • Posts:
  • Karma:
Is there a way for me to display something only if a field is non-blank?

e.g.:

[cb:if [cb:userfield field="cb_sport1name"] != "" /]
<p>Sport #1: [cb:userfield field="cb_sport1name" /]
</p>
[/cb:if]
 
 
Thanks,
Patrick

PS - the above does not work ....
The topic has been locked.

Re:CB content and CB menu 2 years, 6 months ago #105810

  • Posts:
  • Karma:
There's a parameter you can change in your CB configuration to disable empty fields and/or tabs.
Jamie (Rapunzl)
Community Builder Team Member

Before posting on forums: Read all CB Articles | Specially the FAQ | Help us help you
CB links: Subscribe to CB documentation | Our templates | Paid Subscriptions | Get Hosting | Our Forge
Visit my CB Profile

My personal site Rapunzl's Reality always under reconstruction
The topic has been locked.

Re:CB content and CB menu 2 years, 6 months ago #105818

  • Posts:
  • Karma:
Thanks Jamie.

I have that setting and it works great on the profile. My issue is with the CB Content plug-in -- I want to display a field (and its label) but only if the field is there. Basically I want to suppress the prompt if the field is empty -- just like it does in the profile itself.

Only in the CB Content plug-in ...
The topic has been locked.

Re:CB content and CB menu 2 years, 6 months ago #105836

  • Posts:
  • Karma:
I understand, and it looks as if you're going to need to write a plugin or have someone do it for you.
Jamie (Rapunzl)
Community Builder Team Member

Before posting on forums: Read all CB Articles | Specially the FAQ | Help us help you
CB links: Subscribe to CB documentation | Our templates | Paid Subscriptions | Get Hosting | Our Forge
Visit my CB Profile

My personal site Rapunzl's Reality always under reconstruction
The topic has been locked.
  • Page:
  • 1
  • 2
Time to create page: 0.84 seconds