1
I downloaded on Feb 6th 2005 the weBlog Version 1.30 from Hiro Sakai
In the Post feature I found the checkbox for Private was duplicated and the Disable html checkbox was missing all together.
To fix this ... I went to the post.php and edited out 1 line.
At about line 233 you will see
Quote:
// options check box
$checkbox_tray = new XoopsFormElementTray(_BL_OPTIONS ,'
');
$checkbox = new XoopsFormCheckBox('', 'nohtml', !$entry->doHtml());
$checkbox->addOption('nohtml', _BL_DISABLEHTML);
$checkbox_tray->addElement($checkbox);
$checkbox = new XoopsFormCheckBox('', 'private', $entry->isPrivate());
$checkbox->addOption('private', _BL_PRIVATE);
$checkbox_tray->addElement($checkbox);
$blog_form->addElement($checkbox_tray);
I changed it to ...
Quote:
// options check box
$checkbox_tray = new XoopsFormElementTray(_BL_OPTIONS ,'
');
$checkbox = new XoopsFormCheckBox('', 'nohtml', $entry->doHtml());
$checkbox->addOption('nohtml', _BL_DISABLEHTML);
$checkbox_tray->addElement($checkbox);
$checkbox = new XoopsFormCheckBox('', 'private', $entry->isPrivate());
$checkbox->addOption('private', _BL_PRIVATE);
// $checkbox_tray->addElement($checkbox);
$blog_form->addElement($checkbox_tray);
and it seems to work OK and the Private checkbox shows only once. Still haven't figured out how to get the No Html box to show up too ... but its registered as checked so I guess its okay. It all seems to work OK.
on line 235 that reads
Quote:
$checkbox = new XoopsFormCheckBox('', 'nohtml', !$entry->doHtml());
that appears where is assigned if the checkbox is automatically checked off or not. If you want the box(es) checked off automatically ... leave as is. If you want the box(es) blank so the poster has to check for Private ... then remove the
! in front of "$entry->doHtml".
I am NOT really familiar with php ... but I wanted this to work right and just futzed with it trying different things ... and this is what seems to work.
Peter