"Preview , Send,Reset. "
4 posters
Page 1 of 1
"Preview , Send,Reset. "
How can I move these buttons to the center?
Forum version : PunBB
Forum version : PunBB
Last edited by iLeo on August 5th 2012, 3:52 pm; edited 1 time in total
Re: "Preview , Send,Reset. "
In the templates section, there should Post and private message section. Then posting_body. Find this code
Replace with
and try that it should work. also it looks like there is an <hr> tag there, if you dont want that just delete it, itll make it more smooth looking.
- Code:
<!-- BEGIN switch_preview -->
<input class="liteoption" type="submit" name="preview" value="{L_PREVIEW}" tabindex="5" />
<!-- END switch_preview -->
<!-- BEGIN switch_draft -->
<input class="liteoption" type="submit" name="draft" value="{L_DRAFT}" tabindex="7" accesskey="d" />
<!-- END switch_draft -->
<!-- BEGIN switch_publish -->
<input class="liteoption" type="submit" name="publish" value="{L_PUBLISH}" tabindex="8" accesskey="p" />
<!-- END switch_publish -->
<input class="mainoption" type="submit" name="post" value="{L_SUBMIT}" tabindex="6" accesskey="s" />
</td>
</tr>
Replace with
- Code:
<!-- BEGIN switch_preview -->
<center><input class="liteoption" type="submit" name="preview" value="{L_PREVIEW}" tabindex="5" /> </center>
<!-- END switch_preview -->
<!-- BEGIN switch_draft -->
<center> <input class="liteoption" type="submit" name="draft" value="{L_DRAFT}" tabindex="7" accesskey="d" /> </center>
<!-- END switch_draft -->
<!-- BEGIN switch_publish -->
<center> <input class="liteoption" type="submit" name="publish" value="{L_PUBLISH}" tabindex="8" accesskey="p" /> </center>
<!-- END switch_publish -->
<center> <input class="mainoption" type="submit" name="post" value="{L_SUBMIT}" tabindex="6" accesskey="s" /></center>
</td>
</tr>
and try that it should work. also it looks like there is an <hr> tag there, if you dont want that just delete it, itll make it more smooth looking.
Last edited by nextlevelgaming on August 5th 2012, 2:09 am; edited 1 time in total (Reason for editing : adding about the horizontal rule tag)
Re: "Preview , Send,Reset. "
He's talking about quick reply.
In which case this CSS would do it:
In which case this CSS would do it:
- Code:
#pun-qpost .frm-buttons { text-align: center }
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: "Preview , Send,Reset. "
Thanks.
But now they look like this.
Can I make it so they're all lined up next to each other?
But now they look like this.
Can I make it so they're all lined up next to each other?
Re: "Preview , Send,Reset. "
Well you'll have to visit whatever tutorial you used to add the reset button.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: "Preview , Send,Reset. "
I used this code and put it in my Javascript.LGforum wrote:Well you'll have to visit whatever tutorial you used to add the reset button.
- Code:
$(document).ready(function(){$('input[name="post"]').after('<div><input type="reset" name="reset" class="button2" value="Reset"></div>')});
Re: "Preview , Send,Reset. "
Just change it this:
- Code:
$(document).ready(function(){$('input[name="post"]').after('<input type="reset" name="reset" class="button2" value="Reset">')});
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: "Preview , Send,Reset. "
LGforum wrote:Just change it this:The DIV tags were making it go on its own line. DIV elements are "block" elements, meaning they have display:block by default.
- Code:
$(document).ready(function(){$('input[name="post"]').after('<input type="reset" name="reset" class="button2" value="Reset">')});
That was the problem?
Thanks!
Topic solved.
Re: "Preview , Send,Reset. "
Topic Solved & Locked |
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Similar topics
» [Preview] and [Send] Buttons are on the left, how do i move it to center
» 'Preview' 'Send' Buttons
» Preview/Send Button
» html code shows in preview but NOT send
» Replace the Send, Preview, and Draft Buttons
» 'Preview' 'Send' Buttons
» Preview/Send Button
» html code shows in preview but NOT send
» Replace the Send, Preview, and Draft Buttons
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum