CB content and CB menu

12 years 5 months ago #97134 by sh0em0nkey
Replied by sh0em0nkey on topic Re:CB content and CB menu
Do these substitutions work for columns in __comprofiler_members?

[code:1]
[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]
[/code:1]

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.

Please Log in to join the conversation.

12 years 3 months ago #105797 by pjohnson
Replied by pjohnson on topic Re:CB content and CB menu
Is there a way for me to display something only if a field is non-blank?

e.g.:

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

[/code:1]Thanks,
Patrick

PS - the above does not work ....

Please Log in to join the conversation.

12 years 3 months ago #105810 by Rapunzl
Replied by Rapunzl on topic Re:CB content and CB menu
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 | [url=http://www.joomlapolis.com/content/view/7363/37/
]Our templates[/url] | [url=http://www.joomlapolis.com/content/blogcategory/61/74/
]Paid Subscriptions[/url] | Get Hosting | Our Forge
Visit my CB Profile

My personal site Rapunzl's Reality always under reconstruction

Please Log in to join the conversation.

12 years 3 months ago #105818 by pjohnson
Replied by pjohnson on topic Re:CB content and CB menu
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 ...

Please Log in to join the conversation.

12 years 3 months ago #105836 by Rapunzl
Replied by Rapunzl on topic Re:CB content and CB menu
I understand, and it looks as if you're going to need to write a plugin or have someone do it for you.
:S

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 | [url=http://www.joomlapolis.com/content/view/7363/37/
]Our templates[/url] | [url=http://www.joomlapolis.com/content/blogcategory/61/74/
]Paid Subscriptions[/url] | Get Hosting | Our Forge
Visit my CB Profile

My personal site Rapunzl's Reality always under reconstruction

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.671 seconds