7
Mmmm seems that there is no template for the submit form. To add a Extended Text textarea you must modify the storyform.inc.php and the submit.php file, as follows:
-- FILE storyform.inc.php
-- Line 92:
if ($approveprivilege) {
-- DELETE
-- Line 100:
Find the matching }
-- DELETE
-- FILE submit.php
-- Line 217:
$story->setBodytext($_POST['bodytext']);
-- MOVE OUT OF:
if {}
-- Line 254:
$bodytext = $story->bodytext("InForm");
-- MOVE OUT OF:
if {}
-- Line 264:
if ($approveprivilege) {
-- DELETE
-- Line 267:
Find the matching }
-- DELETE
-- Line 343:
if (isset($_POST['bodytext'])) {
$story->setBodytext($_POST['bodytext']);
} else {
$story->setBodytext(' ');
}
-- MOVE OUT OF:
if {}
Also, if you want (like me) to make the "scoop" area smaller than "extended text", you can modify storyform.inc.php:
-- Line 87:
$editor=news_getWysiwygForm(_NW_THESCOOP, 'hometext', $hometext, 15, 60, 'hometext_hidden');
-- REPLACE WITH
$editor_configs['name'] ='hometext';
$editor_configs['value'] = $hometext;
$editor_configs['rows'] = 15;
$editor_configs['cols'] = 60;
$editor_configs['width'] = '100%';
$editor_configs['height'] = '200px';
$editor=new XoopsFormEditor(_NW_THESCOOP, getmoduleoption('form_options'), $editor_configs, $nohtml=false, $onfailure="dhtmltextarea");
NOTE TO NEWS 1.4 DEVS:
I was forced to use 2.2 framework to acomplish this, because I was unable to alter the textarea height using your own function. Seems that even when there are values for rows and cols, they become static later in the function, (line 169 of functions.php), WHY?