Announcement

Collapse
No announcement yet.

[HowTo] Tweaking the $postbit template

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

  • #16
    Mine:
    PHP Code:
    <tr
          <
    td bgcolor="$post[backcolor]colspan="2" align="left" valign="bottom" height="20">
            
    $post[attachment]</td>
        </
    tr
    and

    Yours:
    PHP Code:
    <tr
          <
    td bgcolor="$post[backcolor]colspan="2" align="left" valign="bottom" height="20">
            
    $post[attachment]</td>
        </
    tr
    Are the same.

    And they both break up with <tr> .. below it for the signature etc.
    They are the same, and they both align="left".
    Last edited by Floris; Mon 28th Oct '02, 5:08am.

    Comment


    • #17
      yeah, i know. that bit of code is the same...but i created an additional <tr> tag

      if you have dreamweaver pase both full codes into there and you'll see the diff between urs and mine. urs created a <td> tag in the same <tr> tag that the $post[message] did. mine took it out of that <td> tag and created a new one below the $post[signature] <tr> tag. Then for the last bit i applied % values to the <td> tags of the report thread/ip

      Comment


      • #18
        Cheers for the reply and code, inserted it and working 100% a ok. Ty very much.

        Comment


        • #19
          Originally posted by DBZFanCentral
          yeah, i know. that bit of code is the same...but i created an additional <tr> tag

          if you have dreamweaver pase both full codes into there and you'll see the diff between urs and mine. urs created a <td> tag in the same <tr> tag that the $post[message] did. mine took it out of that <td> tag and created a new one below the $post[signature] <tr> tag. Then for the last bit i applied % values to the <td> tags of the report thread/ip
          Sorry, I didn't quite understand that. now I do.
          I just don't want an attachment below the signature, but only above it.
          Last edited by Floris; Mon 28th Oct '02, 5:08am.

          Comment


          • #20
            Originally posted by xiphoid

            Sorry, I didn't quite understand that. now I do.
            I just don't want an attachment below the signature, but only above it.
            woops! i didn't realize that! lol

            well, simply replace this

            PHP Code:
                <tr
                  <
            td bgcolor="$post[backcolor]colspan="2" align="left" valign="bottom" >$post[signature]</td>
                </
            tr>
                <
            tr
                  <
            td bgcolor="$post[backcolor]colspan="2" align="left" valign="bottom" height="20">
                    
            $post[attachment]</td>
                </
            tr
            with

            PHP Code:
                <tr
                  <
            td bgcolor="$post[backcolor]colspan="2" align="left" valign="bottom" height="20">
                    
            $post[attachment]</td>
                </
            tr>
                <
            tr
                  <
            td bgcolor="$post[backcolor]colspan="2" align="left" valign="bottom" >$post[signature]</td>
                </
            tr
            You can adjust the height="20" to your liking

            cheers!

            Comment


            • #21
              I installed this hack and it has worked a treat! I have a problem though with the line that goes across the bottom of posts not showing up. I was wondering if anyone has any suggestions on how to fix this? If you goto
              http://forums.shiningstarsites.com/s...=&threadid=317
              for example you will see just above the date and time of posts the line that goes above them doesn't go all the way across the post. Any help much appreciated

              Comment


              • #22
                I have no idea what you mean,
                your postbit looks the same as here on vbulletin
                Last edited by Floris; Mon 28th Oct '02, 5:09am.

                Comment


                • #23
                  See the line that goes above the buddy, e-mail, profile icons etc on well it vanished from my forums when I installed the hack. I'll try and do a screen grab to show what I mean

                  Comment


                  • #24
                    Here is a screenshot. If you look (at my badly drawn arrow) you will see the line that should be just above the Buddy, Profile, E-Mail icons etc doesn't go the whole way accross. It stops just above the date and time of the post. I think it is something to do with widths but am not too sure.

                    Comment


                    • #25
                      a) I am not having that problem after applying this <table> within the <td> tag.

                      b) I am not having that problem when I surf your site. Looks just good.
                      Last edited by Floris; Mon 28th Oct '02, 5:09am.

                      Comment


                      • #26
                        Originally posted by xiphoid
                        b) I am not having that problem when I surf your site. Looks just good.
                        same here

                        Comment


                        • #27
                          can you guys help, I tried it on my templates but can't get it to work, here's the code for my postbit template:

                          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>
                          <DIV id="p$post[postid]h" style="display:$ph">
                          <table cellpadding="4" cellspacing="1" border="0"  width="100%">
                          <tr>
                          	<td bgcolor="$post[backcolor]" width="175" valign="top" nowrap>$plusimg	<normalfont><b>$mod_logo$storeextraglow</b></normalfont></td>
                          	<td bgcolor="$post[backcolor]" width="100%" valign="top">
                          		<table width="100% cellspacing="0" cellpadding="0" border="0">
                          		<tr>
                          		<td><smallfont>$post[icon] <b>$post[title]</b></smallfont></td>
                          		<td align="right" nowrap><smallfont>$onlinestatus $post[foldericon] $post[postdate] <font color="#666686">$post[posttime]</font></smallfont><smallfont> 
                          <a href="showthread.php?postid=$post[postid]#post$post[postid]">Post #$countposts</a></smallfont></td>
                          		</tr>
                          		</table>
                          </tr>
                          </table>
                          </DIV>
                          
                          <DIV id="p$post[postid]e" style="display:$pe">
                          <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]
                                          $minusimg
                          	<normalfont><b>$mod_logo$storeextraglow</b></normalfont><br>
                          	<smallfont>$post[usertitle]</smallfont><br>
                                              $post[avatar]<smallfont><br>
                                              Style: <a href='index.php?styleid=$post[styleid]'>$post[styletitle]</a>
                                              </smallfont><br>$goldstars$pips 
                                              <p><br>
                                            <smallfont><b>Level: $showlevel<br>
                                              Member ID: $post[userid]</b></smallfont><br>
                                              HP: $hp / $maxhp 
                                            <table width="100" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000">
                                              <tr> 
                                                <td bgcolor="#9999FF"><img src="images/bar/bhg.gif" width="$hpf%" height="9"><img src="images/bar/bhb.gif" width="1" height="9"></td>
                                              </tr>
                                            </table>
                                            MP: $mp / $maxmp 
                                            <table width="100" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000">
                                              <tr> 
                                                <td bgcolor="#9999FF"><img src="images/bar/bmg.gif" width="$mpf%" height="9"><img src="images/bar/bmb.gif" width="1" height="9"></td>
                                              </tr>
                                            </table>
                                            Exp: $ep% 
                                            <table width="100" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000">
                                              <tr> 
                                                <td bgcolor="#9999FF"><img src="images/bar/bxg.gif" width="$ep%" height="9"><img src="images/bar/bxb.gif" width="1" height="9"></td>
                                              </tr></table>
                                          </td>
                          	
                          	<td bgcolor="$post[backcolor]" width="100%" valign="top">
                          	<table border="0" width="100%"> 
                          <tr> 
                          <td width="85%"> 
                          <smallfont>$post[icon] <b>$post[title] </b></smallfont>
                          </td> 
                          <td width="15%" align="right"> 
                          <smallfont> 
                          <a href="showthread.php?postid=$post[postid]#post$post[postid]">Post #$countposts</a></smallfont></td> 
                          </tr> 
                          </table>
                          	<p><normalfont>$post[message]</normalfont></p>
                          	$post[attachment]
                          	<p>$post[signature]</p>
                          	<p>$post[editedby]</p>
                                          <br>
                                              $post[editedreason] 
                                              <p align="right"><smallfont><a href="javascript:openeditsigwindow(490,320,'$session[sessionhash]','$post[userid]')">Edit 
                                                Sig</a> | <a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report 
                                                this post to a moderator</a> | $donate | $post[iplogged]</smallfont></p>
                          	</td>
                          </tr>
                          <tr>
                          	<td bgcolor="$post[backcolor]" width="175" height="16" nowrap><smallfont>$post[foldericon]
                          	$post[postdate] <font color="#666686">$post[posttime]</font>
                              <br>
                              </smallfont></td>
                          	
                          	<td bgcolor="$post[backcolor]" width="100%" valign="middle" height="16">
                          		<Table width="100%" border="0" cellpadding=0" cellspaceing="0">
                          		<tr valign="bottom">
                          			<td> <smallfont><b>Registered:</b> 
                                      $post[joindate]</smallfont> </td>
                          			<!-- spacer --><td width="10"><img width="10" height="1" src="images/space.gif" alt=""></td>
                          			<td>
                          			<smallfont><b>Local time:</b>  $post[localtime]</smallfont>
                          			</td>
                          			<!-- spacer --><td width="10"><img width="10" height="1" src="images/space.gif" alt=""></td>
                          			<td>
                          			<smallfont><b>Location:</b>  $post[field2]</smallfont>
                          			</td>
                          			<!-- spacer --><td width="10"><img width="10" height="1" src="images/space.gif" alt=""></td>
                          			<td>
                          			<smallfont><b>Sex:</b>  $post[field8]<smallfont>
                          			</td>
                          		</tr>
                          		<tr valign="bottom">
                          			<td>
                          			<smallfont><b>School:</b>  $post[field9]<smallfont>
                          			</td>
                          			<!-- spacer --><td width="10"><img width="10" height="1" src="images/space.gif" alt=""></td>
                          			<td>
                          			<smallfont><b>Posts:</b>  $post[posts]<smallfont>
                          			</td>
                          			<!-- spacer --><td width="10"><img width="10" height="1" src="images/space.gif" alt=""></td>
                          			<td>
                          			<smallfont><b>Points:</b>  $post[storep]<smallfont>
                          			</td>
                          			<!-- spacer --><td width="10"><img width="10" height="1" src="images/space.gif" alt=""></td>
                          			<td>
                          			<smallfont>$flag<smallfont>
                          			</td>
                          		</tr>
                          		</table>
                          		<!-- spacer --><img width="10" height="1" src="images/space.gif" alt="">
                          		<table width="100%" border="0" cellpadding="0" cellspacing="0">
                          		<tr valign="bottom">
                          			<td><smallfont>$onlinestatus
                          			$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="javascript:showwin('store.php?action=rate&postuserid=$post[userid]&postid=$post[postid]&postusername=$post[username]', 'width=550,height=250')"><img src="images/storerate.gif" border="0" alt="Rate This Post"></a>
                          			<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> <input type="checkbox" name="quotes[$post[postid]]">
                          			</smallfont></td>
                          		</tr>
                          		</table>
                          	</td>
                          </tr>
                          </table>
                          </DIV>
                          </td></tr></table>
                          
                          <!-- spacer --></td><td width="10"><img width="10" height="1" src="images/space.gif" alt=""></td></tr></table>
                          here's a pic of what it looks like on a post. any help is helpful
                          Last edited by scsa20; Sun 23rd Jun '02, 2:39am.
                          me won't have a signature for a loooooong time

                          Comment


                          • #28
                            i dont notice a change in the 2 screens

                            Comment


                            • #29
                              Originally posted by scsa20
                              can you guys help, I tried it on my templates but can't get it to work, here's the code for my postbit template:
                              I wish I knew. Which browser was used to take that picture?
                              Last edited by Floris; Mon 28th Oct '02, 5:09am.

                              Comment


                              • #30
                                Originally posted by Hot Dogg
                                i dont notice a change in the 2 screens
                                that's because I gived up on trying and put it back to normal

                                Originally posted by xiphoid

                                I wish I knew. Which browser was used to take that picture?
                                it was taken it Internet Explorer

                                I hope you guys could help
                                me won't have a signature for a loooooong time

                                Comment

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