View Single Post
  #9  
Old 01-25-2008, 11:17 PM
CallieJo CallieJo is offline
Junior Member
 
Join Date: Feb 2006
Posts: 18
Geek Article and Review System License Holder 
Default

I did these GARS templates: threadbit, newthread and editpost

However, for some reason the new thread template does not show the prefixes even though the code is there. But, if I edit the post it will show the prefixes.

Anyone else have this issue and/or know how to fix it?

Here is what is in my GARS newthread template:
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[post_new_thread]</title>
</head>
<body$onload>
$header
$navbar

$postpreview

<form action="newthread.php<if condition="$show['vb36']">?do=postthread&amp;f=$forumid</if>" method="post" enctype="multipart/form-data" name="vbform"<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(this.subject.value, $vboptions[postminchars])"</if>>
<!-- GARS Gallery-->
$GARS_options[gallery]
<!-- /GARS GALLERY-->
<!--GARS options-->
<script language="javascript">
    function LimitMultiLineLength(obj)
    {
        var iKey;
        var eAny_Event = window.event;
        iKey = eAny_Event.keyCode;
        var re
        re = new RegExp("\r\n","g")
        x = obj.value.replace(re,"").length ;
        if ((x >= obj.maxLength) && ((iKey > 33 && iKey < 255) || (iKey > 95 && iKey < 106)) && (iKey != 13))
        {
            window.event.returnValue=false;
        }
    }
</script>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('newpost_GARS_options')"><img id="collapseimg_newpost_GARS_options" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_newpost_GARS_options].gif" alt="" border="0" /></a>
                        $typeinfo[keyword_c] $vbphrase[GARS_options]
                </td>
        </tr>
</thead>
<tbody id="collapseobj_newpost_GARS_options" style="$vbcollapse[collapseobj_newpost_GARS_options]">
        <tr valign="top">
                <td class="panelsurround" align="center">
                <div class="panel">
                        <div style="width:$stylevar[formwidth]" align="$stylevar[left]">
<fieldset class="fieldset">
                                        <legend>$vbphrase[title]:</legend>
<div style="padding:$stylevar[formspacer]px">
<input type="text" class="bginput" name="subject" value="$subject" size="50" maxlength="$vboptions[titlemaxchars]" tabindex="1" /></div></fieldset>
$GARS_options[options]
                </td>
        </tr>
</tbody>
</table><br />
<!--/GARS options-->
<!-- GARS ratings-->
$GARS_options[ratings]
<!-- /GARS ratings-->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat">
                <span class="smallfont" style="float:$stylevar[right]"><strong>$vbphrase[forum]</strong>: <a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[forumid]">$foruminfo[title]</a></span>
                $vbphrase[post_new_thread]
        </td>
</tr>
<tr>

        <td class="panelsurround" align="center">
        <div class="panel">
                <div style="width:$stylevar[formwidth]" align="$stylevar[left]">

                $usernamecode

                <!-- subject field
                <table cellpadding="0" cellspacing="0" border="0" class="fieldset">
		<tr>
			<if condition="$prefix_options">
				<td class="smallfont">$vbphrase[prefix]:</td>
				<td class="smallfont" colspan="3">$vbphrase[title]:</td>
			<else />
				<td class="smallfont" colspan="4">$vbphrase[title]:</td>
			</if>
		</tr>
		<tr>
			<if condition="$prefix_options">
				<td style="padding-right: 1px">
					<select name="prefixid" class="bginput">
						<option value="">$vbphrase[no_prefix_meta]</option>
						$prefix_options
					</select>
				</td>
			</if>
			<td>
				<input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="$vboptions[titlemaxchars]" tabindex="1" />
			</td>
                        <td>&nbsp;&nbsp;</td>
                        <td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>                </tr>
                </table>
                 subject field -->

                <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                        <td>

                <!-- message area -->
                <div class="smallfont">$vbphrase[message]:</div>
                $messagearea
                <!-- / message area -->

                $posticons

                        </td>
                </tr>
                </table>

                </div>
        </div>

        <div style="margin-top:$stylevar[cellpadding]px">
                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="f" value="$forumid" />
                <input type="hidden" name="do" value="postthread" />
                <input type="hidden" name="posthash" value="$posthash" />
                <input type="hidden" name="poststarttime" value="$poststarttime" />
                <input type="hidden" name="loggedinuser" value="$bbuserinfo[userid]" />
                <input type="submit" class="button" name="sbutton" id="{$editorid}_save" value="$vbphrase[submit_new_thread]" accesskey="s" tabindex="1" />
                <input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="r" tabindex="1" />
        </div>
        </td>
</tr>
</table>

<br />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('newpost_options')"><img id="collapseimg_newpost_options" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_newpost_options].gif" alt="" border="0" /></a>
                        $vbphrase[additional_options]
                </td>
        </tr>
</thead>
<tbody id="collapseobj_newpost_options" style="$vbcollapse[collapseobj_newpost_options]">
        <tr valign="top">
                <td class="panelsurround" align="center">
                <div class="panel">
                        <div style="width:$stylevar[formwidth]" align="$stylevar[left]">

                                <fieldset class="fieldset">
                                        <legend>$vbphrase[miscellaneous_options]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                                <if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if>
                                                <div><label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" tabindex="1" $checked[parseurl] />$vbphrase[automatically_parse_links_in_text]</label></div>
                                                $disablesmiliesoption
                                        </div>
                                </fieldset>

                                $attachmentoption

                                <if condition="$show['member']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[thread_subscription]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        <tr>
                                                <td>$vbphrase[notification_type]:<br /><select name="emailupdate" tabindex="1">
                                                        <option value="9999" $emailchecked[9999]>$vbphrase[do_not_subscribe]</option>
                                                        <option value="0" $emailchecked[0]>$vbphrase[no_email_notification]</option>
                                                        <option value="1" $emailchecked[1]>$vbphrase[instant_email_notification]</option>
                                                        <option value="2" $emailchecked[2]>$vbphrase[daily_email_notification]</option>
                                                        <option value="3" $emailchecked[3]>$vbphrase[weekly_email_notification]</option>
                                                </select></td>
                                                <if condition="$show['subscribefolders']"><td>$vbphrase[folder]:<br /><select name="folderid" tabindex="1">$folderbits</select></td></if>
                                        </tr>
                                        </table>
                                </fieldset>
                                </if>

                                <if condition="$show['poll']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[post_a_poll]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                                <div><label for="cb_postpoll"><input type="checkbox" name="postpoll" value="yes" id="cb_postpoll" tabindex="1" $checked[postpoll] />$vbphrase[yes_post_a_poll_thread]</label></div>
                                                <div><label for="polloptnum">$vbphrase[number_of_poll_options]: <input type="text" class="bginput" size="5" name="polloptions" value="$polloptions" id="polloptnum" tabindex="1" /></label> <if condition="$vboptions['maxpolloptions']">($vbphrase[maximum]: $vboptions[maxpolloptions])</if></div>
                                        </div>
                                </fieldset>
                                </if>

                                $threadmanagement

                                </div>
                        </div>

                        <div style="margin-top:$stylevar[cellpadding]px">
                                <input type="submit" class="button" name="sbutton" value="$vbphrase[submit_new_thread]" accesskey="s" tabindex="1" />
                                <input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="p" tabindex="1" />
                        </div>
                </td>
        </tr>
</tbody>
</table>

</form>

<br />

$forumrules

$footer

</body>
</html>
The red code is what I changed.

Last edited by CallieJo; 01-25-2008 at 11:20 PM..
Reply With Quote