Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 06:21 pm EST
Geeklog Forums
Add "Body Text" to submission form
Status: offline
Flernk
Forum User
Chatty
Registered: 07/31/03
Posts: 46
I want to have both "Intro Text" and a "Body Text" fields on my submit form, but I don't want the "Body Text" to be required. Has anyone figured this out?
I tried creating a storysubmit_advanced.thtml (and updating my config file to see it), but it didn't work. When I add a Body Text area it is not only required, but it returns as the intro text.
Here is my code for storysubmit_advanced.thtml. All I added was a "Body Text" area to the already existing storysubmit.thtml file.
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td align="right"><b>{lang_username}:</b></td>
<td>{story_username} [ <a href="{status_url}">{lang_loginout}</a>{seperator}{create_account} ]</td>
</tr>
<tr>
<td align="right"><b>{lang_title}:</b></td>
<td><input type="text" size="36" maxlength="96" name="title" value="{story_title}"></td>
</tr>
<tr>
<td align="right"><b>{lang_topic}:</b></td>
<td>
<select name=tid>
{story_topic_options}
</select>
</td>
</tr>
<tr valign="top">
<td align="right"><b>{lang_story}:</b></td>
<td><textarea name="introtext" cols="45" rows="12" wrap="virtual">{story_introtext}</textarea></td>
</tr>
<tr valign="top">
<td align="right"><b>More:</b></td>
<td><textarea name="introtext" cols="45" rows="12" wrap="virtual">{story_bodytext}</textarea></td>
</tr>
<tr valign="top">
<td align="right"><b>{lang_postmode}:</b></td>
<td>
<select name="postmode">
{story_postmode_options}
</select>
<br><span class="warningsmall">{allowed_html}</span>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<input type="hidden" name="type" value=story>
<input type="hidden" name="uid" value="{story_uid}">
<input type="hidden" name="sid" value="{story_sid}">
<input type="hidden" name="date" value="{story_date}">
{save_button}
<input name="mode" type="submit" value="{lang_preview}">
</td>
</tr>
</table>
</form>
I tried creating a storysubmit_advanced.thtml (and updating my config file to see it), but it didn't work. When I add a Body Text area it is not only required, but it returns as the intro text.
Here is my code for storysubmit_advanced.thtml. All I added was a "Body Text" area to the already existing storysubmit.thtml file.
Text Formatted Code
<form action="{site_url}/submit.php" method="post"><table border="0" cellspacing="0" cellpadding="3">
<tr>
<td align="right"><b>{lang_username}:</b></td>
<td>{story_username} [ <a href="{status_url}">{lang_loginout}</a>{seperator}{create_account} ]</td>
</tr>
<tr>
<td align="right"><b>{lang_title}:</b></td>
<td><input type="text" size="36" maxlength="96" name="title" value="{story_title}"></td>
</tr>
<tr>
<td align="right"><b>{lang_topic}:</b></td>
<td>
<select name=tid>
{story_topic_options}
</select>
</td>
</tr>
<tr valign="top">
<td align="right"><b>{lang_story}:</b></td>
<td><textarea name="introtext" cols="45" rows="12" wrap="virtual">{story_introtext}</textarea></td>
</tr>
<tr valign="top">
<td align="right"><b>More:</b></td>
<td><textarea name="introtext" cols="45" rows="12" wrap="virtual">{story_bodytext}</textarea></td>
</tr>
<tr valign="top">
<td align="right"><b>{lang_postmode}:</b></td>
<td>
<select name="postmode">
{story_postmode_options}
</select>
<br><span class="warningsmall">{allowed_html}</span>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<input type="hidden" name="type" value=story>
<input type="hidden" name="uid" value="{story_uid}">
<input type="hidden" name="sid" value="{story_sid}">
<input type="hidden" name="date" value="{story_date}">
{save_button}
<input name="mode" type="submit" value="{lang_preview}">
</td>
</tr>
</table>
</form>
4
7
Quote
Status: offline
Blaine
Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
Adding a second textarea "Bodytext" to the general user submit story feature would require template changes (not so bad) but also code changes as it is currently only expecting a single textarea field today for the content.
Geeklog components by PortalParts -- www.portalparts.com
Geeklog components by PortalParts -- www.portalparts.com
7
6
Quote
All times are EST. The time is now 06:21 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content