PHP Code / Substitutions

6 years 3 weeks ago #302705 by Jack_Daniels
PHP Code / Substitutions was created by Jack_Daniels
Hi,

I am looking for a php Code, that will show me the same result, as this substitutions do:

[cb:usertab tab="37" user="10" /]

<?php

...

?>

Can you help me?

Thanks a lot

Please Log in to join the conversation.

6 years 3 weeks ago #302711 by krileon
Replied by krileon on topic PHP Code / Substitutions
I don't understand. You want to substitute in PHP? CB doesn't have a substitution for parsing PHP. You need a Joomla content extension that does that for that. Closest CB gets to that is substituting in a Code field. Or do you mean you want the full HTML of a tab (e.g. field label and rows)? Please clarify further.


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.

Please Log in to join the conversation.

6 years 3 weeks ago #302716 by Jack_Daniels
Replied by Jack_Daniels on topic PHP Code / Substitutions
Hi,

I can use this Code (substitutions):
[cb:usertab tab="37" user="10" /]

in "CB Content Module" to display the TAB 37 from user with the ID 10.


But I can't use this code in an different component. I can add a php code in this component,
and this is why I am looking for a php code, that will display a special tab of a special user.


Thanks a lot

Please Log in to join the conversation.

6 years 3 weeks ago #302730 by krileon
Replied by krileon on topic PHP Code / Substitutions
As long as where you're trying to use the substitution supports Joomla content plugins you should be able to use CB Content Bot to display substitutions outside of profiles. Below is a tutorial for obtaining tabs and fields using CB API if you absolutely have to use PHP.

www.joomlapolis.com/documentation/279-community-builder/tutorials/18361-obtaining-field-values-through-getfields-api


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.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.185 seconds

Facebook Twitter LinkedIn