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