8
I have mad the change in the ads.phpas follows:
function CatadsAds()
{
$this->XoopsObject();
$this->initVar('ads_id', XOBJ_DTYPE_INT, null, false);
$this->initVar('cat_id', XOBJ_DTYPE_INT, null, true);
$this->initVar('ads_title', XOBJ_DTYPE_TXTBOX, null, true, 100);
$this->initVar('ads_type', XOBJ_DTYPE_TXTBOX, null, true, 40);
$this->initVar('ads_desc', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('ads_tags', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('ads_video', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('price', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('monnaie', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('price_option', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('email', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('uid', XOBJ_DTYPE_INT, 0, false);
$this->initVar('phone', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('pays', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('region', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('departement', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('town', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('codpost', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('created', XOBJ_DTYPE_INT, 0, false);
$this->initVar('published', XOBJ_DTYPE_INT, 0, false);
$this->initVar('expired', XOBJ_DTYPE_INT, 0, false);
$this->initVar('expired_mail_send', XOBJ_DTYPE_INT, 0, false);
$this->initVar('view', XOBJ_DTYPE_INT, 0, false);
$this->initVar('notify_pub', XOBJ_DTYPE_INT, 0, false);
$this->initVar('poster_ip', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('contact_mode', XOBJ_DTYPE_INT, 0, false);
$this->initVar('countpub', XOBJ_DTYPE_INT, 0, false);
$this->initVar('suspend', XOBJ_DTYPE_INT, 0, false);
//add v1.30
$this->initVar('waiting', XOBJ_DTYPE_INT, 0, false);
//add v1.40
$this->initVar('photo0', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('photo1', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('photo2', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('photo3', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('photo4', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('photo5', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('thumb', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('dohtml', XOBJ_DTYPE_INT, 1, false);
}
What is the correct syntax to have the editor as a choice. Does it need to be modified in each of the forms mentioned earlier? Thanks again!
// Formulaire avec ou sans bbcodes
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);
}