The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
4 posters

    "Preview , Send,Reset. "

    DK
    DK
    Forumember


    Male Posts : 588
    Reputation : 13
    Language : English

    Solved "Preview , Send,Reset. "

    Post by DK Sun 5 Aug - 1:32

    How can I move these buttons to the center?
    "Preview , Send,Reset. " 220268-85201221957am
    Forum version : PunBB


    Last edited by iLeo on Sun 5 Aug - 15:52; edited 1 time in total
    nextlevelgaming
    nextlevelgaming
    Forumember


    Male Posts : 989
    Reputation : 38
    Language : English|CSS|HTML5|javascript|
    Location : New York

    Solved Re: "Preview , Send,Reset. "

    Post by nextlevelgaming Sun 5 Aug - 2:06

    In the templates section, there should Post and private message section. Then posting_body. Find this code
    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 Sun 5 Aug - 2:09; edited 1 time in total (Reason for editing : adding about the horizontal rule tag)
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    Solved Re: "Preview , Send,Reset. "

    Post by LGforum Sun 5 Aug - 2:28

    He's talking about quick reply.
    In which case this CSS would do it:
    Code:
    #pun-qpost .frm-buttons { text-align: center }
    DK
    DK
    Forumember


    Male Posts : 588
    Reputation : 13
    Language : English

    Solved Re: "Preview , Send,Reset. "

    Post by DK Sun 5 Aug - 6:04

    Thanks.
    But now they look like this.
    "Preview , Send,Reset. " 21915-85201270310am
    Can I make it so they're all lined up next to each other?
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    Solved Re: "Preview , Send,Reset. "

    Post by LGforum Sun 5 Aug - 13:34

    Well you'll have to visit whatever tutorial you used to add the reset button.
    DK
    DK
    Forumember


    Male Posts : 588
    Reputation : 13
    Language : English

    Solved Re: "Preview , Send,Reset. "

    Post by DK Sun 5 Aug - 14:42

    LGforum wrote:Well you'll have to visit whatever tutorial you used to add the reset button.
    I used this code and put it in my Javascript.
    Code:
        $(document).ready(function(){$('input[name="post"]').after('<div><input type="reset" name="reset" class="button2" value="Reset"></div>')});
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    Solved Re: "Preview , Send,Reset. "

    Post by LGforum Sun 5 Aug - 15:15

    Just change it this:
    Code:
     $(document).ready(function(){$('input[name="post"]').after('<input type="reset" name="reset" class="button2" value="Reset">')});
    The DIV tags were making it go on its own line. DIV elements are "block" elements, meaning they have display:block by default.
    DK
    DK
    Forumember


    Male Posts : 588
    Reputation : 13
    Language : English

    Solved Re: "Preview , Send,Reset. "

    Post by DK Sun 5 Aug - 15:51

    LGforum wrote:Just change it this:
    Code:
     $(document).ready(function(){$('input[name="post"]').after('<input type="reset" name="reset" class="button2" value="Reset">')});
    The DIV tags were making it go on its own line. DIV elements are "block" elements, meaning they have display:block by default.

    That was the problem?
    Thanks!
    Topic solved.
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    Solved Re: "Preview , Send,Reset. "

    Post by Sanket Sun 5 Aug - 15:54

    Topic Solved & Locked

      Current date/time is Sun 22 Sep - 19:27