1
adium
Changing default from DHTML in newbb
  • 2009/5/30 0:18

  • adium

  • Just popping in

  • Posts: 99

  • Since: 2005/1/18


The default text editor in newbb is Extended DHTML, I want to change it to TinyEditor or any WYSIWYG for that matter, by default.

I found one tutorial but its for XOOPS 2.0.18 and doesn't work with 2.3.

2
tzvook
Re: Changing default from DHTML in newbb
  • 2009/5/30 1:08

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


open modules/newbb/include/plugin.php

look for:
// Set the default editor
$customConfig["editor_default"] = "";


Change to:
// Set the default editor
$customConfig["editor_default"] = "TinyEditor";

3
hipoonios
Re: Changing default from DHTML in newbb
  • 2009/5/30 6:02

  • hipoonios

  • Friend of XOOPS

  • Posts: 298

  • Since: 2005/9/24


Cool this works for me with Tinyeditor.

But I want Dhtml with xcode as default.

I've tried:

$customConfig["editor_default"] = "xcode";

But it doesn't work.
I love Xoops!

4
tzvook
Re: Changing default from DHTML in newbb
  • 2009/5/30 14:33

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Quote:

hipoonios wrote:
But I want Dhtml with xcode as default.
I've tried:
$customConfig["editor_default"] = "xcode";
But it doesn't work.


As much as I remember the Extended DHTML should be called "dhtmlext"

so try:
// Set the default editor
$customConfig["editor_default"] = "dhtmlext";

5
adium
Re: Changing default from DHTML in newbb
  • 2009/5/30 20:46

  • adium

  • Just popping in

  • Posts: 99

  • Since: 2005/1/18


I had to rename 'plugin.dist.php' to 'plugin.php' then edit it (an assumption I made from how mainfile.php works) and my tinyeditor is 'tinymce'.

Second hack I have done this week where 'tzvook' has given me the answer! You're too awesome!!! [Other issue I had] If this keeps though I am going to be stuck on XOOPS 2.3.3 forever!

6
hipoonios
Re: Changing default from DHTML in newbb
  • 2009/5/30 22:09

  • hipoonios

  • Friend of XOOPS

  • Posts: 298

  • Since: 2005/9/24


Doesn't work.

Extended DHTML and DHTML with xCode is not the same. I want the xCode because it has more options. Like the YouTube button :)
I love Xoops!

7
adium
Re: Changing default from DHTML in newbb
  • 2009/5/30 22:21

  • adium

  • Just popping in

  • Posts: 99

  • Since: 2005/1/18


Do a view source on any 'new topic' page and look where you can normally drop down to get all the codes. I don't have xcode on my site, but they do here on XOOPS and I think you're looking for 'dhtmltextarea'.

Do the view source to double check!

8
jon123
Re: Changing default from DHTML in newbb
  • 2010/12/17 8:24

  • jon123

  • Just popping in

  • Posts: 3

  • Since: 2010/12/14


Just wanted to confirm that it is in fact 'dhtmltextarea'. Thanks!

Login

Who's Online

212 user(s) are online (153 user(s) are browsing Support Forums)


Members: 0


Guests: 212


more...

Donat-O-Meter

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

Latest GitHub Commits