test
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • alisadrcity Friend
    #163960

    helleoo…

    why change the name JUSER not in amar ?

    13128

    13129


    1. asdasd
    2. Unbenanntss
    khoand Friend
    #391252

    Hi,
    – 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 cache

    alisadrcity Friend
    #391303

    thankkk =) its work

    issay Friend
    #392187

    hello 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 Friend
    #392254

    You try replace

    $row->creator
    with

    $row->created_by_alias

    issay Friend
    #392260

    khoand 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

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, 7 months ago.

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