scarface
scarface
Offline
0
[hide]Assign points to user for rate an album!

Open file: JOOMLA_ROOT/components/com_muscol/controller.php
Find "RATE" function (line 407), After that add:


/////ALphaUserPoints Integration/////
$api_AUP = JPATH_SITE.DS.'components'.DS.'com_alphauserpoints'.DS.'helper.php';
if ( file_exists($api_AUP))
{
require_once ($api_AUP);
AlphaUserPointsHelper::newpoints( 'plgaup_new_votes_albums' );
}
/////END ALphaUserPoints Integration/////


Download and upload this Rules with AUP installation:
[file name=plgaup_new_votes_albums.zip size=357]http://www.joomlamusicsolutions.com/images/fbfiles/files/plgaup_new_votes_albums.zip[/file][/hide]
Attachments:
Responses (4)
  • Accepted Answer

    Ahad
    Ahad
    Offline
    Wednesday, August 31 2011, 11:37 PM - #Permalink
    0
    Thanks, it line 469 in joomla 1.6 version.

    Please share also where else the code should be put to add rules for adding album, listening to an album, etc.
    The reply is currently minimized Show
  • Accepted Answer

    Ahad
    Ahad
    Offline
    Wednesday, August 31 2011, 11:59 PM - #Permalink
    0
    Add same code as above, change only function name, to the same file (usually after jomsocial integeration code) to add rules for creating artist, rating songs, commenting, creating playlists, and adding albums.
    The reply is currently minimized Show
  • Accepted Answer

    Riki
    Riki
    Offline
    Saturday, November 30 2013, 10:59 PM - #Permalink
    0
    Any update on if this still works ? :)
    The reply is currently minimized Show
  • Accepted Answer

    loppis
    loppis
    Offline
    Thursday, November 26 2015, 08:45 PM - #Permalink
    0
    I'm also curious if this works on later versions. I will give it a try though, eventually :).
    The reply is currently minimized Show
Your Reply