Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] What Parameters to use in the bot cb_content to Display other Members Profile Fields in article to take their Profile fields Print

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 5 months ago #227543 by krileon

instead i found a new solution for this,
i used the plugin cb_articles,
in this when a visitor visits the profile and click on the article tab then he will see the profile of that member then he can take the printout of that member.

That could work as by default substitutions are based off the author of the article, but each user would still need a Joomla article so it doesn't get around having 1 article per user.

is there any option is there to create an article automatically and assign to that new member?

You can try using CB Auto Actions and its Query action to do a database insert to create a new Joomla article for a user on the registration trigger for example.


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 or Create an account to join the conversation.

  • madhu
  • madhu
  • OFFLINE
  • Posts: 78
  • Thanks: 4
  • Karma: 1
11 years 5 months ago #227572 by madhu
yes sir, you are right,
i searched the forum,
autoactions are the right one,
but i did not get how to create trigers to make an autoaction to create an article at registration,
can you please help me out in this?
Thank you

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 5 months ago #227574 by krileon
The triggers variable has a dropdown below it to let you add CB triggers easily. Latest release has a search feature as well and can type in "register"; you should see the after registration trigger under Frontend. Click that trigger to add it to the triggers variable.

We've use case example tutorials, which you can find below; some of them are CB Auto Actions usages such as giving a usergroup based off a field value.

www.joomlapolis.com/support/tutorials/107-use-cases


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 or Create an account to join the conversation.

  • madhu
  • madhu
  • OFFLINE
  • Posts: 78
  • Thanks: 4
  • Karma: 1
11 years 5 months ago #227575 by madhu
Thank you sir,
i understand using the autoaction, but i dont know how to create an article and store in the database,
i will be very greatfull if you guide me on how to creating a article and save using the autoaction.
Thanks

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 5 months ago #227611 by krileon
You'll need to create a database query for that. I can't provide this for you, sorry. Another option is to use a Code action with PHP method and use Joomla API like the following create a new article.
Code:
$article = JTable::getInstance( 'content' ); $article->set( 'created_by', '[user_id]' ); $article->set( 'title', '[username]' ); $article->set( 'introtext', 'Intro Text of Article' ); $article->set( 'fulltext', 'Full Text of Article' ); $article->set( 'catid', CONTENT_CATEGORY_ID_HERE ); $article->set( 'state', 1 ); $article->set( 'access', 1 ); $article->set( 'created', date( 'Y-m-d H:i:s' ) ); $article->set( 'language', '*' ); $article->store();

Please note the above is just an example and you should look into Joomla article API further if is intended usage.


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.
The following user(s) said Thank You: madhu

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

  • madhu
  • madhu
  • OFFLINE
  • Posts: 78
  • Thanks: 4
  • Karma: 1
11 years 5 months ago #227614 by madhu
Dear sir,
Thank you very very much for all your kind support and help,
I have solved this issue using the community builder profile pro component,
I purchased that component,
and thanks for your reply,
I will close this ticket,
and if you have any idea on how to add the
?tmpl=component&print
in the url to print the page without the header and footer,
for selected profiles
please reply.
Thanking you
Madhusudhan krishnan

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

Moderators: beatnantkrileon
Powered by Kunena Forum