Skip to Content Skip to Menu

UserPoints plugin for Community Builder

1 day 7 hours ago #344204 by counterpoint
UserPoints plugin for Community Builder was created by counterpoint
I've been writing a plugiin and have a couple of questions.
1. It seems that the version number of a plugin has to somehow conform to CB version numbering. A new plugin given a version of 1.0.0 does not install. Matching the installed CB version does install. But what degree of matching is required? How much of the version number is necessary? What is an appropriate policy for third party plugin versioning?
2. As the links between CB and UserPoints develop, a number of triggers will need to be handled. Can a single plugin handle multiple triggers? Is there any limit?
Best regards, Martin

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50551
  • Thanks: 8656
  • Karma: 1473
1 day 6 hours ago #344208 by krileon
Replied by krileon on topic UserPoints plugin for Community Builder

1. It seems that the version number of a plugin has to somehow conform to CB version numbering. A new plugin given a version of 1.0.0 does not install. Matching the installed CB version does install. But what degree of matching is required? How much of the version number is necessary? What is an appropriate policy for third party plugin versioning?

CB plugins have <version> and <release>. They are as follows.

<version> = minimum compatible CB version
<release> = plugin version

Both are semver and should be supplied as semver. So if you're making a new plugin you'd have the below for example.
Code:
<version>2.11.0</version> <release>1.0.0</release>

2. As the links between CB and UserPoints develop, a number of triggers will need to be handled. Can a single plugin handle multiple triggers? Is there any limit?

You can bind to as many CB triggers as you like in your plugins main PHP file.


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.

1 day 6 hours ago #344209 by counterpoint
Replied by counterpoint on topic UserPoints plugin for Community Builder
Thanks. How do I know what is the minimum compatible CB version? Is 2.11.0 the only sensible value currently?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50551
  • Thanks: 8656
  • Karma: 1473
1 day 6 hours ago #344211 by krileon
Replied by krileon on topic UserPoints plugin for Community Builder

Thanks. How do I know what is the minimum compatible CB version? Is 2.11.0 the only sensible value currently?

Generally you just set it to current stable. It's up to you though. 2.11.0 is the current stable release so yes I'd recommend setting it to 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.

23 hours 55 minutes ago #344213 by counterpoint
Replied by counterpoint on topic UserPoints plugin for Community Builder
Thanks. It isn't really up to me, though. The current plugin requires CB to provide the onAfterUserAvatarUpdate trigger, with a first parameter that is a user object, having an id property. I want to support users who have a CB version that meets that requirement. How do I know what CB versions meet that requirement? And if I set the version to the earliest of them, will the plugin be accepted as compatible with the current version? These are questions that require knowledge of CB development.

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

Moderators: beatnantkrileon
Powered by Kunena Forum