Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • guap Friend
    #188022

    I imported 500 articles and the created “By” are already in the article. How I can I remove the “by” (from module). When I preview the article the “by” are doubled.

    Please see the attached image. Thank you


    1. by
    MoonSailor Friend
    #494975

    HI

    <blockquote>How I can I remove the “by” (from module)</blockquote>

    It looks like that word appears in article details than in module as you mentioned,

    If so, open file “templates/ja_fubix/html/com_content/article/default.php” find code :
    [PHP]
    <i class=”icon-user”> </i><?php echo JText::sprintf(‘FUBIX_COM_CONTENT_WRITTEN_BY’, ‘<span>’.JHtml::_(‘link’, JRoute::_($cntlink), $author).'</span>’); ?>
    <?php else: ?>
    <i class=”icon-user”> </i><?php echo JText::sprintf(‘FUBIX_COM_CONTENT_WRITTEN_BY’, ‘<span>’.$author.'</span>’); ?>
    <?php endif; ?>
    [/PHP]

    and change it to :

    [PHP]
    <i class=”icon-user”> </i><?php echo ‘<span>’.JHtml::_(‘link’, JRoute::_($cntlink), $author).'</span>’; ?>
    <?php else: ?>
    <i class=”icon-user”> </i><?php echo ‘<span>’.$author.'</span>’; ?>
    <?php endif; ?>
    [/PHP]

    Regards


    1. 9020891707
    guap Friend
    #495035

    Thank you for a quick reply. The “by” is not appearing. 🙂

    guap Friend
    #495383

    The “by” is not appearing anymore on single article but it is showing on Category Blog section. How I can I removed them?

    Thanks you


    1. Untitled-1
    MoonSailor Friend
    #495424

    Hi guap,

    Pls open file “templates/ja_fubix/html/com_content/category/blog_item.php”, find code (line 77-80):
    [PHP]
    <?php echo ‘<span class=”name”>’, JText::sprintf(‘COM_CONTENT_WRITTEN_BY’ ,
    ‘</span><span>’.JHtml::_(‘link’, JRoute::_(‘index.php?option=com_contact&view=contact&id=’.$this->item->contactid), $author).'</span>’); ?>
    <?php else :?>
    <?php echo ‘<span class=”name”>’, JText::sprintf(‘COM_CONTENT_WRITTEN_BY’, ‘</span><span>’.$author.'</span>’); ?>
    [/PHP]
    and replace it by :
    [PHP]
    <?php echo ‘<span>’.JHtml::_(‘link’, JRoute::_(‘index.php?option=com_contact&view=contact&id=’.$this->item->contactid), $author).'</span>’; ?>
    <?php else :?>
    <?php echo ‘<span>’.$author.'</span>’; ?>
    [/PHP]

    Regards

    guap Friend
    #495540

    Thank you very much …:)

    guap Friend
    #498441

    Another issue …

    The “by” appears also on position 7 module. How can I remove them?
    Thank you.

    MoonSailor Friend
    #498467

    Hi guap,

    Could you tell me more details? When I check in demo site, with position 7 modules, I don’t see the ‘by’ word there.

    Regards

    guap Friend
    #498569

    Link: http://bit.ly/181Jruc

    Image:

    Thank you


    1. 1
    Saguaros Moderator
    #498644

    Hi

    What type of module are you assigning to this position-7?

    guap Friend
    #498736

    Articles Category

    Saguaros Moderator
    #498884

    Hi

    Try opening file: /templates/ja_fubix/html/mod_articles_category/features.php

    Around line 261:

    [PHP]
    <?php if ($params->get(‘show_author’)) :?>
    <span class=”mod-articles-category-writtenby”>
    <span><?php echo JText::_(‘FUBIX_ARTICLE_CATEGORY_BY’) ?>: </span>
    <?php echo $item->displayAuthorName; ?>
    </span>
    <?php endif;?>
    [/PHP]

    change it to:

    [PHP]
    <?php if ($params->get(‘show_author’)) :?>
    <span class=”mod-articles-category-writtenby”>
    <?php echo $item->displayAuthorName; ?>
    </span>
    <?php endif;?>
    [/PHP]

    guap Friend
    #498891

    I changed the code but I don’t see any changes …

    Saguaros Moderator
    #502345

    Hi guap,

    So sorry for the late, If possible, pm me admin and ftp account of site you’re working on, I will check it for you

    Regards

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

This topic contains 14 replies, has 3 voices, and was last updated by  Saguaros 11 years, 3 months ago.

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