Announcement

Collapse
No announcement yet.

[HowTo] Tweaking the $postbit template

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

  • Floris
    replied
    Originally posted by Xer
    thx working on 2.2.7
    And 2.2.8 (at least on my localhost)

    Leave a comment:


  • Xer
    replied
    thx working on 2.2.7

    Leave a comment:


  • Floris
    replied
    fnx
    and i will check it out on my localhost board first .


    [update]
    works nice,
    but attachments are now showing up in the middle of the posts. [trying to fix that now]

    [update2]
    I got it fixed.
    _updated first post to reflect changes_

    It has code gathered from all of the above posts. Thank you guys. So far, we have this working 100% in ie6 and mozilla 1.x Opera 6.02 is still 0% sigh!
    Your code didn't work on my system with o6 either
    Last edited by Floris; Mon 28 Oct '02, 4:09am.

    Leave a comment:


  • CeleronXT
    replied
    Worked nicely, but there were some alignment problems. This was the code I ended up having to use in the end:

    Code:
    <td bgcolor="$post[backcolor]" width="100%" height="100%" valign="top">
    <table width="100%" border="0" cellpadding="0" align="left" height="100%">
      <tr> 
        <td bgcolor="$post[backcolor]" colspan="2" align="left" valign="top" height="20"><smallfont>$post[icon] <b>$post[title]</b></smallfont></td>
      </tr>
      <tr> 
        <td bgcolor="$post[backcolor]" colspan="2" align="left" valign="top"><p><normalfont>$post[message]</normalfont></p></td>
      </tr>
      <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>
      <tr> 
        <td bgcolor="$post[backcolor]" align="left" valign="top" height="8">$post[editedby]</td>
      </tr>
      <tr>
        <td bgcolor="$post[backcolor]" align="right" valign="top" height="8"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></td>
      </tr>
    </table>
    </td>
    It has a few extra <tr>'s and </tr>'s.

    Leave a comment:


  • Floris
    replied
    Originally posted by scsa20
    *3 day bump*
    Don't bump this thread, it is useless.
    Last edited by Floris; Mon 28 Oct '02, 4:09am.

    Leave a comment:


  • scsa20
    replied
    *3 day bump*

    Leave a comment:


  • scsa20
    replied
    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

    Leave a comment:


  • Floris
    replied
    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 28 Oct '02, 4:09am.

    Leave a comment:


  • ZiRu$
    replied
    i dont notice a change in the 2 screens

    Leave a comment:


  • scsa20
    replied
    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 23 Jun '02, 1:39am.

    Leave a comment:


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

    Leave a comment:


  • Floris
    replied
    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 28 Oct '02, 4:09am.

    Leave a comment:


  • Pauline
    replied
    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.

    Leave a comment:


  • Pauline
    replied
    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

    Leave a comment:


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

    Leave a comment:

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