Jump to content

  • twitter
  • youtube
  • googleplus
  • facebook
  • rss
  • newsletter


Issue information

  • #000140

  • 0 - None Assigned

  • Fixed

  • -

  • 1.2.0


Issue Confirmations

  • Yes (0)No (0)
Photo

Calendar description parsing

Posted by Michael on 15 October 2009 - 02:16 AM

Some minor problems with some characters in the topics description. The following should be a better way to parse the description.

Manual Fix:
Open admin/applications_addon/other/ctopics/sources/ctopics.php

Find:

$this->_postClass->setPostContent

Replace With:

$this->_postClass->setPostContentPreFormatted

Find and Remove

		if ( IPSText::getTextClass( 'editor' )->method == 'rte' )
		{
			$post_contents = IPSText::getTextClass( 'bbcode' )->convertForRTE( $post_contents );
		}
		else
		{
			$post_contents = IPSText::getTextClass( 'bbcode' )->preEditParse( $post_contents );
		}

Find:

$search = array( "/%title%/", "/%author%/", "/%content%/", "/%calendar_name%/", "/%event_link%/", "/%event_date%/" );

Add ABOVE:

$event['event_title'] = str_replace( "&", "&", $event['event_title'] );


Save admin/applications_addon/other/ctopics/sources/ctopics.php

changed status to: Fixed
changed fixed-in version to: 1.2.0

Old bug but the new method should work.






0 user(s) are reading this issue

0 members, 0 guests, 0 anonymous users