Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Small issue with AutoReadMore
Pages: [1]   Go Down
  Print  
Author Topic: Small issue with AutoReadMore  (Read 1577 times)
0 Members and 1 Guest are viewing this topic.
eriwet
Newbie
*

Karma: 0
Offline Offline

Posts: 1


« on: May 21, 2010, 21:10:46 »

The very nice pugin AutoReadMore does just what its name implies. It automatically creates a read more inke after a set numer of characters.

It works with Jcomments installed and activated but only if Read more style to "Joomla" in the Jcomments plugin settings. In my opinion the Read more style "Jcomments" is much nicer but this makes the read more link disappear for all but the first article.

Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: May 21, 2010, 21:15:51 »

JComments doesn't have any functions to display readmore after N characters and only replace Joomla's readmore link with it's own. So I don't see any solutuon for your problem. Only to switch Readmore style to 'Joomla'...
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
suddenci
Newbie
*

Karma: 0
Offline Offline

Posts: 1


« Reply #2 on: August 10, 2010, 23:11:53 »

Hi,

I had the same problem: I wanted the ReadMore link style offered by JComment but I want to use also AutoReadMore to save some posting time. I 'd like to offer my solution.

The idea is simple. AutoReadMore doesn't create real ReadMore cut, it displays just a small part of the article. Sowe can let it do its work and force JComment to display a false ReadMore link. It is a false one because we didn't put any ReadMore in our article, it is in fact a simple to-detailed-view link.

To do that let's tweak th plugins/content/jcomment.php file

- line 134 replace
Code:
if (($params->get('show_readmore') == 0) || (@$article->readmore == 0)) {
by
Code:
if ($params->get('show_readmore') == 0) {

-line 207 replace
Code:
if (isset($params)) {
by
Code:
if (!isset($params)) {
. Here I don't know why isset($params) is true with AutoReadMore activated and false whithout AutoReadMore... If a developper or a more competent guy can explain to me... Anyway, our problem is solved now !

++
Suddenci
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Small issue with AutoReadMore
 
Jump to: