I have several lists and in each of them I have the
Title and the Description
I would like to generate the description with php using a query
Ore queries mixt with text. If possible using the listid as parameter in the queries
(similar to queryfields)
Now I tested the following things:
- I inserted in a article {?php echo "Hallo World" ; ?} and it displays: "Hallo World" (works perfect!)
- I inserted in Description of a Content Category {?php echo "Hallo World" ; ?} an it displays: "Hallo World" (works perfect!)
- But if I insert {?php echo "Hallo World" ; ?} in the description of a CB List then I get: {?php echo "Hallo World" ; ?}
Can you help me?
Is there an other way in CB?
Thanks
rh
Last edit: 11 years 2 months ago by Hansueli. Reason: addet: does also not work with ARI...
CB Userlists do not process Joomla Content Plugins so that's not going to work. Why do you need PHP in a Userlist description? What specifically are you trying to add to it?
We also do not support your usage. It's dangerous to be executing PHP like that and you've just created a vulnerability on your site. What happens if someone gets into an account that can create frontend articles? They could easily inject PHP straight into your site to drop all your Joomla tables.
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.
In that case I suggest creating a custom module that pulls and displays your needed information then add it to your CB Userlist. Alternative is to use your PHP script and use it in a custom html module then add that module to your userlist. Another alternative is you could use CB Auto Actions PHP action to execute whatever code you need then tell it to echo your result on the onBeforeDisplayUsersList trigger.
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.