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 #227629 by krileon

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.

You can manually build a URL to a users profile using the below in a delimiter field for example.
Code:
<a href="index.php?option=com_comprofiler&task=userprofile&user=[user_id]&tmpl=component&print" target="_blank">Print My Profile!</a>


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 #227645 by madhu
Dear sir,
Thank you very much for your reply,
i tried that but it is giving error like

"This profile does not exist or is no longer available"

when i click on the link,
what will be the problem sir?
please reply

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 #227648 by madhu
IS IT I NEED TO CHANGE THE [USER_ID] ?
I MEAN WILL I NEED TO PROVIDE IT MANUALLY?
BECAUSE I TESTED WITH THIS
/userprofile/107.html?tmpl=component&print=

IT WORKED FINE,
I WANT TO PRINT THE PROFILES OF THE OTHER MEMBERS.
SO PLEASE GIVE THE CODE IN THAT REGARDING,
THANK YOU VERY MUCH

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 - 11 years 5 months ago #227653 by krileon
I already gave you the code. [user_id] is a substitution. It substitutions in the id of the profile being viewed automatically. You do not need to change it. I've tested this locally and it works fine. You may need to append live site before index.php if SEF is on as Joomla may not interpret it correctly; example as follows to append live_site (again, all of this is in the substitution tutorial).

Code:
<a href="[cb:config param="live_site" /]/index.php?option=com_comprofiler&task=userprofile&user=[user_id]&tmpl=component&print" target="_blank">Print My Profile!</a>

Please avoid all caps or topic will be locked. Please understand I am here to provide support, not provide development for your site; you've been provided the resources and multiple examples so there is nothing more I can advise to you aside from read what is provided carefully and test.


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: 11 years 5 months ago by krileon.

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 #227678 by madhu
Dear sir,
Thank you very much for your kind support,
and i am sorry for troubling you,
i have tested now and what i found the problem is,
after saving the profile page it is only taking
this
<p><a href="[cb:config param=" target="_blank">Print My Profile!</a></p>
and all other code in the lin is vanished, i dont know what happened,
do you have any idea about this sir,
and i copied this in the cb profile pro components profile page.
sorry for troubling you again,
thanking 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 #227698 by krileon
You don't save it in a profile. You need to create a delimiter field within CB > Field Management then add the supplied html with substitutions. Regarding CB Profile Pro I can't help you with it as we didn't develop it and I've no experience using it so copying the supplied html and substitution to CB Profile Pro may do nothing.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum