I am trying to allow users to publish articles to a category, but all the information they enter ends up below a page break, which is ridiculous and makes article submit useless unless I manually go into the back-end article editor and remove the page break for every article. I found a few posts about this like this one: http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=2&t=65255&p=263922&hilit=remove+page+break#p263922 and also tried putting my input into the intro text field, but this only caused no output at all to the article. I have had to compile the form feilds to be published in a single article and this seems to prevent using Intro Text Field to be used.
I have used this code in the custom code action:
<?php
$order = array("\r\n", "\n", "\r");
$replace = '<br />';
$form->data['benefit_exp_1'] = str_replace($order, $replace, $form->data['benefit_exp_1']);
$form->data['fulltext'] = "
<h3>Current Reader:</h3>{$form->data['text_0']}
<h3>I Finished at English Page Number:</h3> {$form->data['text_1']}
<h3>I Finished at Gurmukhi Page Number:</h3>{$form->data['text_2']}
<h3>The Next Reading Should Start With the Heading:</h3>{$form->data['text_3']}
<h3>And The First Line Is:</h3><br />{$form->data['text_4']}
";
?>
Any help would be appreciated, thank you for your time.
Hargo
I have used this code in the custom code action:
<?php
$order = array("\r\n", "\n", "\r");
$replace = '<br />';
$form->data['benefit_exp_1'] = str_replace($order, $replace, $form->data['benefit_exp_1']);
$form->data['fulltext'] = "
<h3>Current Reader:</h3>{$form->data['text_0']}
<h3>I Finished at English Page Number:</h3> {$form->data['text_1']}
<h3>I Finished at Gurmukhi Page Number:</h3>{$form->data['text_2']}
<h3>The Next Reading Should Start With the Heading:</h3>{$form->data['text_3']}
<h3>And The First Line Is:</h3><br />{$form->data['text_4']}
";
?>
Any help would be appreciated, thank you for your time.
Hargo