-
AuthorPosts
-
Phill Moderator
Phill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
October 31, 2011 at 4:05 pm #422612Did you try my initial solution? Also, what versions of Joomla, the template and the jat3 plugin are you running?
November 1, 2011 at 1:12 am #422661I 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 FriendHayden A
- Join date:
- April 2010
- Posts:
- 282
- Downloads:
- 0
- Uploads:
- 20
- Thanked:
- 54 times in 53 posts
November 7, 2011 at 4:09 am #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…”November 7, 2011 at 10:19 pm #423600The 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_TITLEAnd 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.
November 7, 2011 at 10:44 pm #423602Hi 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 LarryNovember 8, 2011 at 1:27 am #423616The 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.November 8, 2011 at 2:07 am #423619Thanks 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?
November 8, 2011 at 6:23 am #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 FriendHayden A
- Join date:
- April 2010
- Posts:
- 282
- Downloads:
- 0
- Uploads:
- 20
- Thanked:
- 54 times in 53 posts
November 10, 2011 at 2:54 am #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
1 user says Thank You to Hayden A for this useful post
November 10, 2011 at 4:28 am #423944That’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 -
AuthorPosts
This topic contains 25 replies, has 8 voices, and was last updated by lbridle 13 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum