MyBB Community Forums

Full Version: How to add Post Reply buttons above post options?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Does anyone know how to add the post reply buttons above the post options in the post editor template? I dont want to move them, I want to add a second set for those that are not adding images or post options of anykind.
(2012-09-07, 03:29 PM)RocketFoot Wrote: [ -> ]Does anyone know how to add the post reply buttons above the post options in the post editor template? I dont want to move them, I want to add a second set for those that are not adding images or post options of anykind.

Well... Here's the post reply code.

Quick reply from the default theme

<input type="submit" class="button" value="{$lang->post_reply}" tabindex="2" accesskey="s" id="quick_reply_submit" />

And i'm pppppprrrreeetttttttttyyyy sure this is the code for a regular reply

<input type="submit" class="button" name="submit" value="Post Thread" tabindex="4" accesskey="s" />
I'm not sure this is what I want...I want to put all three of the buttons right under the post editor and keep them also below the post options. This is so a user doesn't have to scroll so far down if he isn't posting images or using polls or anything.

ETA: Added screen cap of what I am trying to do...
(2012-09-11, 05:46 PM)RocketFoot Wrote: [ -> ]I'm not sure this is what I want...I want to put all three of the buttons right under the post editor and keep them also below the post options. This is so a user doesn't have to scroll so far down if he isn't posting images or using polls or anything.

ETA: Added screen cap of what I am trying to do...

I'm pretty sure i can help, but i'll need to see that template. Could you post your templates content? I don't know what template that is, since it's a template the plugin added.
Here is what I have so far but it isn't formatting right...(newthread Template)

<html>
<head>
<title>{$lang->newthread_in}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
</head>
<body>
{$header}
{$preview}
{$thread_errors}
{$attacherror}
<form action="newthread.php?fid={$fid}&amp;processed=1" method="post" enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->post_new_thread}</strong></td>
</tr>
{$loginbox}
<tr>
<td class="trow2" width="20%"><strong>{$lang->thread_subject}</strong></td>
<td class="trow2">{$prefixselect}<input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" /></td>
</tr>
{$posticons}
<tr>
<td class="trow2" valign="top"><strong>{$lang->your_message}</strong>{$smilieinserter}</td>
<td class="trow2">
<textarea name="message" id="message" rows="20" cols="70" tabindex="2">{$message}</textarea>
{$codebuttons}
{$multiquote_external}
</td>
</tr>

<tr>
<td class="trow1" valign="top"><CENTER><div style="text-align:center"><input type="submit" class="button" name="submit" value="{$lang->post_thread}" tabindex="4" accesskey="s" />  <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="5" />{$savedraftbutton}</div></CENTER></td></tr>


{$tinypic}
<tr>
<td class="trow1" valign="top"><strong>{$lang->post_options}</strong></td>
<td class="trow1"><span class="smalltext">
<label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" tabindex="7"{$postoptionschecked['signature']} /> {$lang->options_sig}</label>
{$disablesmilies}</span></td>
</tr>
{$modoptions}
{$subscriptionmethod}
{$pollbox}
{$captcha}
</table>
{$attachbox}
<br />
<div style="text-align:center"><input type="submit" class="button" name="submit" value="{$lang->post_thread}" tabindex="4" accesskey="s" />  <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="5" />{$savedraftbutton}</div>
<input type="hidden" name="action" value="do_newthread" />
<input type="hidden" name="posthash" value="{$posthash}" />
<input type="hidden" name="attachmentaid" value="" />
<input type="hidden" name="attachmentact" value="" />
<input type="hidden" name="quoted_ids" value="{$quoted_ids}" />
<input type="hidden" name="tid" value="{$tid}" />
{$editdraftpid}
</form>
{$forumrules}
{$footer}
</body>
</html>

This is what the above code produces...notice the new set of buttons are in the right area but spaced over to the left and stacked up wrong.
<tr>
 <td class="trow1" valign="top"  colspan="2">
<div style="text-align:center;"><input type="submit" class="button" name="submit" value="{$lang->post_thread}" tabindex="4" accesskey="s" />  <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="5" />{$savedraftbutton}
</div>
</td>
</tr>
(2012-09-11, 07:54 PM)Leefish Wrote: [ -> ]
<tr>
 <td class="trow1" valign="top"  colspan="2">
<div style="text-align:center;"><input type="submit" class="button" name="submit" value="{$lang->post_thread}" tabindex="4" accesskey="s" />  <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="5" />{$savedraftbutton}
</div>
</td>
</tr>

Tried it Lee, but it produced the same screen shot as above Sad
ACP logon? I think I can fix this in a couple of minutes. I have exactly this in one of my own templates, but it is so heavily modified I cant just copy paste it.
Thanks Lee! You got it working as described! Rep on the way!
You're welcome Rocketfoot. New board looks nice Big Grin
Pages: 1 2