Skip to Content Skip to Menu

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

Alpha User Point Rule "Submit an Article" does not work with CB Blogs

  • haidinh
  • haidinh
  • OFFLINE
  • Posts: 94
  • Thanks: 8
  • Karma: 0
8 years 11 months ago #274037 by haidinh
Thank you Krileon,

Yes, I will ask him about the API.

The matter is that he seems not so familiar with CB too and I have to describe with him a lot about CBblogs.

Please visit this topic to see: www.alphaplug.com/index.php/forum/21-community-builder/26350-rule-qsubmit-an-article-native-joomlaq-not-work.html

So can you have any idea to clearly describe API to him.

Thank you and regards,

Hai
The topic has been locked.
  • krileon
  • krileon
  • ONLINE
  • Posts: 48465
  • Thanks: 8280
  • Karma: 1443
8 years 11 months ago #274075 by krileon
He doesn't need to know anything about CB or CB Blogs. You only need to know how to use AUP API to insert points. You then can configure a auto action in CB Auto Actions to utilize that API to insert points. There's no custom coding beyond AUP API usage or changes on either side necessary.


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 topic has been locked.
  • haidinh
  • haidinh
  • OFFLINE
  • Posts: 94
  • Thanks: 8
  • Karma: 0
8 years 10 months ago #274997 by haidinh
Hi Krileon,

I contacted the Alpha User Point developer to ask for the API but he seems to be very at the moment.

He just sent me a document on API. I myself tried several ways but not succeed yet. Can you do me a favor to look over the document and try to help me to write the API for adding points. Please help me as I do not know about coding but it will be very easy for you. Maybe your codes does not exactly but it will give me some suggestion to do it myself.

I know that I will use following API:


$api_AUP = JPATH_SITE.DS.'components'.DS.'com_alphauserpoints'.DS.'helper.php';
if ( file_exists($api_AUP))
{
require_once ($api_AUP);
AlphaUserPointsHelper::newpoints( 'function_name' );
}


But it still miss some code and number of points to be given, for example 5 points.

Please do me a favor, Krileon.

Thank you and regards,

Hai
Attachments:
The topic has been locked.
  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 10 months ago #275028 by nant

haidinh wrote: Hi Krileon,

I contacted the Alpha User Point developer to ask for the API but he seems to be very at the moment.

He just sent me a document on API. I myself tried several ways but not succeed yet. Can you do me a favor to look over the document and try to help me to write the API for adding points. Please help me as I do not know about coding but it will be very easy for you. Maybe your codes does not exactly but it will give me some suggestion to do it myself.

I know that I will use following API:



$api_AUP = JPATH_SITE.DS.'components'.DS.'com_alphauserpoints'.DS.'helper.php';
if ( file_exists($api_AUP))
{
require_once ($api_AUP);
AlphaUserPointsHelper::newpoints( 'function_name' );
}


But it still miss some code and number of points to be given, for example 5 points.

Please do me a favor, Krileon.

Thank you and regards,

Hai


Hi and thanks fro posting back feedback.

As this thread involved code proposals and is out of normal support scope I have marked it for Developer feedback.

There are no guarantees that we will be able to code this for you, but we will certainly reply as soon as we can.
The topic has been locked.
  • haidinh
  • haidinh
  • OFFLINE
  • Posts: 94
  • Thanks: 8
  • Karma: 0
8 years 10 months ago #275043 by haidinh
Thank you Nick :)

Please try to help me as I do not know anything about coding and already tried my best.

Yours sincerely,

Hai
The topic has been locked.
  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 10 months ago #275059 by nant

haidinh wrote: Thank you Nick :)

Please try to help me as I do not know anything about coding and already tried my best.

Yours sincerely,

Hai


As stated I have marked this doe developer feedback, so you will get a response (probably on Monday). Once again you need to understand that we cannot code solutions for people - that is not what our support offering is targeting.
The topic has been locked.
Moderators: beatnantkrileon
Powered by Kunena Forum