Skip to Content Skip to Menu

cb_Code triggers in cbSubs

13 years 6 months ago #161926 by bruceisaacson
Replied by bruceisaacson on topic Re: cb_Code triggers in cbSubs
Again, thanks.
I was able to use Joomla magazine writer Nicholas Antimiarsis' technique to make a delimiter field that displayed variables from both the profile page owner and the visitor.
Now I need to know how I can assemble a URL inside a delimiter field using the cb:userdata constructs. I tried this, and, of course, it doesn't work.
mysite.com/watchmebutton.php?viewer_name= [cb:userdata field="name" user=#me /]&profiler_name=[cb:userdata field="name" /]... and other similar fields.

Can you give me some insight?
Thanks

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
13 years 6 months ago - 13 years 6 months ago #161947 by krileon
Replied by krileon on topic Re: cb_Code triggers in cbSubs
If you need to have substitution data of the viewing user it's best to use the myId value of user_id parameter. Please see the below example.

[cb:userdata field="name" user_id="myid" /]

Additionally your original content likely is not working because you've no double quotes around #me, which is required for the substitution parser to consider that parameter.

I recommend reviewing the substitution tutorial provided within my signature (see Tutorials) very carefully.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 13 years 6 months ago by krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum