test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • pedrostein Friend
    #171255

    Hi all

    I just noticed that if someone comments via JAComment the Full Name gets published in the Jomsocial activity stream.
    Could this be changed somehow that it only shows the user name ?

    I’m using Joomla 1.73 and latest version of JAComment and Jomsocial

    jooservices Friend
    #427265

    Hi
    I have checked into JA Comments helper.php

    if (JACommentHelpers::checkComponent ( 'com_community' ) && (! isset ( $jacconfig ['layout'] ) || $jacconfig ['layout']->get ( 'enable_activity_stream', 0 ))) {
    require_once (JPATH_ROOT . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'core.php');
    require_once (JPATH_ROOT . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'activities.php');

    include_once (JPATH_ROOT . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'userpoints.php');

    $act = new stdClass ( );
    $act->cmd = 'com_jacomment.comment.' . $action;

    $userPointModel = CFactory::getModel ( 'Userpoints' );
    // Test command, with userpoint command. If is unpublished do not proceed into adding to activity stream.
    $point = $userPointModel->getPointData ( $act->cmd );
    $points = 0;
    if ($point && ! $point->published) {
    $points = 1;
    } elseif ($point)
    $points = $point->points;

    $act->actor = $actor;
    $act->target = $actor; // no target
    $act->title = JText::_ ( $title );
    $act->content = JText::_ ( 'This is the body' );
    $act->app = 'com_jacomment.comment';
    $act->cid = $cid;
    $act->points = $points;
    CFactory::load ( 'libraries', 'activities' );
    CActivityStream::add ( $act );

    /* Add points for user */
    CuserPoints::assignPoint ( $act->cmd, $actor );
    }

    By this code it’s mean we do not define name or username will show on JomSocial.
    So it’s mean you can config it in JomSocial.

    administrator/index.php?option=com_community&view=configuration
    Tab Layout – Display Name
    And choose your needed.

    Thank you,

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  jooservices 13 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum