Keyword

Hide Image/Force Word Limit Error

More
14 years 9 months ago #25120 by trcmf
Hide Image/Force Word Limit Error was created by trcmf
I just installed the Simple RSS Feed Reader.  It works great and I love it.  I am having one small problem.  I have the hide images yes button clicked, this works fine until I force the word limit.  Once the word limit is forced my pictures are no longer hidden.  Any suggestions?  I am using joomla 1.5.9 and php5.

Thanks in advance for the help.

Please Log in or Create an account to join the conversation.

  • Javier Castillo Marín
  • Javier Castillo Marín's Avatar
  • Offline
  • New Member
More
14 years 9 months ago #25121 by Javier Castillo Marín
Replied by Javier Castillo Marín on topic Re: Hide Image/Force Word Limit Error
There is an error in the code. If the word limit is active, the rest of the parsing options are ignored.

To fix it:
Edit the file mod_jw_srfr.php, lines 208 and 209

You will see this:
	// Word limitation
	if ($srfr_fi_words) {
		$introtext = word_limiter($item->get_description(),$srfr_fi_words);
		$fulltext = word_limiter($item->get_content(),$srfr_fi_words);
	}

Change it for this:
	// Word limitation
	if ($srfr_fi_words) {
		$introtext = word_limiter($introtext,$srfr_fi_words);
		$fulltext = word_limiter($fulltext,$srfr_fi_words);
	}

It fixes the problem. If you take a look the lines 189-210 you'll understand the changes.
Cheers!

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum