1
hnic_spanks
removing message icons, options etc.

how do i remove the options like "message icon", "enable smiley", "enable XOOPS code" from the comment-form? i want to keep it simple for the visitors and those are kinda useless

2
Phiu-x
Re: removing message icons, options etc.
  • 2007/10/24 14:45

  • Phiu-x

  • Just popping in

  • Posts: 1

  • Since: 2007/10/24


Here is how to do it :


Open this file in your favorite editor: (XOOPS_ROOT_PATH)/xoops/htdocs/include/comment_form.php

look for these lines (around line 86 in the file) :

----
$smiley_checkbox = new XoopsFormCheckBox('', 'dosmiley', $dosmiley);

$smiley_checkbox->addOption(1, _CM_DOSMILEY);

$option_tray->addElement($smiley_checkbox);

$xcode_checkbox = new XoopsFormCheckBox('', 'doxcode', $doxcode);

$xcode_checkbox->addOption(1, _CM_DOXCODE);

$option_tray->addElement($xcode_checkbox);

$br_checkbox = new XoopsFormCheckBox('', 'dobr', $dobr);

$br_checkbox->addOption(1, _CM_DOAUTOWRAP);

$option_tray->addElement($br_checkbox);
----




Now comment out (by adding // in front of the options you don't need) like this :



$smiley_checkbox = new XoopsFormCheckBox('', 'dosmiley', $dosmiley);

$smiley_checkbox->addOption(1, _CM_DOSMILEY);

//$option_tray->addElement($smiley_checkbox);

$xcode_checkbox = new XoopsFormCheckBox('', 'doxcode', $doxcode);

$xcode_checkbox->addOption(1, _CM_DOXCODE);

//$option_tray->addElement($xcode_checkbox);

$br_checkbox = new XoopsFormCheckBox('', 'dobr', $dobr);

$br_checkbox->addOption(1, _CM_DOAUTOWRAP);

$option_tray->addElement($br_checkbox);



There I disabled the Smileys and XoopsCode check boxes.

On a side note, the (XOOPS_ROOT_PATH)/xoops/htdocs/include/ folder is where the various forms used by the XOOPS system are defined. It worth a look if you need to modify other forms (register,notification,etc).

Hope it helps!

Login

Who's Online

357 user(s) are online (268 user(s) are browsing Support Forums)


Members: 0


Guests: 357


more...

Donat-O-Meter

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

Latest GitHub Commits