J and Beyond 2013 | An International Joomla! Conference - May 31st - 2nd, 2013, Noordwijkerhout, The Netherlands
It is currently Sat May 18, 2013 12:03 pm

Line breaks in 'Extra Info'  Topic is solved

Discuss JEvents 2.x for Joomla 1.5-2.5 here - club members can use the special club forum for faster response times.
Forum rules
When requesting support, please copy and paste the 'Version information for Support Forum' from the JEvents Control Panel into your post. If you cannot see this, please enable JEvents project news within it's configuration. Also, if you get a 500 Error, Enable Joomla! Maximum Error Reporting and view the page again, you should now have a more detailed error which will help us to resolve you issue quickly.

Line breaks in 'Extra Info'

Postby TheWraith » Thu Nov 01, 2012 8:27 pm

In v1.5.5 when you entered something into the 'Extra Info' field, carriage returns were presented in the module. So, if 'Extra Info' contained this value:

--------
Line one
Line two
Line three
--------

The output in the "Latest Events Module" kept the line breaks in place. With v2.2.8 it displays like this:

"Line oneLine twoLine three"

Even if you put "<br>" or "<br />" tags into the field, v2.2.8 strips off the code and runs the multiple lines all together. We use the Extra Info to enter multi-line pieces of information. Is there any way to restore that functionality within v2.2.8? I need line breaks in my output.
TheWraith
Posts: 38
Joined: Tue Dec 14, 2010 3:18 pm

Re: Line breaks in 'Extra Info'

Postby Tonyp » Thu Nov 01, 2012 9:41 pm

In your JEvents Configuration, under Event Editing.

Set the last? option Allow unfiltered descriptions? to yes.

Regards
Tony
---------------------------------------

Do not forget if you like JEvents, why not join the CLUB! for priority support and lots of excellent plugin's. JEvents Club
User avatar
Tonyp
Contributor
Posts: 8707
Joined: Tue Oct 12, 2010 9:12 pm
Location: Isle of Man

Re: Line breaks in 'Extra Info'

Postby TheWraith » Thu Nov 01, 2012 10:43 pm

No change - but I'm using the "Use Settings Below" on my latest events module. Some setting on the module to control this?
TheWraith
Posts: 38
Joined: Tue Dec 14, 2010 3:18 pm

Re: Line breaks in 'Extra Info'

Postby Geraint » Fri Nov 02, 2012 7:22 am

in the file administrator/components/com_jevents/icalevent.php at line c. 822 you'll find
Code: Select all
      // Should we allow raw content through unfiltered
      $params = JComponentHelper::getParams(JEV_COM_COMPONENT);
replace the code after it with this (which references the extra info field)

Code: Select all
      if ($params->get("allowraw", 0))
      {
         $array['jevcontent'] = JRequest::getString("jevcontent", "", "POST", JREQUEST_ALLOWRAW);
         $array['extra_info'] = JRequest::getString("extra_info", "", "POST", JREQUEST_ALLOWRAW);
      }
      // convert nl2br if there is no HTML
      if (strip_tags($array['jevcontent'] ) == $array['jevcontent'] ){
         $array['jevcontent']  = nl2br($array['jevcontent'] );
      }
      if (strip_tags($array['extra_info'] ) == $array['extra_info'] ){
         $array['extra_info']  = nl2br($array['extra_info'] );
      }
------------
JEvents club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits.

Join the JEvents club today!
User avatar
Geraint
Posts: 30507
Joined: Fri Feb 15, 2008 6:14 pm

Re: Line breaks in 'Extra Info'  Topic is solved

Postby TheWraith » Mon Nov 05, 2012 4:07 pm

Thank you!
TheWraith
Posts: 38
Joined: Tue Dec 14, 2010 3:18 pm

Re: Line breaks in 'Extra Info'

Postby Geraint » Tue Nov 06, 2012 8:37 am

By the way these changes will be in JEvents 3.0
------------
JEvents club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits.

Join the JEvents club today!
User avatar
Geraint
Posts: 30507
Joined: Fri Feb 15, 2008 6:14 pm

Re: Line breaks in 'Extra Info'

Postby TheWraith » Tue Nov 06, 2012 4:26 pm

I'm not a fan of Joomla! 2.5 and I've several sites that I'm keeping at 1.5 as long as I can. So, I won't be able to leverage JEvents 3.0 as it's my understanding it won't run on 1.5.
TheWraith
Posts: 38
Joined: Tue Dec 14, 2010 3:18 pm

Re: Line breaks in 'Extra Info'

Postby Tonyp » Tue Nov 06, 2012 5:37 pm

Hello,

Correct. Joomla! 1.5 is no longer support by Joomla! so any security breaches and your at risk. There are so many advantages for going to 2.5.

Regards
Tony
---------------------------------------

Do not forget if you like JEvents, why not join the CLUB! for priority support and lots of excellent plugin's. JEvents Club
User avatar
Tonyp
Contributor
Posts: 8707
Joined: Tue Oct 12, 2010 9:12 pm
Location: Isle of Man


Return to Jevents 2.x (Free Access)

Who is online

Users browsing this forum: Google [Bot]

Main Menu

User Menu

Hosted By


Who is online

In total there is 1 user online :: 1 registered and 0 hidden (based on users active over the past 5 minutes)
Most users ever online was 94 on Tue Sep 01, 2009 12:33 am

Users browsing this forum: Google [Bot]

Login Form