Announcement

Collapse
No announcement yet.

Moving Button and Resizing Names

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Moving Button and Resizing Names

    I'm interested in moving the Reply and New Thread buttons over to the righthand side of the page rather than the left. Which templates would I have to go into to do that?

    Also, is it possible to lower the font size of usernames in the threads? Where would that be?

    Thanks for the help.

  • #2
    Originally posted by Martin22
    I'm interested in moving the Reply and New Thread buttons over to the righthand side of the page rather than the left. Which templates would I have to go into to do that?
    To change the position of the "new thread" button, go to your:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Display Templates -> FORUMDISPLAY

    Find this code and swap the colored sections:

    Code:
    <!-- controls above thread list -->
    <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
    <tr valign="bottom">
    	<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
    	<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
    </tr>
    </table>
    <!-- / controls above thread list -->
    You also need to change the align attributes:

    Code:
    <!-- controls above thread list -->
    <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
    <tr valign="bottom">
    	<if condition="$pagenav"><td align="$stylevar[left]">$pagenav</td></if>
    	<td class="smallfont" align="$stylevar[right]"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
    </tr>
    </table>
    <!-- / controls above thread list -->
    You will find similar code further down the template (for the "new thread" button below the thread listing). Make similar changes to that code.

    To change the position of the "new reply" button, go to your:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Show Thread Templates -> SHOWTHREAD

    Make similar changes to this code. There are two similar instances:

    Code:
    <!-- controls above postbits -->
    <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
    <tr valign="bottom">
    	<if condition="$show['largereplybutton']">
    		<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" ></if></a></td>
    	</if>	
    	<if condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if>
    </tr>
    </table>
    <!-- / controls above postbits -->
    Originally posted by Martin22
    Also, is it possible to lower the font size of usernames in the threads? Where would that be?
    Go to your:

    Admin CP -> Styles & Templates -> Style Manager -> Main CSS (in the menu)

    Scroll down to the bottom where it says Additional CSS Definitions. Find this code and edit the red code:

    Code:
    /* ***** styling for 'big' usernames on postbit etc. ***** */
    .bigusername { font-size: 14pt; }

    Comment


    • #3
      Originally posted by Jake Bunce
      To change the position of the "new thread" button, go to your:

      Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Display Templates -> FORUMDISPLAY

      Find this code and swap the colored sections:

      Code:
      <!-- controls above thread list -->
      <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
      <tr valign="bottom">
      	<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
      	<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
      </tr>
      </table>
      <!-- / controls above thread list -->
      You also need to change the align attributes:

      Code:
      <!-- controls above thread list -->
      <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
      <tr valign="bottom">
      	<if condition="$pagenav"><td align="$stylevar[left]">$pagenav</td></if>
      	<td class="smallfont" align="$stylevar[right]"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
      </tr>
      </table>
      <!-- / controls above thread list -->
      You will find similar code further down the template (for the "new thread" button below the thread listing). Make similar changes to that code.

      To change the position of the "new reply" button, go to your:

      Admin CP -> Styles & Templates -> Style Manager -> « » -> Show Thread Templates -> SHOWTHREAD

      Make similar changes to this code. There are two similar instances:

      Code:
      <!-- controls above postbits -->
      <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
      <tr valign="bottom">
      	<if condition="$show['largereplybutton']">
      		<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" ></if></a></td>
      	</if>	
      	<if condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if>
      </tr>
      </table>
      <!-- / controls above postbits -->


      Go to your:

      Admin CP -> Styles & Templates -> Style Manager -> Main CSS (in the menu)

      Scroll down to the bottom where it says Additional CSS Definitions. Find this code and edit the red code:

      Code:
      /* ***** styling for 'big' usernames on postbit etc. ***** */
      .bigusername { font-size: 14pt; }
      Jake, this works perfectly when the thread is only one page long. However, when the thread is multiple pages, the page selection option is not directly to the left of the reply button. instead, it is sort of centered above the thread. ANy idea how to fix this? or make the reply button ABOVE the page selection?

      EDIT: Also Jake, I do not think that is exactly how the showthread code goes. For me, there is an additional else statement in there and maybe that is why this isnt working. *scratches head* I dont think i made any additions to this code!
      Code:
      <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
      <tr valign="bottom">
       <if condition="$show['largereplybutton']">
        <td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
       <else />
        <td class="smallfont">&nbsp;</td>
       </if>
       <if condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if>
      </tr>
      </table>
      Last edited by 2darkpark; Fri 2nd Jul '04, 1:11pm.

      Comment


      • #4
        My code is from version 3.0.0. That template changed slightly in the latest versions. Here is what the code at the top of SHOWTHREAD would look like for you:

        Code:
        <!-- controls above postbits -->
        <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
        <tr valign="bottom">
        	<if condition="$show['pagenav']"><td align="$stylevar[left]">$pagenav</td></if>
        	<if condition="$show['largereplybutton']">
        		<td class="smallfont" align="$stylevar[right]" width="100%"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
        	<else />
        		<td class="smallfont" width="100%">&nbsp;</td>
        	</if>
        </tr>
        </table>
        <!-- / controls above postbits -->
        The extra width attributes will keep the pagenav on the left. Make similar changes to the other blocks of code.

        Comment


        • #5
          Thanks for the quick reply! Ill try this out!!

          EDIT: on a side note, can I ask you a quick question? My users and I are having a problem when threads a loading. While a thread is loading, it takes you automatically to the bottom at the quick reply. Or as a member on my forum describes it:
          I like to start reading a thread as soon as it starts loading, but the little applet at the bottom of the page (the quick reply area) yanks the page down there when it loads.

          I dunno if this is changeable, and I'll get used to it, but it's annoying right now.

          Comment


          • #6
            Originally posted by 2darkpark
            EDIT: on a side note, can I ask you a quick question? My users and I are having a problem when threads a loading. While a thread is loading, it takes you automatically to the bottom at the quick reply. Or as a member on my forum describes it:
            I like to start reading a thread as soon as it starts loading, but the little applet at the bottom of the page (the quick reply area) yanks the page down there when it loads.

            I dunno if this is changeable, and I'll get used to it, but it's annoying right now.
            I have never heard of that problem. Is the user clicking on one of the links that takes him to the first unread post? That might explain why he is getting "anchored."

            Comment

            Loading...
            Working...
            X