Jump to content

Start New Topic


gkurt

Recommended Posts

Hi guys, new here.

 

I'm creating a forum using Php and mysql and I kinda got lost in the starting of the new topic page. I want to create something like the one in this website where I can insert smileys and edit the text colors and size and so on. The programmer who worked on this forum before me resigned and I'm tasked to finish his job. He used javascript w/c Im not familiar with.

Is there a way where I can download something like this,(not the whole forum -just the start new topic page). Please help....

I already have the database and he already created something similar to this one but I cant save it to the database.

 

heres the code:

 

<?

include('PHPFunctions.php');

$LocalDir = EL_Location();

$ComposeWhat = $_GET["from"];

?>

<script src="JSFunctions.js" language="JScript"></script>

 

<table width="719" border="0" cellpadding="0" cellspacing="0" bgcolor="#3366CC">

  <tr>

  <td><? echo "Composer.php"; ?>

  <form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)">

<table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline">

<tr>

    <th class="thHead" colspan="2" height="25"><div align="left"><b><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Post

                a reply</font></b></div></th>

</tr>

<!-- END switch_privmsg -->

<tr>

        <td width="22%" class="row1"><span class="gen"><b><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Subject</font></b></span></td>

  <td class="row2" width="78%"> <span class="gen">

      <input type="text" name="subject" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" />

</span> </td>

</tr>

<tr>

        <td class="row1" valign="top">

<table width="45" border="0" cellspacing="0" cellpadding="0">

                <tr>

                  <td> </td>

                </tr>

                <tr>

                  <td> </td>

                </tr>

                <tr>

                  <td> </td>

                </tr>

<tr>

                  <td> </td>

                </tr>

              </table>

<table width="100%" border="0" cellspacing="0" cellpadding="1">

                <tr>

                  <td><span class="gen"><b><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Message</font></b></span>

                  </td>

                </tr>

                <tr>

                  <td valign="middle" align="center"> <br />

                    <table width="100" border="0" cellspacing="0" cellpadding="5">

                      <tr align="center">

                        <td colspan="{S_SMILIES_COLSPAN}" class="gensmall"><b><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Emotions</font></b></td>

                      </tr>

                      <!-- BEGIN smilies_row -->

                      <tr align="center" valign="middle">

                        <!-- BEGIN smilies_col -->

                        <td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td>

                        <!-- END smilies_col -->

                      </tr>

                      <!-- END smilies_row -->

                      <!-- BEGIN switch_smilies_extra -->

                      <!-- END switch_smilies_extra -->

                    </table></td>

                </tr>

              </table>

              </td>

  <td class="row2" valign="top"><span class="gen"> <span class="genmed"> </span>

      <table width="450" border="0" cellspacing="0" cellpadding="2">

                <tr align="center" valign="middle">

                  <td><span class="genmed">

                    <input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" />

                    </span></td>

                  <td><span class="genmed">

                    <input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onClick="bbstyle(2)" onMouseOver="helpline('i')" />

                    </span></td>

                  <td><span class="genmed">

                    <input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" />

                    </span></td>

                  <td><span class="genmed">

                    <input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline('q')" />

                    </span></td>

                  <td><span class="genmed">

                    <input type="button" class="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onClick="bbstyle(8)" onMouseOver="helpline('c')" />

                    </span></td>

                  <td><span class="genmed">

                    <input type="button" class="button" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onClick="bbstyle(10)" onMouseOver="helpline('l')" />

                    </span></td>

                  <td><span class="genmed">

                    <input type="button" class="button" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onClick="bbstyle(12)" onMouseOver="helpline('o')" />

                    </span></td>

                  <td><span class="genmed">

                    <input type="button" class="button" accesskey="p" name="addbbcode14" value="Img" style="width: 40px"  onClick="bbstyle(14)" onMouseOver="helpline('p')" />

                    </span></td>

                  <td><span class="genmed">

                    <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />

                    </span></td>

                </tr>

                <tr>

                  <td colspan="9"> <table width="100%" border="0" cellspacing="0" cellpadding="0">

                      <tr>

                        <td><p><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><span class="genmed">Font

                            Size

                            <select name="addbbcode20" onChange="bbfontstyle('.value + ']', '')" onMouseOver="helpline('f')">

                              <option value="7">Font Tiny</option>

                              <option value="9">Font Small</option>

                              <option value="12">Font Normal</option>

                              <option value="18">Font Large</option>

                              <option value="24">Font Huge</option>

                            </select>

                            Font Color

                            <select name="addbbcode18" onChange="bbfontstyle('.value + ']', '')" onmouseover="helpline('s')">

                              <option style="color:black; background-color: {T_TD_COLOR1}" value="black" class="genmed">DEFAULT</option>

                              <option style="color:darkred; background-color: {T_TD_COLOR1}" value="darkred" class="genmed">DARK

                              RED</option>

                              <option style="color:red; background-color: {T_TD_COLOR1}" value="red" class="genmed">RED</option>

                              <option style="color:orange; background-color: {T_TD_COLOR1}" value="orange" class="genmed">ORANGE</option>

                              <option style="color:brown; background-color: {T_TD_COLOR1}" value="brown" class="genmed">BROWN</option>

                              <option style="color:yellow; background-color: {T_TD_COLOR1}" value="yellow" class="genmed">YELLOW</option>

                              <option style="color:green; background-color: {T_TD_COLOR1}" value="green" class="genmed">GREEN</option>

                              <option style="color:olive; background-color: {T_TD_COLOR1}" value="olive" class="genmed">OLIVE</option>

                              <option style="color:cyan; background-color: {T_TD_COLOR1}" value="cyan" class="genmed">CYAN</option>

                              <option style="color:blue; background-color: {T_TD_COLOR1}" value="blue" class="genmed">BLUE</option>

                              <option style="color:darkblue; background-color: {T_TD_COLOR1}" value="darkblue" class="genmed">DARK

                              BLUE</option>

                              <option style="color:indigo; background-color: {T_TD_COLOR1}" value="indigo" class="genmed">INDIGO</option>

                              <option style="color:violet; background-color: {T_TD_COLOR1}" value="violet" class="genmed">VIOLET</option>

                              <option style="color:white; background-color: {T_TD_COLOR1}" value="white" class="genmed">WHITE</option>

                              <option style="color:black; background-color: {T_TD_COLOR1}" value="black" class="genmed">BLACK</option>

                            </select>

                            </span></font></p></td>

                        <td nowrap="nowrap" align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><span class="gensmall"><a href="javascript:bbstyle(-1)" class="genmed" onMouseOver="helpline('a')">Close

                          tags </a></span></font></td>

                      </tr>

                    </table></td>

                </tr>

                <tr>

                  <td colspan="9"> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"><span class="gensmall">

                    <input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="Styles Tips" />

                    </span></font></td>

                </tr>

                <tr>

                  <td colspan="9"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><span class="gen">

                    <textarea name="message" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post" onSelect="storeCaret(this);" onClick="storeCaret(this);" onKeyUp="storeCaret(this);"></textarea>

                    </span></font></td>

                </tr>

              </table>

</span></td>

</tr>

<tr>

        <td class="row1" valign="top"><span class="gen"><b><font size="2" face="Verdana, Arial, Helvetica, sans-serif">{L_OPTIONS}</font></b></span><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><br />

              <span class="gensmall">{HTML_STATUS}<br />

              {BBCODE_STATUS}<br />

              {SMILIES_STATUS}</span></font></td>

  <td class="row2"><span class="gen"> </span>

<table cellspacing="0" cellpadding="1" border="0">

                <!-- BEGIN switch_html_checkbox -->

                <tr>

                  <td> <input type="checkbox" name="disable_html" {S_HTML_CHECKED} />

                  </td>

                  <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><span class="gen">Disable

                    HTML}</span></font></td>

                </tr>

                <!-- END switch_html_checkbox -->

                <!-- BEGIN switch_bbcode_checkbox -->

                <!-- END switch_bbcode_checkbox -->

                <!-- BEGIN switch_smilies_checkbox -->

                <tr>

                  <td> <input type="checkbox" name="disable_smilies" {S_SMILIES_CHECKED} />

                  </td>

                  <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><span class="gen">Disable

                    Smillies</span></font></td>

                </tr>

                <!-- END switch_smilies_checkbox -->

                <!-- BEGIN switch_signature_checkbox -->

                <tr>

                  <td> <input type="checkbox" name="attach_sig" {S_SIGNATURE_CHECKED} />

                  </td>

                  <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><span class="gen">Attach

                    Signature}</span></font></td>

                </tr>

                <!-- END switch_signature_checkbox -->

                <!-- BEGIN switch_notify_checkbox -->

                <!-- END switch_notify_checkbox -->

                <!-- BEGIN switch_delete_checkbox -->

                <tr>

                  <td> <input type="checkbox" name="delete" /> </td>

                  <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><span class="gen">Delete

                    Post</span></font></td>

                </tr>

                <!-- END switch_delete_checkbox -->

                <!-- BEGIN switch_type_toggle -->

                <!-- END switch_type_toggle -->

              </table>

  </td>

</tr>

<tr>

        <td class="catBottom" colspan="2" align="center" height="28"> <font size="2" face="Verdana, Arial, Helvetica, sans-serif">

              <input type="submit" tabindex="5" name="preview" class="mainoption" value="Preview" />

               

              <input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="Submit" />

              </font> </td>

</tr>

  </table>

 

  <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">

<tr>

        <td align="right" valign="top"> </td>

</tr>

  </table>

</form></td>

</tr>

</table>

 

 

 

 

please help......

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.