HTML, javascript removed from Event Description
JEvents 2.0 was launched over 2 years ago and the latest stable version is version 2.2 which will run on Joomla 1.5 and Joomla 2.5. JEvents 1.5 is therefore no longer actively supported - you should upgrade to JEvents 2.2+ as soon as possible.
Forum rules
Please include as much detail in any test or bug reports for JEvents 1.5 as possible.
First of all, check if you are running the latest available version of Joomla! and JEvents. Posts for issues, where both systems are not updated, will be ignored.
We need the following at least:
* PHP version (e.g. 5.2.5). Note: Support for PHP4 is discontinued.
* Joomla! version
* JEvents version
* Web Server software (Apache or IIS with version number if possible)
* Server Operating system (e.g. Linux, Windows, Solaris, Darwin ...)
* Database version
* memory_limit from your phpinfo
* Web browser and version
Please enable error reporting and include any error messages in your posting. You do this via the Joomla Configuration - set "error reporting" to "maximum" on the Server tab.
Finally, please describe the steps required to recreate the problem and also please enable error reporting and give us any error messages generated.
Please include as much detail in any test or bug reports for JEvents 1.5 as possible.
First of all, check if you are running the latest available version of Joomla! and JEvents. Posts for issues, where both systems are not updated, will be ignored.
We need the following at least:
* PHP version (e.g. 5.2.5). Note: Support for PHP4 is discontinued.
* Joomla! version
* JEvents version
* Web Server software (Apache or IIS with version number if possible)
* Server Operating system (e.g. Linux, Windows, Solaris, Darwin ...)
* Database version
* memory_limit from your phpinfo
* Web browser and version
Please enable error reporting and include any error messages in your posting. You do this via the Joomla Configuration - set "error reporting" to "maximum" on the Server tab.
Finally, please describe the steps required to recreate the problem and also please enable error reporting and give us any error messages generated.
HTML, javascript removed from Event Description
by ghhsa » Wed May 26, 2010 6:07 pm
Hello,
I've just installed JEvents 1.5.4 on Joomla 1.5.17 and I think it's ideal for my needs. However, I'm not able to include javascript code such as "onclick" in the event description inside links. For example, the onclick in <a href="gohere.com" onclick="window.open('http://gohere.com')">Go</a> disappears.
I'm using the JCE editor. I'm creating the event as the super-admin. I've confirmed that my filter parameters in the Articles allows me to include code such as "onclick" and "onmouseover" in a Joomla article.
However, when entering code in an JEvents description via the "Edit Code" function in JCE and saving, something is stripping the javascript. Same issue appears in tinyMCE and "no editor". I believe I've narrowed the issue down to something in JEvents.
(Note that JCE has a feature that allows insertion of "onclick" into descriptions, but the event is placed inside the p tag. That won't work for me.)
All suggestions helpful.
Joe
I've just installed JEvents 1.5.4 on Joomla 1.5.17 and I think it's ideal for my needs. However, I'm not able to include javascript code such as "onclick" in the event description inside links. For example, the onclick in <a href="gohere.com" onclick="window.open('http://gohere.com')">Go</a> disappears.
I'm using the JCE editor. I'm creating the event as the super-admin. I've confirmed that my filter parameters in the Articles allows me to include code such as "onclick" and "onmouseover" in a Joomla article.
However, when entering code in an JEvents description via the "Edit Code" function in JCE and saving, something is stripping the javascript. Same issue appears in tinyMCE and "no editor". I believe I've narrowed the issue down to something in JEvents.
(Note that JCE has a feature that allows insertion of "onclick" into descriptions, but the event is placed inside the p tag. That won't work for me.)
All suggestions helpful.
Joe
- ghhsa
- Posts: 2
- Joined: Wed May 26, 2010 5:46 pm
Re: HTML, javascript removed from Event Description
by Geraint » Thu May 27, 2010 9:52 am
There is a config option to allow this in JEvents 1.5.5 in the meantime search for "JREQUEST_ALLOWHTML" and change it to "JREQUEST_ALLOWRAW" in the file administrator/components/com_jevents/controllers/icalevent.php
------------
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: HTML, javascript removed from Event Description
by ghhsa » Thu May 27, 2010 2:03 pm
That fixed the issue. Thanks!
Joe
Joe
- ghhsa
- Posts: 2
- Joined: Wed May 26, 2010 5:46 pm
Re: HTML, javascript removed from Event Description
by Ruggero » Fri Mar 30, 2012 10:24 am
@Geraint
I'm having the exact same problem - my HTML is being stripped from the description in the module, but I don't want it to do that.
Obviously I'm running a much newer version of JEvents, so I'm guessing the option to allow this has been already added?
I can't find it - where do I set this option please?
Thanks in advance.
I'm having the exact same problem - my HTML is being stripped from the description in the module, but I don't want it to do that.
Obviously I'm running a much newer version of JEvents, so I'm guessing the option to allow this has been already added?
I can't find it - where do I set this option please?
Thanks in advance.
- Ruggero
- Posts: 4
- Joined: Fri Feb 17, 2012 3:26 pm
Re: HTML, javascript removed from Event Description
by Tonyp » Fri Mar 30, 2012 11:58 am
There is an option in the Edit Event tab of the JEvents Configuration which says:
Allow unfiltered descriptions.
Regards
Tony
Allow unfiltered descriptions.
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: 8706
- Joined: Tue Oct 12, 2010 9:12 pm
- Location: Isle of Man
Re: HTML, javascript removed from Event Description
by Ruggero » Mon Apr 02, 2012 11:11 am
Thanks,
I found this option under JEvents -> Configuration -> Component tab.
However, toggling this option has not changed the fact that the module "Latest Events" is still stripping out the HTML.
Any ideas?
I found this option under JEvents -> Configuration -> Component tab.
However, toggling this option has not changed the fact that the module "Latest Events" is still stripping out the HTML.
Any ideas?
- Ruggero
- Posts: 4
- Joined: Fri Feb 17, 2012 3:26 pm
Re: HTML, javascript removed from Event Description
by Tonyp » Mon Apr 02, 2012 12:04 pm
Hellom
The Latest Events module does not strip HTML out?
What issue are you havinge exactly?
The Latest Events module does not strip HTML out?
What issue are you havinge exactly?
---------------------------------------
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: 8706
- Joined: Tue Oct 12, 2010 9:12 pm
- Location: Isle of Man
Re: HTML, javascript removed from Event Description
by Ruggero » Mon Apr 02, 2012 12:42 pm
Simple. I have a Latest Events module running on my website, and I want the HTML for the event description to be included in the output. Instead, right now it's stripping out the HTML from the event description.
I don't want it to do that. I'm using the tag {content(100|...)}.
I've just realised that the shortening of the description may pose a problem if I'm not stripping out the HTML tags, but for argument's sake, is it possible to prevent it from removing the html tags from the content?
Thanks.
I don't want it to do that. I'm using the tag {content(100|...)}.
I've just realised that the shortening of the description may pose a problem if I'm not stripping out the HTML tags, but for argument's sake, is it possible to prevent it from removing the html tags from the content?
Thanks.
- Ruggero
- Posts: 4
- Joined: Fri Feb 17, 2012 3:26 pm
Re: HTML, javascript removed from Event Description
by Geraint » Mon Apr 02, 2012 2:57 pm
You can't safely truncate the description without removing the HTML tags otherwise:
1. the tags count towards your letter/word count
2. you will probably end up with unbalanced/illegal HTML e.g. a table that isn't closed etc.
1. the tags count towards your letter/word count
2. you will probably end up with unbalanced/illegal HTML e.g. a table that isn't closed etc.
------------
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: HTML, javascript removed from Event Description
by Ruggero » Mon Apr 02, 2012 4:14 pm
Hi Geraint,
I'm aware of this - in fact I pointed that out in my own reply higher up. I do understand the risk in truncating content which includes html tags, and I therefore also understand why you're stripping the HTML.
Nonetheless, my question remains: is there a way? If not, please direct me to the file and line number(s) in module the code which deals with stripping the HTML and displaying the content.
My thoughts are to still strip the HTML, but to allow specific tags (and exclude them from the crop count), such as p, br, strong etc.
I'm aware of this - in fact I pointed that out in my own reply higher up. I do understand the risk in truncating content which includes html tags, and I therefore also understand why you're stripping the HTML.
Nonetheless, my question remains: is there a way? If not, please direct me to the file and line number(s) in module the code which deals with stripping the HTML and displaying the content.
My thoughts are to still strip the HTML, but to allow specific tags (and exclude them from the crop count), such as p, br, strong etc.
- Ruggero
- Posts: 4
- Joined: Fri Feb 17, 2012 3:26 pm
11 posts
• Page 1 of 2 • 1, 2
Return to JEvents 1.5 (No longer actively supported)
Who is online
Users browsing this forum: Google [Bot]

