Hi. I have been trying to get SubmitContentForm to work for my site.
Below is the HTML Code that is a Prototype of the Content I want to create for my site.
Below is the CODE from the "FORM CODE" of Chronoforms: (I used the wizard and just copy/pasted it above the ContentSubmitForm)
Below is the code for "On Submit code - after sending email:"
-------------
NOTE: I am using Joomla 1.5.10, text editor off, and the paid latest version of Chronoforms.
The idea is the use a bit of PHP to take the answers from the form and input it where the answers go in the HTML code above.
<?php echo "Hotel Name: " . $bla . "."; ?>
NOTE: I am getting a completely UNLABELLED, UNCATEGORIZED, CORRECT SECTION, BUT OTHERWISE COMPLETELY BLANK ARTICLE.
-------------
How to do I get the HTML code and the PHP echo statements into the text editor 'fulltext' or whatever, so that I can accomplish this?
Thanks.
-DK
Below is the HTML Code that is a Prototype of the Content I want to create for my site.
<!-- begin of hotellistingdiv -->
<div id="hotellistingdiv">
<!-- link -->
<a href="mon-hotel/hotel-exemple.html">
<!-- fldr name --><!--image --><!--ALT = NAME OF HOTEL --> <!--Title = NAME OF HOTEL-->
<img src="images/Hotels/example/listingpic.jpg" alt="Example Hotel" title="Example Hotel" width="118" height="118" lang="fr" /></a>
<h4>
<!-- link --> <!--Name of Hotel--> <!-- hotel categorie -->
<a href="mon-hotel/hotel-exemple.html"><span class="pinkltrs">Mon Hotel –</span></a> 4*</h4>
<!-- address line -->
1 Rue d’Argentine, Paris 16ème<br />
<!--Intro paragraph -->
<p>C’est derrière la façade d’une maison de ville traditionnelle que se cache le Mon Hôtel, élégant boutique hôtel design. Cet hôtel est une adresse raffinée et intime, privilégiée de part son emplacement entre les Champs-Élysées et l’Arc de Triomphe.<br />
</p>
</div>
<!-- end of hotellistingdiv -->
Below is the CODE from the "FORM CODE" of Chronoforms: (I used the wizard and just copy/pasted it above the ContentSubmitForm)
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Hotel Name</label>
<input class="cf_inputbox required" maxlength="150" size="50" title="" id="text_0" name="hotelname" type="text" />
<a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" src="components/com_chronocontact/css/images/tooltip.png"/></a>
<div class="tooltipdiv">Hotel Name :: Please enter the name of the Hotel</div>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Folder Name of Images</label>
<input class="cf_inputbox required" maxlength="150" size="50" title="" id="text_1" name="fldrname" type="text" />
<a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" src="components/com_chronocontact/css/images/tooltip.png"/></a>
<div class="tooltipdiv">Folder Name of Images :: Please enter the name exactly of the folder for the images</div>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_fileupload">
<label class="cf_label" style="width: 150px;">Upload Hotel Listing Image</label>
<input class="cf_fileinput cf_inputbox required" title="" size="20" id="file_2" name="listingimg" type="file" />
<a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" src="components/com_chronocontact/css/images/tooltip.png"/></a>
<div class="tooltipdiv">Upload Hotel Listing Image :: Please upload the image for the Hotel Listing</div>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_radiobutton">
<label class="cf_label" style="width: 150px;">Hotel Category</label>
<div class="float_left">
<input value="Hôtel 4-étoiles" title="" class="radio validate-one-required" id="radio00" name="radio0" type="radio" />
<label for="radio00" class="radio_label">Hôtel 4-étoiles</label>
<br />
<input value="Hôtel 5-étoiles" title="" class="radio validate-one-required" id="radio01" name="radio0" type="radio" />
<label for="radio01" class="radio_label">Hôtel 5-étoiles</label>
<br />
<input value="Boutique Hôtel" title="" class="radio validate-one-required" id="radio02" name="radio0" type="radio" />
<label for="radio02" class="radio_label">Boutique Hôtel</label>
<br />
</div>
<a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" src="components/com_chronocontact/css/images/tooltip.png"/></a>
<div class="tooltipdiv">Hotel Category :: Please choose one category for the hotel</div>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Hotel Address</label>
<input class="cf_inputbox required" maxlength="150" size="50" title="" id="text_4" name="address" type="text" />
<a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" src="components/com_chronocontact/css/images/tooltip.png"/></a>
<div class="tooltipdiv">Hotel Address :: Please enter the address as you would like it to appear</div>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textarea">
<label class="cf_label" style="width: 150px;">Intro Paragraph</label>
<textarea class="cf_inputbox required" rows="4" id="text_5" title="" cols="50" name="intropara"></textarea>
<a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" src="components/com_chronocontact/css/images/tooltip.png"/></a>
<div class="tooltipdiv">Intro Paragraph :: Please type in the introduction paragraph</div>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_button">
<input value="Submit" name="button_6" type="submit" /><input type="reset" value="Reset"/>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item"><div class="form_element cf_heading"><h1 id="" class="cf_text">Got a story ? Submit it!</h1></div><div class="clear"> </div></div><div class="form_item"><div class="form_element cf_text"><span class="cf_text">With ChronoForms V3.0 out, new possibilities are achievable, using this form, users can submit their content to the chronoengine.com website! =)</span></div><div class="clear"> </div></div><div class="form_item"><div class="form_element cf_heading"><h3 id="" class="cf_text">Please submit something meaningful or it will be deleted, no "blah blah" text or so!</h3></div><div class="clear"> </div></div><div class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Title:</label><input class="cf_inputbox required" maxlength="150" size="30" id="text_5" name="title" type="text"><a onclick="return false;" class="tooltiplink"><img src="components/com_chronocontact/css/images/tooltip.png" class="tooltipimg" width="16" border="0" height="16"></a><div class="tooltipdiv">Title: :: Your story title please!</div></div><div class="clear"> </div></div><div class="form_item"><div class="form_element cf_textarea" style="width:600px;"><label class="cf_label">Story body:</label>
<?php
$editor =& JFactory::getEditor();
echo $editor->display( 'fulltext', '' , '80%', '350', '55', '20', false ) ;
?>
</div><div class="clear"> </div></div><div class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Your name:</label><input class="cf_inputbox required validate-alpha" maxlength="15" size="30" id="text_7" name="created_by_alias" type="text"><a onclick="return false;" class="tooltiplink"><img src="components/com_chronocontact/css/images/tooltip.png" class="tooltipimg" width="16" border="0" height="16"></a><div class="tooltipdiv">Your name: :: Your nickname as you like it to appear with the story!</div></div><div class="clear"> </div></div><div class="form_item"><div class="form_element cf_captcha"><label class="cf_label">Enter code as shown</label><span>{imageverification}</span></div><div class="clear"> </div></div><div class="form_item"><div class="form_element cf_button"><input value="Submit Story" name="undefined" type="submit"></div><div class="clear"> </div></div>
Below is the code for "On Submit code - after sending email:"
<p><span style="color: #0000ff;"><strong>Thank you for submitting your story, we will review it shortly and if approved it will be published!</strong></span></p>
<p><strong>Cheers</strong></p>
<p><span style="text-decoration: underline;"><strong>ChronoEngine.com team!</strong></span></p>
<?php
$_POST['catid'] = '1';
$_POST['id'] = '';
$_POST['sectionid'] = '1';
$_POST['state'] = '0';
$_POST['created'] = date("Y-m-d H:i:s");
?>
-------------
NOTE: I am using Joomla 1.5.10, text editor off, and the paid latest version of Chronoforms.
The idea is the use a bit of PHP to take the answers from the form and input it where the answers go in the HTML code above.
<?php echo "Hotel Name: " . $bla . "."; ?>
NOTE: I am getting a completely UNLABELLED, UNCATEGORIZED, CORRECT SECTION, BUT OTHERWISE COMPLETELY BLANK ARTICLE.
-------------
How to do I get the HTML code and the PHP echo statements into the text editor 'fulltext' or whatever, so that I can accomplish this?
Thanks.
-DK