×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: HWD Mediashare integration

HWD Mediashare integration 11 years 6 months ago #21176

  • shonn piersol
  • shonn piersol's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 30
  • Thank you received: 0
Using 1.1.8 version of HWDMediashare and 5+ Ccomments and I followed the steps in documentation but the integration list inside HWD does not give the option for ccomments.

:) Create a CComment configuration for com_hwdmediashare. Login into your joomla backend and navigate to Components -> CComment -> Settings -> click on on new. From the dropdown select com_hwdmediashare and click nex. Save the config.

:) Go to Extension Manager -> Plugins and enable the HWDMediashare - Comments (CComment) plugin

:) Go to Components -> HWDMediashare -> Configuration -> Integrations -> Commenting and from the dropdown select HWDMediashare - Comments (CComment)

HWD Mediashare integration 11 years 6 months ago #21198

  • shonn piersol
  • shonn piersol's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 30
  • Thank you received: 0
Not to rush, but as an fyi, i did try this again with the git7cf5e19 dev version and it also didnt integrate.

HWD Mediashare integration 11 years 6 months ago #21212

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Shonn,
I guess the problem was that at the last step there was no "HWDMediashare - Comments (CComment) " to choose in the dropdown, right?

The issue was -> I wrote the plugin and tested it. The plugin name was comments_ccomment. But since our build script could not package it (as the name should actually not contain any underscore according to the unwritten joomla convention) I decided to rename it to just ccomment. Unfortunatly hwdmediashare expects the comments plugin to start with commnets_... Now I've renamed everything and our build script is also able to build the package even if we have underscores there.

Please test the latest dev release and let me know if it fixes the issue for you as well.
Thanks,
Daniel

HWD Mediashare integration 11 years 6 months ago #21214

  • shonn piersol
  • shonn piersol's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 30
  • Thank you received: 0
The install path does not exist is what get when i install the latest dev release.

plg_hwdmediashare_ccomment Hwdmediashare COM_COMMENTPLUGIN_NOT_INSTALLED

When i installed over the other dev release i still had the mediashare ccomment plugin installed and i checked and it didnt work.

So i uninstalled the plugin and reinstalled the component and it still gave same message with no success.

HWD Mediashare integration 11 years 6 months ago #21220

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Okay there was a problem with the installation script... It should work now. Take the latest dev release.

HWD Mediashare integration 11 years 6 months ago #21231

  • shonn piersol
  • shonn piersol's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 30
  • Thank you received: 0
The latest release made it work yes, the dev release, NOT the beta2 release. As mentioned and you adapted before for articles, the titles of the video with url didnt come through, but thats less critical for operations. At least it works.

HWD Mediashare integration 11 years 6 months ago #21235

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
The titles of the video? What do you mean? Where are they not coming up?

HWD Mediashare integration 11 years 6 months ago #21264

  • shonn piersol
  • shonn piersol's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 30
  • Thank you received: 0
Im sorry as I am reaching across threads with this. You made a change to the AUP content integration to include the title of article in the details of the latest point activity. perhaps the same could be done for HWD comments to display title of page commented on.

HWD Mediashare integration 11 years 6 months ago #21272

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Shonn,
Sorry but I have difficulties understanding you (most probably I'm thinking about something else) -> where do the titles need to appear? I see the title of the item the user has commented on in the backend? (manage comments -> content item for me is the title of the image/video)

What do you exactly mean? Where is this title not showing up?
Daniel

HWD Mediashare integration 11 years 6 months ago #21291

  • shonn piersol
  • shonn piersol's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 30
  • Thank you received: 0
Ok when you earn points, its supposed to show immediately as a system message at the top of the page. But many AUP integrations arent setup to show that. But most important is that it DOES shoe in the latest activity of the AUP profile. But while it DOES say they earned points for the video comment, it does NOT say the title of which video was watched, its BLANK. This means they dont know what they are getting points for. Was it a video? An article? A picture? If so which ones?



Notice how the New User points gave a "title" of Welcome so you know more about how the points were awarded. All those votes and posts and yet no one knows where or how they got them.
Attachments:

HWD Mediashare integration 11 years 6 months ago #21293

  • shonn piersol
  • shonn piersol's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 30
  • Thank you received: 0
Here is the full api documentation. The Details field seems to come from the 'information_data' parameter in step (d)
a) Use - Basic 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' );
}
 
function_name is the name of the rule that will be used to attribute points to the current user (if logged in). For each AlphaUserPoints integrated rule (system rules), names syntax is as follows:
 
example: sysplgaup_newregistered for new users points attribution
 
It is convinient to keep the same name syntax for third party components plugin as follows:
 
plgaup_functionname
 
Example: plgaup_newcomment or plgaup_newtopic for a comment system or forum API integration. To name a rule that would give points when adding a new topic in Fireboard: plgaup_newtopic_fb.
 
Keep in mind that this method only gives points to the current user. This is the Basic API.
 
b) Attribute points to another user:
 
To give points to anothe user than the one connected, only the user id is required. To get his AlphaUserPoints (AUPID) Identity, we just need to use the getAnyUserReferreID(). This method is the one used to give points to an article author when the article is being read by someone on the site.
 
$api_AUP = JPATH_SITE.DS.'components'.DS.'com_alphauserpoints'.DS.'helper.php';
if ( file_exists($api_AUP))
{
require_once ($api_AUP);
 
$aupid = AlphaUserPointsHelper::getAnyUserReferreID( $userID );
 
if ( $aupid )  AlphaUserPointsHelper::newpoints( 'function_name', $aupid );
}
 
c) Prevent from attributing points more than once for the same action:
To avoid that a user would get points many times for something allready done, we can add a reference key. When calling the AlphaUserPointsHelper::newpoints function, a pre check is done on this reference key. This method is used in the rule where a user reading an article would give points to the author.
 
$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', '', 'reference_key');
}
 
d) Adding information datas:
To add information datas to be displayed in the action details, just add a new parameter as follows:
 
$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', '', '', 'information_datas');
}
 
e) Using different amounts of points on the same rule:
 
A component might also need to add or to take points for different amounts. For example, when buying goods with points. Products have diferent prices, a fixed amount in the rule would'nt make it. The API $randompoints parameter comes instead of the amount of points set in the rule. It can be negative in case of purchases or penalities.
 
$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', '', '', '', -1450);
}
 
f) Get the result from a successfull operation:
In a more advanced code, if the component routine needs to know if the operation has been successfull or not, (enough amount of points for a purchase in a user account), we can add a 'feedback' parameter. It has a Boolean type value.
 
Code example:
 
$api_AUP = JPATH_SITE.DS.'components'.DS.'com_alphauserpoints'.DS.'helper.php';
if ( file_exists($api_AUP))
{
require_once ($api_AUP);
if (AlphaUserPointsHelper::newpoints( 'plgaup_purchasewithvirtuemart', '', 'payment ID: 20080831-YHMU', 'Product reference: AM-5245', -1290, true))
{
[... code continued ...]
}
}
 
g) Remove the constraint on the type of user:
In a customized code component, you can force and remove the constraint on a rule to the user level by adding the parameter force = 1. The existing rule will be available now for guest, registered and special.
 
h) API full implementation:
AlphaUserPointsHelper::newpoints( string$pluginfunction, [string$AUPIDotheruser = ''], [string$keyreference = ''], [string$data = ''], [integer$randompoints = 0], [boolean$feedback = false], [integer$force=0]);
 
Note: If a the operation is a points substraction, the account has to have at least the same amount of points. If not, a notice warns the user that he doe'snt have enough points to complete the action.
 

HWD Mediashare integration 11 years 6 months ago #21296

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Since this is AUP issue let us continue the discussion here:
compojoom.com/forum/newbie-area/17904-al...points-for-5-x#21295
  • Page:
  • 1
Time to create page: 0.134 seconds