Skip to Content Skip to Menu

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

Replied to a group post in CB activity

11 years 6 months ago #225149 by deltafidesign
Replied to a group post in CB activity was created by deltafidesign
When I reply to a post group, the CB Activity tab show me the reply and the link to the group where I replyed. Is there a way to show also the direct link (like #1 for example) in the activity so that I can go directly to the post or the reply instead of going into the group and try to find the reply scrolling up and down?

Thanks

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225228 by krileon
Replied by krileon on topic Replied to a group post in CB activity
The custom activity display is handled in the below template file.

components/com_comprofiler/plugin/user/plug_cbactivity/templates/default/activity.php

You can adjust as needed. By default the activity display for wall posts is given no title, but you can add $item->getTitle( 0, true ) as the title (second variable of getItemDisplay) to the wall display and it'll add the numbered link.


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.

11 years 6 months ago #225236 by deltafidesign
Replied by deltafidesign on topic Replied to a group post in CB activity
Can you please suggest me where exactly should I add that code?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago - 11 years 6 months ago #225243 by krileon
Replied by krileon on topic Replied to a group post in CB activity
IN: components\com_comprofiler\plugin\user\plug_cbactivity\templates\default\activity.php
ON: Line 99
FROM:
Code:
$return = HTML_cbactivityActivity::getItemDisplay( null, null, $item->getPost( $descLength ), $item->getGroup()->getName( $titleLength, true ), $module );
TO:
Code:
$return = HTML_cbactivityActivity::getItemDisplay( null, $item->getTitle( 0, true ), $item->getPost( $descLength ), $item->getGroup()->getName( $titleLength, true ), $module );


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 6 months ago by krileon.
The following user(s) said Thank You: Astrid

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

11 years 6 months ago #225244 by deltafidesign
Replied by deltafidesign on topic Replied to a group post in CB activity
Thank you. It work fine now.

Will you consider add this option to switch on/off in backend configuration?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225251 by krileon
Replied by krileon on topic Replied to a group post in CB activity
No, I've went back and forth with users wanting it added and users wanting it removed. Will be leaving as is and let users simply edit the template for whatever output they want. I am avoiding heavy parameter usage as I do not want another GJ situation (hopefully a large sum of GJ parameters will go away after CB 2.0 and be more down to the template).


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: deltafidesign

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

Moderators: beatnantkrileon
Powered by Kunena Forum