test
Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • Phill Moderator
    #422612

    Did you try my initial solution? Also, what versions of Joomla, the template and the jat3 plugin are you running?

    lbridle Friend
    #422661

    I tried Duchh’s changes and posted the unsuccessful results previously, post #12 at 10-22-2011. Form other posts I presumed your initial solution was for J1.5

    I have a recent install of J1.7, Community Plus 1.3.1, jat3 ver 1.4

    Any ideas?

    Larry

    Hayden A Friend
    #423523

    <em>@lbridle 277851 wrote:</em><blockquote>Tried Duchh’s changes for J1.7, Community Plus 1.3.1 and noted the following:

    File “templatesja_community_plushtmlcom_contentcateg orydefault_items.php” does not exist.

    The file ” blog_item.php” current <p class=”readmore”> block is:
    [PHP]<p class=”readmore”>
    <a href=”<?php echo $link; ?>”>
    <?php if (!$params->get(‘access-view’)) :
    echo JText::_(‘COM_CONTENT_REGISTER_TO_READ_MORE’);
    elseif ($readmore = $this->item->alternative_readmore) :
    echo $readmore;
    if ($params->get(‘show_readmore_title’, 0) != 0) :
    echo JHTML::_(‘string.truncate’, ($this->item->title), $params->get(‘readmore_limit’));
    endif;
    elseif ($params->get(‘show_readmore_title’, 0) == 0) :
    echo JText::sprintf(‘COM_CONTENT_READ_MORE_TITLE’);
    else :
    echo JText::_(‘COM_CONTENT_READ_MORE’);
    echo JHTML::_(‘string.truncate’, ($this->item->title), $params->get(‘readmore_limit’));
    endif; ?></a>
    </p>[/PHP]

    So it looks like COM_CONTENT_REGISTER_READ_MORE_TITLE , and COM_CONTENT_READ_MORE_TITLE has been included. But it just doesn’t work.

    In ‘languageen-GBen-GB.tpl_ja_community_plus.ini” Duchh’s suggestion to add
    COM_CONTENT_READ_MORE_TITLE=”Read more…”
    COM_CONTENT_REGISTER_READ_MORE_TITLE=”Register to read more…”
    has already been included.

    So a fix for this readmore problem for Community Plus, J1.7, tpl 1.3.1 is still needed.

    I’d really appreciate any help anyone can offer here.
    Thanks, Larry</blockquote>

    in version 1,6 and 1.7 you need change
    [PHP]<p class=”readmore”>
    <a href=”<?php echo $link; ?>”>
    <?php if (!$params->get(‘access-view’)) :
    echo JText::_(‘COM_CONTENT_REGISTER_TO_READ_MORE’);
    elseif ($readmore = $this->item->alternative_readmore) :
    echo $readmore;
    if ($params->get(‘show_readmore_title’, 0) != 0) :
    echo JHTML::_(‘string.truncate’, ($this->item->title), $params->get(‘readmore_limit’));
    endif;
    elseif ($params->get(‘show_readmore_title’, 0) == 0) :
    echo JText::sprintf(‘COM_CONTENT_READ_MORE_TITLE’);
    else :
    echo JText::_(‘COM_CONTENT_READ_MORE’);
    echo JHTML::_(‘string.truncate’, ($this->item->title), $params->get(‘readmore_limit’));
    endif; ?></a>
    </p>[/PHP]

    to
    [PHP]<p class=”readmore”>
    <a href=”<?php echo $link; ?>”>
    <?php if (!$params->get(‘access-view’)) :
    echo JText::_(‘JACOM_CONTENT_REGISTER_TO_READ_MORE’);
    elseif ($readmore = $this->item->alternative_readmore) :
    echo $readmore;
    if ($params->get(‘show_readmore_title’, 0) != 0) :
    echo JHTML::_(‘string.truncate’, ($this->item->title), $params->get(‘readmore_limit’));
    endif;
    elseif ($params->get(‘show_readmore_title’, 0) == 0) :

    and you open file languageen-GBen-GB.tpl_ja_community_plus.ini
    JACOM_CONTENT_READ_MORE_TITLE=”Read more…”
    JACOM_CONTENT_REGISTER_READ_MORE_TITLE=”Register to read more…”

    schafer49 Friend
    #423600

    The problem remains that the Read More link for articles in a blog will not display unless the parameters are set to show either the author or the creation date.

    The solution posted by anhhv (with my comments added) was the following:

    Edit the file named templatesja_community_plushtmlcom_contentcategoryblog_item.php by going to the <p class=”readmore”> block
    and replace the line
    echo JText::_(‘COM_CONTENT_REGISTER_TO_READ_MORE’);
    with
    echo JText::_(‘JACOM_CONTENT_REGISTER_TO_READ_MORE’);
    I suspect the capitalized string should have been JACOM_CONTENT_REGISTER_READ_MORE_TITLE

    And within that same block, replace the line
    echo JText::sprintf(‘COM_CONTENT_READ_MORE_TITLE’);
    with
    [echo JText::sprintf(‘JACOM_CONTENT_READ_MORE_TITLE’);
    I suspect that the initial character “[” was a typo that we should not copy into the code.

    Then edit the file named languageen-GBen-GB.tpl_ja_community_plus.ini by appending the following two lines:
    JACOM_CONTENT_READ_MORE_TITLE=”Read more…”
    JACOM_CONTENT_REGISTER_READ_MORE_TITLE=”Register to read more…”

    I tried his solution in my installation of Joomla 1.7.2 and JA_Community_Plus 1.3.1 both as anhhv wrote it and as I suspected it should have been written, but the problem persists.

    lbridle Friend
    #423602

    Hi Anhhv and thanks for your input.

    Regrettably your suggestions didn’t help me.

    The problem remains that the Readmore will not display unless at least one other of either Author, Category , Create Date, Modify Date, Publish Date is also set to ‘Show’. And I discovered today, when either the Modify, or Publish Dates are set to show, neither of them actually shows yet the Readmore does show.

    Any other ideas?
    Thanks Larry

    schafer49 Friend
    #423616

    The solution posted 06-27-2011 12:40 PM by himang in the JA Community Plus forum at
    http://www.joomlart.com/forums/topic/read-more-does-not-show-if-disable-author-name/#post-398647
    appears to solve the problem. I am now able to show the Read More link without showing the Creation Date or Author. I am thanking himang.

    lbridle Friend
    #423619

    Thanks Schafer, I also tried out your suggestions. Sadly, got the same results.

    So the problem persists.

    The templates/ja_community_plus/html/com_content/category/blog_item.php file sure is a challenging bundle of conditional statements, I know I easily get confused.

    Anyone got any other ideas why the Readmore is dependent on other article info items?

    lbridle Friend
    #423639

    <em>@schafer49 281356 wrote:</em><blockquote>The solution posted 06-27-2011 12:40 PM by himang in the JA Community Plus forum at
    http://www.joomlart.com/forums/topic/read-more-does-not-show-if-disable-author-name/#post-398647
    appears to solve the problem. I am now able to show the Read More link without showing the Creation Date or Author. I am thanking himang.</blockquote>

    Thanks schafer49 for finding this and postin here.

    I tried this one also, but sadly no help on my site. I am getting away with just turning on Publish Date in addition to the Readmore, since for some reason it does not display even though the ‘Show Pub. Date’ is set.

    ???

    Hayden A Friend
    #423929

    <em>@lbridle 281338 wrote:</em><blockquote>Hi Anhhv and thanks for your input.

    Regrettably your suggestions didn’t help me.

    The problem remains that the Readmore will not display unless at least one other of either Author, Category , Create Date, Modify Date, Publish Date is also set to ‘Show’. And I discovered today, when either the Modify, or Publish Dates are set to show, neither of them actually shows yet the Readmore does show.

    Any other ideas?
    Thanks Larry</blockquote>

    you download file default_item.php and save it to templatesja_community_plushtmlcom_contentfeatureddefault_item.php ===> you need clean cache

    lbridle Friend
    #423944

    That’s it for me!!

    Thanks Anhhv

    In fact, its the best solutions yet. Now when all article info items are set to ‘hide’ I still get the short horizontal line and more vertical space separating each article in the blog layout, ie it looks better. Previously, with all article info items set to ‘hide’ the line was missing, and articles looked crammed up against each other.

    This also solved the Modify and Publish Date issues, ie now they display when set to Show. Previously they did not.

    Again, thanks Anhhv!
    Larry

Viewing 10 posts - 16 through 25 (of 25 total)

This topic contains 25 replies, has 8 voices, and was last updated by  lbridle 13 years, 1 month ago.

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