-
AuthorPosts
-
May 13, 2011 at 10:29 am #163960
helleoo…
why change the name JUSER not in amar ?
13128
13129
-
khoand Friend
khoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
May 14, 2011 at 5:37 pm #391252Hi,
– You replace this code from <joomla url>modulesmod_janewsprotmpldefaultblog_item.php, <joomla url>modulesmod_janewsprotmpllinearblog_item.php, <joomla url>modulesmod_janewsprotmplmobileblog_item.php
$row->creator
with
$row->creator->get("name")
– Clean cache1 user says Thank You to khoand for this useful post
May 15, 2011 at 3:36 pm #391303thankkk =) its work
issay Friendissay
- Join date:
- November 2009
- Posts:
- 114
- Downloads:
- 0
- Uploads:
- 22
- Thanks:
- 26
- Thanked:
- 5 times in 1 posts
May 21, 2011 at 4:01 am #392187hello khoand.
I tried this: $row->creator->get(“name”) but it didnt work if I use a Alias in ‘Created by’ field.with out alias, for example if the creator and author are same its fine.
any new approach?
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
May 21, 2011 at 6:10 pm #392254You try replace
$row->creator
with
$row->created_by_alias
issay Friendissay
- Join date:
- November 2009
- Posts:
- 114
- Downloads:
- 0
- Uploads:
- 22
- Thanks:
- 26
- Thanked:
- 5 times in 1 posts
May 21, 2011 at 7:01 pm #392260khoand thank u . I tried with $row->created_by_alias . but the problem is , some times Alias is not available. article is created by super admin. in this case , I have ti write Alias in every article.
so I tried to combine your different two approach. $row->created_by_alias // $row->creator->get(“name”)
but I dont know php. so asked for help in forum and I got it by himangi. She mixed the two code and here is waht she said.
<php if ($row->created_by_alias) { ?>
<span class="createby"><?php echo $row->created_by_alias;?></span>
<?php } else { ?>
<span class="createby"><?php echo $row->creator;?></span>
<?php } ?>
http://www.joomlart.com/forums/topic/how-to-show-alias-name-in-ja-news-pro/#post-392200
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)This topic contains 6 replies, has 3 voices, and was last updated by issay 13 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum
-