-
AuthorPosts
-
erkdahl Friend
erkdahl
- Join date:
- December 2010
- Posts:
- 25
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 2 times in 1 posts
January 15, 2011 at 11:31 am #158792Hi,
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 Friendnghiatd
- Join date:
- October 2009
- Posts:
- 324
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 7
- Thanked:
- 39 times in 37 posts
January 17, 2011 at 3:35 am #372172Hi,
We have created a new improvement request for JA Comment:
http://pm.joomlart.com/browse/JACOMMENT-277We will add this feature in the next version.
Best Regards.
erkdahl Frienderkdahl
- Join date:
- December 2010
- Posts:
- 25
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 2 times in 1 posts
January 25, 2011 at 6:14 pm #373741Thanks! In the meantime, I’ve made a small hack to make this happen.
February 5, 2011 at 1:37 am #375186Can you please let me know the hack you have made. I have tried SEVERAL things with no fix.
Thanks,
JamesFebruary 9, 2011 at 7:17 pm #375909I’m sorry, but how can this have been overlooked? Really makes no sense.
What code can we modify to remedy this?
nghiatd Friendnghiatd
- Join date:
- October 2009
- Posts:
- 324
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 7
- Thanked:
- 39 times in 37 posts
February 12, 2011 at 8:17 am #376325Hello,
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 = '';
} -
AuthorPosts
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