How do i change the profile,pm buttons to the top

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kdog316
    Senior Member
    • May 2001
    • 172

    How do i change the profile,pm buttons to the top

    how do i make the profile button pm button webpage button etc get on the top. I know i have to edit in post bit but i have tried and i dont know where to copy the table and where exactly am i supposed to copy it to in postbit template. Also can i have two of these things one on top and one on the bottom.


    p.s.-this one is in chit chat you can delte it cause i accdently posted it there first
    My FFXI Linkshell Website
    - http://www.stealthvertigo.com
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73981

    #2
    In postbit there are two table rows (signified by the HTML tag <TR>). Move the bottom one to the top.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • kdog316
      Senior Member
      • May 2001
      • 172

      #3
      actually there are three because of that foler icon thing where it says what time you posted
      My FFXI Linkshell Website
      - http://www.stealthvertigo.com

      Comment

      • kdog316
        Senior Member
        • May 2001
        • 172

        #4
        ok i took both the time you posted <tr> and the <tr> with the buttons and moved them ontop of the first <tr> and here is what i get
        My FFXI Linkshell Website
        - http://www.stealthvertigo.com

        Comment

        • Wayne Luke
          vBulletin Technical Support Lead
          • Aug 2000
          • 73981

          #5
          Originally posted by kdog316
          actually there are three because of that foler icon thing where it says what time you posted
          Actually this is a separate table cell (denoted by the <TD> tags around it) that is in the same row as the Profile, email and other icons.

          The reason your code is messed up is because you didn't move the entire row.

          Table structure 101

          <table> <--- Outer Most Layer of Any Table.
          <tr> <- Table Row. This contains one or more cells or headers. You shouldn't put headers in the same row as cells.
          <th> <- Table Header. Used for labels and centers the text. Can
          </th> <- Close tag for a table header.
          </tr> <- Close tag for a table row.
          <tr> <- A new row
          <td> <- A table Cell... One or more can be in a row. Usually holds some sort of data and can hold other complete tables.
          </td> <- Close tag for a table cell.
          </tr>
          </table> <- Close tag for a table.

          Most browsers require the closing tags these days even though the specification says they are optional. Close tags are required to be XHTML 1.0 compliant.

          Now let's look at the template you want to change...
          Here is the code you are looking for:
          Code:
          <tr>
          	<td bgcolor="$post[backcolor]" width="175" height="16" nowrap><smallfont>$onlinestatus $post[foldericon]
          	$post[postdate] <font color="#666686">$post[posttime]</font></smallfont></td>
          	
          	<td bgcolor="$post[backcolor]" width="100%" valign="middle" height="16">
          		<table width="100%" border="0" cellpadding="0" cellspacing="0">
          		<tr valign="bottom">
          			<td><smallfont>
          			$post[profile] $post[pmlink] $post[useremail] $post[homepage] $post[search] $post[buddy]
          			<!-- $ post[icqicon] --> <!-- $ post[aimicon] --> <!-- $ post[yahooicon] --> 
          			</smallfont></td>
          			<td align="right" nowrap><smallfont>
          			<a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="images/edit.gif" border="0" alt="Edit/Delete Message"></a>
          			<a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="images/quote.gif" border="0" alt="Reply w/Quote"></a>
          			</smallfont></td>
          		</tr>
          		</table>
          	</td>
          </tr>
          It is shown in bold below.
          Here is the original:
          Code:
          <table bgcolor="#FFFFFF" width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td width="10"><img width="10" height="1" src="images/space.gif" alt=""></td><td width="100%"><!-- spacer -->
          
          <table cellpadding="0" cellspacing="0" border="0" bgcolor="#555576"  width="100%" align="center"><tr><td>
          <table cellpadding="4" cellspacing="1" border="0"  width="100%">
          <tr>
          	<td bgcolor="$post[backcolor]" width="175" valign="top" nowrap>
          	<a name="post$post[postid]"></a>
          	$post[firstnewinsert]
          	<normalfont><b>$post[username]</b></normalfont><br>
          	<smallfont>$post[usertitle]</smallfont><br>
          	$post[avatar]<p>
          	<smallfont>Registered: $post[joindate]<br>
          	Location: $post[field2]<br>
          	Posts: $post[posts]</smallfont></td>
          	
          	<td bgcolor="$post[backcolor]" width="100%" valign="top">
          	<smallfont>$post[icon] <b>$post[title]</b></smallfont>
          	<p><normalfont>$post[message]</normalfont></p>
          	$post[attachment]
          	<p>$post[signature]</p>
          	<p>$post[editedby]</p>
          	<p align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></p>
          	</td>
          </tr>
          [b]<tr>
          	<td bgcolor="$post[backcolor]" width="175" height="16" nowrap><smallfont>$onlinestatus $post[foldericon]
          	$post[postdate] <font color="#666686">$post[posttime]</font></smallfont></td>
          	
          	<td bgcolor="$post[backcolor]" width="100%" valign="middle" height="16">
          		<table width="100%" border="0" cellpadding="0" cellspacing="0">
          		<tr valign="bottom">
          			<td><smallfont>
          			$post[profile] $post[pmlink] $post[useremail] $post[homepage] $post[search] $post[buddy]
          			<!-- $ post[icqicon] --> <!-- $ post[aimicon] --> <!-- $ post[yahooicon] --> 
          			</smallfont></td>
          			<td align="right" nowrap><smallfont>
          			<a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="images/edit.gif" border="0" alt="Edit/Delete Message"></a>
          			<a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="images/quote.gif" border="0" alt="Reply w/Quote"></a>
          			</smallfont></td>
          		</tr>
          		</table>
          	</td>
          </tr>[/b]
          </table>
          </td></tr></table>
          
          <!-- spacer --></td><td width="10"><img width="10" height="1" src="images/space.gif" alt=""></td></tr></table>
          Simply change the original to look like:
          Code:
          <table bgcolor="#FFFFFF" width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td width="10"><img width="10" height="1" src="images/space.gif" alt=""></td><td width="100%"><!-- spacer -->
          
          <table cellpadding="0" cellspacing="0" border="0" bgcolor="#555576"  width="100%" align="center"><tr><td>
          <table cellpadding="4" cellspacing="1" border="0"  width="100%">
          [b]<tr>
          	<td bgcolor="$post[backcolor]" width="175" height="16" nowrap><smallfont>$onlinestatus $post[foldericon]
          	$post[postdate] <font color="#666686">$post[posttime]</font></smallfont></td>
          	
          	<td bgcolor="$post[backcolor]" width="100%" valign="middle" height="16">
          		<table width="100%" border="0" cellpadding="0" cellspacing="0">
          		<tr valign="bottom">
          			<td><smallfont>
          			$post[profile] $post[pmlink] $post[useremail] $post[homepage] $post[search] $post[buddy]
          			<!-- $ post[icqicon] --> <!-- $ post[aimicon] --> <!-- $ post[yahooicon] --> 
          			</smallfont></td>
          			<td align="right" nowrap><smallfont>
          			<a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="images/edit.gif" border="0" alt="Edit/Delete Message"></a>
          			<a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="images/quote.gif" border="0" alt="Reply w/Quote"></a>
          			</smallfont></td>
          		</tr>
          		</table>
          	</td>
          </tr>[/b]
          <tr>
          	<td bgcolor="$post[backcolor]" width="175" valign="top" nowrap>
          	<a name="post$post[postid]"></a>
          	$post[firstnewinsert]
          	<normalfont><b>$post[username]</b></normalfont><br>
          	<smallfont>$post[usertitle]</smallfont><br>
          	$post[avatar]<p>
          	<smallfont>Registered: $post[joindate]<br>
          	Location: $post[field2]<br>
          	Posts: $post[posts]</smallfont></td>
          	
          	<td bgcolor="$post[backcolor]" width="100%" valign="top">
          	<smallfont>$post[icon] <b>$post[title]</b></smallfont>
          	<p><normalfont>$post[message]</normalfont></p>
          	$post[attachment]
          	<p>$post[signature]</p>
          	<p>$post[editedby]</p>
          	<p align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></p>
          	</td>
          </tr>
          </table>
          </td></tr></table>
          
          <!-- spacer --></td><td width="10"><img width="10" height="1" src="images/space.gif" alt=""></td></tr></table>

          If you copy and paste this you might want to change the colors and paths to reflect your replacement variables like they do in the original in your control panel.
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API

          Comment

          • kdog316
            Senior Member
            • May 2001
            • 172

            #6
            thank you

            now what if i wanted to add another table like the one that the buttons arei n but to the bottom where they used to be how do i do that
            My FFXI Linkshell Website
            - http://www.stealthvertigo.com

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...