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

    I am also having the problem that the link for the author name is showing up as html when this is enabled in the articles parameters. I just want the author name to show up there or “written by: author name” with the hyperlink to their jomsocial profile.

    I see this discussed but no solution is provided: http://www.joomlart.com/forums/topic/author-link-in-articles-is-showing-as-html/

    Please help as we are going live within a day.

    Thanks,

    Stan

    khoand Friend
    #382348

    Hi,
    – Open <joomla url>templatesja_socialhtmlcom_contentfrontpagedefault_item.php file
    – Replace


    <dd class="createdby">
    <?php JText::printf(($this->item->created_by_alias ? $this->escape($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?>
    </dd>


    with


    <dd class="createdby">
    Written by: <?php JText::printf(($this->item->created_by_alias ? $this->escape($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?>
    </dd>

    – What hyperlink like? Do you give me a example?

    missioneyes Friend
    #382371

    Thanks

    I have done this but I am still having the same issue without any apparent change.

    http://missioneyes.net/test/index.php?option=com_content&view=section&layout=blog&id=1&Itemid=100423

    The issue is on the blog layout for sections or categories and also for individual articles

    http://missioneyes.net/test/index.php?option=com_content&view=article&id=526:see-to-host-msics-wetlab-sept-3-2011&catid=3&Itemid=19

    Thanks for your quick help!!

    Stan

    khoand Friend
    #382457

    Hi,
    You try this way:
    – Open <joomla url>templatesja_socialhtmlcom_contentfrontpag edefault_item.php file, replace


    <dd class="createdby">
    <?php JText::printf(($this->item->created_by_alias ? $this->escape($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?>
    </dd>

    with


    <dd class="createdby">
    Written by:<a href="index.php?option=com_community&view=profile&userid=<?php echo $this->item->userid;?>"><?php JText::printf(($this->item->created_by_alias ? $this->escape($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?>
    </a>
    </dd>

    – Open <joomla url>componentscom_contentmodelsfrontpage.php file, replace


    'u.name AS author, u.usertype, g.name AS groups, u.email as author_email, cc.title AS category, s.title AS section, s.ordering AS s_ordering, cc.ordering AS cc_ordering, a.ordering AS a_ordering, f.ordering AS f_ordering'.

    with

    ' u.id AS userid, u.name AS author, u.usertype, g.name AS groups, u.email as author_email, cc.title AS category, s.title AS section, s.ordering AS s_ordering, cc.ordering AS cc_ordering, a.ordering AS a_ordering, f.ordering AS f_ordering'.
    –> My way affects to front page. I checked your home page, and it works perfectly
    – If you want to change section blog. You do same things to <joomla url>componentscom_contentmodelssection.php and <joomla url>pluginssystemjat3base-themesdefaulthtmlcom_contentsectionblog_item.php file

    missioneyes Friend
    #382614

    First of all, thanks for giving much help!

    Second, I have tried both of these code changes to no avail. Are you working with my testsite http://www.missioneyes.net/test?

    Thirdly, isn’t this a bug for the tempate? I don’t understand why not many others are complaining of this. I am just trying to use the section and frontpage blog and also this shows up in the article if author is enabled. I’m sure many others use the author enabled.

    I have sent ftp and backend access for the moderators if someone could please make the changes and let me know what fixes it.

    Stan

    thuanlq Friend
    #382660

    Hi Missioneyes,

    To resolve this problem, please do as following:
    – Open the file “blog_item.php”, in the folder “/templates/ja_social/local/themes/men_custom/html/com_content/category”, Find code:


    <?php JText::printf(($this->item->created_by_alias
    ? $this->escape($this->item->created_by_alias)
    : $this->escape($this->item->author)) ); ?>

    Replace to:


    <?php JText::printf( ( $this->item->created_by_alias
    ? $this->item->created_by_alias
    : $this->item->author) ); ?>

    – Open file “default.php” in the folder “/templates/ja_social/local/themes/men_custom/html/com_content/article”, find code:


    <?php $this->escape(JText::printf(($this->escape($this->article->created_by_alias) ? $this->escape($this->article->created_by_alias) : $this->escape($this->article->author)) )); ?>

    Replace to:


    <?php echo JText::_("Written by: "); JText::printf(($this->escape($this->article->created_by_alias) ? $this->article->created_by_alias : $this->article->author) ); ?>

    ( i changed this file in your site, view this link to see updated http://www.missioneyes.net/test/index.php?option=com_content&view=article&id=12:impact-on-jungle-occupations&catid=75:patient-stories&Itemid=100109 )
    – Open the file “default_item.php”, in the folder “/templates/ja_social/local/themes/men_custom/html/com_content/frontpage”, find code:


    Written by: <?php JText::printf(($this->item->created_by_alias ? $this->escape($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?>

    Replace to:


    Written by: <?php JText::printf(($this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author) ); ?>

    Note: your site use theme is “men_custom”, so all file in this folder was called first.

    Regardsm

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

This topic contains 6 replies, has 3 voices, and was last updated by  thuanlq 13 years, 9 months ago.

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