Need help in making article submit page for phpLD

Discussion in 'HTML & Website Design' started by jminscoe, Mar 29, 2007.

  1. #1
    I am trying to make an article submit page <b> you can see it what I have so far here<b>
    http://www.ahealthylifestyle4u.com/test/artsubmit.php It just doesn't show up in admin so I can approve it ,this is what I have done so far
    in artsubmit.tpl
    {capture name="title"} - {l}Submit Link{/l}{/capture}
    {capture assign="in_page_title"}{l}Submit Link{/l}{/capture}
    {capture assign="description"}{l}Submit a new link to the directory{/l}{/capture}

    {include file="header.tpl"}
    {include file="top_bar.tpl"}
    <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <tr>
    <td width="160" valign="top" class="l-rep">{include file="leftside.tpl"}</td>
    <td>

    {strip}
    <table width ="100%" style="padding-left: 10px; padding-right: 10px;"><tr><td>
    <div align="left" class="catbar">Submit Your Article</div>
    <form method="post" action=""><div align="center">
    <table width="100%" border="0" class="box"><tr>
    <td class="label"></td><td class="field">
    <font color="#000080">
    <span style="color: #red; font-weight:700">All fields marked with (<span class='req'>*</span>) are required!</span></font></td>
    </tr><tr><td class="label"><span class='req'>*</span><font color="#000080">
    </font>
    <span style="color: #000080;">Article Title:</span></td>
    <td class="field">
    <input type="text" name="TITLE" value="" size="40" maxlength="100" class="text" /></td>
    </tr><tr><td class="label">
    <font color="#000080">
    <span class='req'>*</span> </font>
    <span style="color: #000080;">Author's Website:</span></td><td class="field">
    <input type="text" name="URL" value="" size="40" maxlength="255" class="text"/></td></tr>
    <tr><td class="label"><span style="color: #000080;">Description (No HTML, no links!):</span></td>
    <td class="field">
    <textarea name="DESCRIPTION" rows="3" cols="37" class="text" onkeyup="javascript:formtool_count_chars(this.form .elements['DESCRIPTION'],this.form.elements['DESCRIPTION_limit'],350,true)"></textarea><br />
    <font color="#000080">Limit</font><span style="color: #ffffcc;">:</span> <input type="text" name="DESCRIPTION_limit" size="4" class="limit_field" readonly="readonly" value="350" /></td></tr><tr><td class="label">
    <font color="#000080"><span class='req'>*</span></font><span style="color: #000080;">Article:</span></td><td class="field"><textarea name="ARTICLE" rows="50" cols="60" class="text"></textarea></td></tr><tr><td class="label">
    <span style="color: #000080;">About Author:</span></td><td class="field"><textarea name="AUTHOR" rows="3" cols="37" class="text"></textarea></td></tr><tr><td class="label">
    <font color="#000080"><span class='req'>*</span></font><span style="color: #000080;">Author Name:</span></td><td class="field"><div align="left"><input type="text" name="OWNER_NAME" value="" size="40" maxlength="50" class="text" /></div></td></tr><tr><td class="label">
    <font color="#000080"><span class='req'>*</span></font><span style="color: #000080;">Your Email:</span></td><td class="field"><div align="left"><input type="text" name="OWNER_EMAIL" value="" size="40" maxlength="255" class="text" /></div></td></tr><tr><td class="label">
    <font color="#000080"><span class='req'>*</span></font><span style="color: #000080;">Category:</span></td><td class="field"><div align="left">
    <tr>
    <td class="label"><span class='req'>*</span>{l}Category{/l}:</td>
    <td class="field">
    {* Load category selection *}
    {include file="category_select.tpl"}
    </td>
    </tr></select>
    {if $smarty.const.VISUAL_CONFIRM}
    <tr>
    <td class="label"><span class='req'>*</span>{l}Enter the code shown{/l}:</td>
    <td class="field">
    <input id="IMAGEHASH" name="IMAGEHASH" type="hidden" value="{$imagehash}" />
    <input id="CAPTCHA" name="CAPTCHA" type="text" value="" size="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" maxlength="{$smarty.const.CAPTCHA_PHRASE_LENGTH}" class="text" />
    {validate form="submit_link" id="v_CAPTCHA" message=$smarty.capture.invalid_code}
    <br />
    <p class="small">{l}This helps prevent automated registrations.{/l}</p>
    <img src="{$smarty.const.DOC_ROOT}/captcha.php?imagehash={$imagehash}" class="captcha" alt="{l}Visual Confirmation Security Code{/l}" title="{l}Visual Confirmation Security Code{/l}" />
    </td>
    </tr>
    {/if}
    <tr><td colspan="2"><div align="center"><br /><br /><input type="submit" name="submit" value="Continue" /></div>
    </td></tr></table></div></form>{/strip}

    <td width="169" valign="top">{include file="rightside.tpl"}</td>
    </tr>
    </table>
    {include file="footer.tpl"}
    I am using the regular submit.php
    but renamed it artsubmit.php
    I put this at the end
    //Make output
    echo $tpl->fetch('artsubmit.tpl', $id);

    if ($action == 'edit' && $EditRedirect == 1)
    http_redirect('artsubmit.php', 'html', 5, '');
    ?>
     
    jminscoe, Mar 29, 2007 IP
  2. jminscoe

    jminscoe Peon

    Messages:
    1,223
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just bumping the thread to find out if anyone has any ideas
     
    jminscoe, Mar 31, 2007 IP