Line breaks in 'Extra Info' 
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.
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'
by 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.
--------
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'
by 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
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
Do not forget if you like JEvents, why not join the CLUB! for priority support and lots of excellent plugin's. JEvents Club
-

Tonyp - Contributor
- Posts: 8707
- Joined: Tue Oct 12, 2010 9:12 pm
- Location: Isle of Man
Re: Line breaks in 'Extra Info'
by 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'
by 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);
- 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!
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!
-

Geraint - Posts: 30507
- Joined: Fri Feb 15, 2008 6:14 pm
Re: Line breaks in 'Extra Info'
by 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!
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!
-

Geraint - Posts: 30507
- Joined: Fri Feb 15, 2008 6:14 pm
Re: Line breaks in 'Extra Info'
by 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'
by 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
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
Do not forget if you like JEvents, why not join the CLUB! for priority support and lots of excellent plugin's. JEvents Club
-

Tonyp - Contributor
- Posts: 8707
- Joined: Tue Oct 12, 2010 9:12 pm
- Location: Isle of Man
8 posts
• Page 1 of 1
Return to Jevents 2.x (Free Access)
Who is online
Users browsing this forum: Google [Bot]

