Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • erkdahl Friend
    #158792

    Hi,

    I noticed today that all posts are being displayed with the users full name. I cannot find an option to switch this to username only. Is this possible?

    Thanks!

    nghiatd Friend
    #372172

    Hi,

    We have created a new improvement request for JA Comment:
    http://pm.joomlart.com/browse/JACOMMENT-277

    We will add this feature in the next version.

    Best Regards.

    erkdahl Friend
    #373741

    Thanks! In the meantime, I’ve made a small hack to make this happen.

    jimmdabull Friend
    #375186

    Can you please let me know the hack you have made. I have tried SEVERAL things with no fix.

    Thanks,
    James

    max power Friend
    #375909

    I’m sorry, but how can this have been overlooked? Really makes no sense.

    What code can we modify to remedy this?

    nghiatd Friend
    #376325

    Hello,

    Please open file
    componentscom_jacommentviewscommentsview.html.php
    find code (default in line 798)

    //BEGIN - get info of user
    $userInfo = JFactory::getUser($item->userid);
    if($userInfo->id == 0){
    $item->strUser = $item->name;
    $item->strEmail = $item->email;

    if($item->website && stristr($item->website, 'http://') === FALSE) {
    $item->strWebsite = 'http://'.$item->website;
    }else{
    $item->strWebsite = $item->website;
    }
    }else{
    $item->strUser = $userInfo->name;
    $item->strEmail = $userInfo->email;
    $item->strWebsite = '';
    }

    edit to

    //BEGIN - get info of user
    $userInfo = JFactory::getUser($item->userid);
    if($userInfo->id == 0){
    $item->strUser = $item->name;
    $item->strEmail = $item->email;

    if($item->website && stristr($item->website, 'http://') === FALSE) {
    $item->strWebsite = 'http://'.$item->website;
    }else{
    $item->strWebsite = $item->website;
    }
    }else{
    $item->strUser = $userInfo->username;
    $item->strEmail = $userInfo->email;
    $item->strWebsite = '';
    }

    max power Friend
    #376847

    Fix confirmed

    Thanks!

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

This topic contains 7 replies, has 4 voices, and was last updated by  max power 13 years, 9 months ago.

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