Skip to Content Skip to Menu

CB Substitutions Help Required

  • GUEST
10 years 4 months ago - 10 years 4 months ago #246181 by
I am trying to show a button on the users profile page using a delimiter field, based on certain criteria in cb, but I can't work out how to get [cb:if cb_field includes "#me"][/cb:if] to work properly.

cb_vouchers is a multiselect field.

Current Code:
Code:
[cb:if user_id!="myid"] [cb:if gids !includes "10"] [cb:if cb_vouchers !includes "#me"] [readon url=" http://website.com/folder/script.php?userid=[user_id]&voucherid=[cb:userdata field="user_id" user="#me" /]&comment=test"]Vouch for this user[/readon] [/cb:if] [/cb:if] [cb:if cb_vouchers includes "#me"] [readon url=" http://website.com/folder/script.php?userid=[user_id]"]Remove your vouch[/readon] [/cb:if] [/cb:if]

----

Simple Example of my problem:

Say my user id is 88 and i am selected in the the cb_vouchers field for the profile I am looking at.

This code doesn't work:
[cb:if cb_vouchers includes "#me"]Code[/cb:if]
[cb:if cb_vouchers includes "myid"]Code[/cb:if]

this code dose work:
[cb:if cb_vouchers includes "88"]Code[/cb:if]

Any help is really appreciated :)
Last edit: 10 years 4 months ago by .

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

Moderators: beatnantkrileon
Powered by Kunena Forum