Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Black Friday Intro Offer for your subscription's lifetime
🎉 Black Friday sale is here! Great savings on professional and developer memberships! Get 25% off now with code BLACK-FRIDAY-2024!

Changing the LIKE button to "Upvote"

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
5 years 9 months ago #310239 by timstohr
Changing the LIKE button to "Upvote" was created by timstohr
Hi Kyle,
I would need to change the LIKE button on only one module that I am calling in via CB Activity plugin to Follow (while it remains as is on all other modules).

I have used
[cbactivity:activity likes_include="2" likes_exclude="3" /]

In the hope that it would only show the follow button on that module (I had changed LOVE to FOLLOW in CB Language Plugin) but it does not work.

Any way to make it work?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48560
  • Thanks: 8292
  • Karma: 1445
5 years 9 months ago #310244 by krileon
Replied by krileon on topic Changing the LIKE button to "Upvote"

I have used
[cbactivity:activity likes_include="2" likes_exclude="3" /]

You're outputting an activity stream as you've cbactivity:activity use cbactivity:like to output a like stream. Example as follows

[cbactivity:like include="2" exclude="3" /]


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.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
5 years 9 months ago #310246 by timstohr
Replied by timstohr on topic Changing the LIKE button to "Upvote"
Hi,
Yes I would like to ouput a CB activity stream. I would like to change to LIKE button to an UPVOTE button but only on this module. See attached screenshot.
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48560
  • Thanks: 8292
  • Karma: 1445
5 years 9 months ago #310257 by krileon
Replied by krileon on topic Changing the LIKE button to "Upvote"
There's no functionality for that. It will always use the thumbs up and will always say Like or Unlike. It's not a upvote/downvote implementation. You'd have to override the below template file to change how it displays.

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


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.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
5 years 9 months ago #310284 by timstohr
Replied by timstohr on topic Changing the LIKE button to "Upvote"
Ahh yes, can we use $stream-> asset in there as well as we need to have different buttons there depending on asset (in asset mainforum.USER_ID it will be "Upvote", for events.USER_ID it will be "Like", for comment.mainforum.USER_ID it will be "Good answer")?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48560
  • Thanks: 8292
  • Karma: 1445
5 years 9 months ago #310304 by krileon
Replied by krileon on topic Changing the LIKE button to "Upvote"
Yes, just use $stream->asset() to grab the primary asset for the stream. You'd then just use PHP IF statements to adjust how the button displays based off that.


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