11
Peekay
Re: catads
  • 2011/10/16 12:30

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


You can get the RC3 version of Catads 1.53 here on Sourceforge or from here on the Xoops Dev Forge.

There are a just a couple of small PHP notices to fix but the module works OK as far as I know. I haven't had time to update it at all this year, but I'll try and get a final version out by Christmas.

@ Satrebil
Many thx for posting that code.

@Mamba
You need to turn off debug on dev.xoops.org.

@jasXoop

Quote:
if ($xoopsModuleConfig['bbcode'] == 1) {
$text_annonce = new XoopsFormDhtmlTextArea(_MD_CATADS_TEXTE_S.'*', "ads_desc", $ads_desc);
} else {
$text_annonce = new XoopsFormTextArea(_MD_CATADS_TEXTE_S.'*', "ads_desc", $ads_desc);
} else {
$text_annonce = new ???????????????????(_MD_CATADS_TEXTE_S.'*', "ads_desc", $ads_desc);
} else {
$text_annonce = new ???????????????(_MD_CATADS_TEXTE_S.'*', "ads_desc", $ads_desc);
}


Yes, basically that is what would be needed.

There's a bit of work involved to add TinyMCE as an permanent module option because the editor is located in different places and the code to invoke it is also different depending on the version of Xoops. To keep the module usable in older versions of Xoops some version and/or file detection is also required.

When I get back, I'll take a look at getting the DHTML editor to support HTML as an option using the code posted by Satrebil as that might be a bit easier to implement.
A thread is for life. Not just for Christmas.

12
satrebil
Re: catads
  • 2011/10/16 14:17

  • satrebil

  • Just popping in

  • Posts: 15

  • Since: 2009/5/3 2


Hi,

To make the DHTML editor supports HTML code is necessary to include the code that I have indicated in the previous post and change the reading of the fields we want that support HTML before editing.

For example if we want the description field supports HTML code should replace the
$ads_desc $ads->getVar('ads_desc');

by
$ads_desc $ads->getVar('ads_desc','e');

before editing in the forms.

In version 1.53 RC3 @ Peekay says that we must modify the line 280 of file adsedit.php with the code indicated above

The same as we do in all forms and in all the fields we want that support HTML

Satrebil
(Sorry for my bad English)

Login

Who's Online

201 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 201


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