1
jrwr
HTML in Comments
  • 2009/1/26 20:44

  • jrwr

  • Just popping in

  • Posts: 6

  • Since: 2009/1/20


How would i enable HTML in comments? I'm doing Approval only for comments, but people might want to post videos in there comments (as feedback)

2
ghia
Re: HTML in Comments
  • 2009/1/26 23:50

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


There are two ways: extend the dhtml with the hack for inserting movies or replace the editor with a wysiwig editor.

3
jrwr
Re: HTML in Comments
  • 2009/1/27 4:53

  • jrwr

  • Just popping in

  • Posts: 6

  • Since: 2009/1/20


All seem well.. but none will work as far as i can see... as im using the tinyMCE editor hacked into XOOPS (Attaches to ANY form that uses DHTML editor before

4
ghia
Re: HTML in Comments
  • 2009/2/7 0:12

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


For tinymce you need to add the object and embed tags as allowed tags in the configuration.

5
jrwr
Re: HTML in Comments
  • 2009/2/8 16:41

  • jrwr

  • Just popping in

  • Posts: 6

  • Since: 2009/1/20


where is this config located at?

6
ghia
Re: HTML in Comments
  • 2009/2/8 17:52

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


You can edit /class/xoopseditors/tinymce/settings.php
Or try to change
$ret .= '
                    tinymceload : "1"});
                '
.$callback.'

at the end of tinymce.php to
$ret .= '
extended_valid_elements : "iframe[src|width|height|name|align]",
                     tinymceload : "1"});
                '
.$callback.'

The example is for adding an iframe tag.


Login

Who's Online

411 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 411


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits