View Full Version : [HowTo] Tweaking the $postbit template
Floris
Wed 22nd May '02, 9:07am
[HowTo] Tweaking the $postbit template
What does this one do?
When you view a thread, each post might have an attachment, a signature, the report/ip links and could hold 'edited by' line. But they aren't sticky to the bottom of the table cell, and they are not in their right place (that is what I think).
This tweak will put the content of the postbit into its own table which makes it possible to align them properly, give those elements their own place in the postbit template and lets you set the height to 100%, so it can stick to the bottom of the cell. The result is a cleaned up version of the default postbit template, a tweak.
Why did you make it?
Personally, I was hoping vBulletin was default by this, but unfortn. not, and I guess they have their reasons for it. But still, I wanted this, and I had a lot of users requesting me if I could make it. After a few horrible failures, here it is. So I hope it is good enough. And maybe in time, it gets better! I just thought it was smart to share my first successful attempt.
(note: this is not working 100% in all browsers, so consider it beta until I tag it otherwise) (22-05-2002 @ 14:00)
(update 1: 22-05-2002 @ 23:45)
(update 2: 21-07-2002 @ 22:45)
So far I have been able to get this to work in Internet Explorer 6.0 and Mozilla 1.x for 100% - I did not find any incorrect alignments and placing of the cells.
I have not been able to get this to work in Opera 6.02 - 0% - stupid browser!
I won't even bother checking in Netscrape. Since they use same engine etc as Mozilla.
I will also clean up this post in the future. But for now, let's just share this as I have it working on my site.
The support for this is going as far as I can get it to work. So be sure you have a backup of a working template for your board (Don't just trust that [revert to original], otherwise I wouldn't be getting those damn PM's every day by users asking for it)
Ok, here goes.
Installation steps:
1- postbit template > [change original] (or [edit]) and find:
<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>
2- replace that part with:
<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" >$post[attachment]$post[signature]</td>
</tr>
<tr>
<td bgcolor="$post[backcolor]" align="left" valign="bottom" height="8"><br>$post[editedby]</td>
<td bgcolor="$post[backcolor]" align="right" valign="bottom" height="8"><br><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>
3- Save the template
Done!
Version?
Tested with vBulletin 2.2.6 and works just great! - on default test board (localhost) and on my public board (which is a little bit more modded).
The Result
Check the next two posts.
Feel free to post improvements (as long as they are clear and don't require code-hacking (for that, goto vBulletin.org please) ok)
Floris
Wed 22nd May '02, 9:08am
The original $postbit template will make a post look like this
Floris
Wed 22nd May '02, 9:08am
This tweak to the $postbit template will make a post show up like this
Dean C
Wed 22nd May '02, 3:14pm
xiphoid... u are god in every sense lol...
ive wanted this done for a long time now... works like magic...
thankyou so much :D
Floris
Wed 22nd May '02, 4:13pm
Originally posted by Mist
xiphoid... u are god in every sense lol...
ive wanted this done for a long time now... works like magic...
thankyou so much :D
I am not a god, and I bet someone else has done this before already.
I am happy to read that it worked like magic on your board. I would be happy to see an example (screenshot/url?) of that.
So far, I only had one question, asked by a few users: But ... and the awnser is: Break the row up in two columns, then you can use the Multiple Quotes hack and/or the PostID link in post hack. Altering the html is simple, since it is just plain html. Ok!
Oh and mist, did you find any troubles with aligning etc on other browsers and/or solutions for that?
VeRTeX
Wed 22nd May '02, 4:36pm
hey great job xiph, like always kicking ass, i couldnt stand that gap
now help me out for some reason all the image attachments i have on auto show and all of them are to the right of the post, help = ]
Xanthine
Wed 22nd May '02, 5:59pm
Works good but i had a few minor issues, fixed em tho and thanks :)
Xanthine
Wed 22nd May '02, 6:01pm
Vertex try doing
<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><br>
<td bgcolor="$post[backcolor]" colspan="2" align="left" valign="bottom"> $post[attachment]</td>
<tr>
<td bgcolor="$post[backcolor]" colspan="2" align="left" valign="bottom" height="25">$post[signature]</td>
</tr>
<tr>
<td bgcolor="$post[backcolor]" align="left" valign="top" height="8">$post[editedby]</td>
<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>
I had the same problem but i fixed it, i think that was the way. I also had some issues with my signatures being squished, tell me if your geting the same cuz i think i can help you out there too.
Floris
Wed 22nd May '02, 6:34pm
Originally posted by VeRTeX
hey great job xiph, like always kicking ass, i couldnt stand that gap
now help me out for some reason all the image attachments i have on auto show and all of them are to the right of the post, help = ]
Screenshot?
The td says align="left", so I wonder why they show up right!
Originally posted by Xanthine
Works good but i had a few minor issues, fixed em tho and thanks :)
Nice to hear that you like it and that it works.
Which issues did you run into, and how did you sort them?
Maybe your fixed version of what is between the <td>..</td> tags improves for most. Share!
By the way, I don't see any changes in the code you pasted xant. but the <br> between the </tr><tr> tags.. I am not sure if that is correct html.. but if it works in all browsers (who cares!)
Xanthine
Wed 22nd May '02, 6:43pm
Ok im not sure then heres my entire postbit see if you can figure it out:
<table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="0" cellspacing="0" border="0"><tr><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td><td width="100%"><!-- spacer -->
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} 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> $onlinestatus</normalfont><br>
<smallfont>$post[usertitle]</smallfont><br>
$post[avatar]<br>
<smallfont>Registered: $post[joindate]<br>
Location: $post[field2]<br>
Posts: $post[posts]</smallfont></td>
<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">$post[icon] <smallfont><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><br>
<td bgcolor="$post[backcolor]" colspan="2" align="left" valign=bottom>$post[attachment]</td>
<tr>
<td bgcolor="$post[backcolor]" colspan="2" align="left">$post[signature]</td>
</tr>
<tr>
<td bgcolor="$post[backcolor]" align="left" valign="top" height="8">$post[editedby]</td>
<td bgcolor="$post[backcolor]" align="right" valign="top" height="8"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="$post[backcolor]" width="175" height="16" nowrap><smallfont>$post[foldericon]
$post[postdate] <font color="{timecolor}">$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="report.php?s=$session[sessionhash]&postid=$post[postid]"><img src="{imagesfolder}/report.gif" border="0" alt="Report this Post"></a>
<a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="{imagesfolder}/edit.gif" border="0" alt="Edit/Delete Message"></a>
<a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="{imagesfolder}/quote.gif" border="0" alt="Reply w/Quote"></a>
</smallfont></td>
</tr>
</table>
</td>
</tr>
</table>
</td></tr></table>
<!-- spacer --></td><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td></tr></table>
Xelation
Wed 22nd May '02, 11:38pm
damn great template edit, gonna be a bitch for me... I have a custom postbit, and it keeps ****ing up the postbit... I hope I can figure it out. :)
Dark_Wizard
Fri 24th May '02, 9:52am
Awesome hack...was thinking of doing this but was too lazy!
pHAZE_1
Sat 25th May '02, 4:47pm
my postbit is custom (just barely) and when i made an attachement it messed up pretty good.. i removed it, but just wanted you to know it jacked up the tables
Majestic3d
Sun 26th May '02, 4:54am
Great template edit man, just a slight problem. When i attatch a file to my post it appears to the right. You know what the problem is ? Here is my postbit templte:
<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]<br><br>Threads : $usertherdcoun <br>
Replies : $userpostdcoun<br></smallfont></td>
<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>
<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>
<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>
</tr>
<tr>
<td bgcolor="$post[backcolor]" width="175" height="16" nowrap><smallfont>$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>$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="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>
</table>
</td></tr></table>
<!-- spacer --></td><td width="10"><img width="10" height="1" src="images/space.gif" alt=""></td></tr></table>
DBZFanCentral
Sun 26th May '02, 4:41pm
Majestic3d: Use the code I have provided below
<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" >$post[signature]</td>
</tr>
<tr>
<td bgcolor="$post[backcolor]" colspan="2" align="left" valign="bottom" height="20">
$post[attachment]</td>
</tr>
<tr>
<td bgcolor="$post[backcolor]" align="left" valign="top" height="8" width="73%">$post[editedby]</td>
<td bgcolor="$post[backcolor]" align="right" valign="top" height="8" width="27%">
<div align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report
this post to a moderator</a> | $post[iplogged]</smallfont></div>
</td>
</tr>
</table>
</td>
The problem you were getting is caused cuz of this bit of code:
<tr>
<td bgcolor="$post[backcolor]" colspan="2" align="left" valign="top"><p><normalfont>$post[message]</normalfont></p></td>
<td bgcolor="$post[backcolor]" colspan="2" align="left" valign="bottom" height="20"> $post[attachment]</td>
</tr>
That code makes it so that the attachment goes to the right of the message
The difference in the code that I have provided is this part:
<tr>
<td bgcolor="$post[backcolor]" colspan="2" align="left" valign="bottom" height="20">
$post[attachment]</td>
</tr>
<tr>
<td bgcolor="$post[backcolor]" align="left" valign="top" height="8" width="73%">$post[editedby]</td>
<td bgcolor="$post[backcolor]" align="right" valign="top" height="8" width="27%">
<div align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report
this post to a moderator</a> | $post[iplogged]</smallfont></div>
</td>
</tr>
What that does is create a new <tr> tag below the signature box, which will house the attachment. Then a new <tr> is created for the "edited by" part and the report thread/ip links. It used a 73% and 27% box width, so that way it will be placed the very right...
I have applied this to my board and it looks great! :)
Floris
Sun 26th May '02, 4:47pm
Mine:
<tr>
<td bgcolor="$post[backcolor]" colspan="2" align="left" valign="bottom" height="20">
$post[attachment]</td>
</tr>
and
Yours:
<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".
DBZFanCentral
Sun 26th May '02, 5:03pm
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
Majestic3d
Sun 26th May '02, 5:16pm
Cheers for the reply and code, inserted it and working 100% a ok. Ty very much.
Floris
Sun 26th May '02, 5:22pm
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.
DBZFanCentral
Sun 26th May '02, 5:44pm
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
<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
<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! :)
Pauline
Mon 27th May '02, 2:13pm
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/showthread.php?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 :)
Floris
Mon 27th May '02, 2:51pm
I have no idea what you mean,
your postbit looks the same as here on vbulletin
Pauline
Mon 27th May '02, 3:26pm
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 :)
Pauline
Mon 27th May '02, 3:40pm
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.
Floris
Mon 27th May '02, 3:59pm
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.
DBZFanCentral
Mon 27th May '02, 5:35pm
Originally posted by xiphoid
b) I am not having that problem when I surf your site. Looks just good.
same here
scsa20
Sat 22nd Jun '02, 6:53pm
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:
<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
ZiRu$
Sun 23rd Jun '02, 3:34am
i dont notice a change in the 2 screens :confused: :confused: :confused:
Floris
Sun 23rd Jun '02, 4:43am
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?
scsa20
Sun 23rd Jun '02, 6:35am
Originally posted by Hot Dogg
i dont notice a change in the 2 screens :confused: :confused: :confused:
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 :(
scsa20
Wed 26th Jun '02, 4:47pm
*3 day bump*
Floris
Wed 26th Jun '02, 5:51pm
Originally posted by scsa20
*3 day bump* Don't bump this thread, it is useless.
CeleronXT
Sun 21st Jul '02, 4:35pm
Worked nicely, but there were some alignment problems. This was the code I ended up having to use in the end:
<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.
Floris
Sun 21st Jul '02, 5:23pm
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
Xer
Mon 9th Sep '02, 3:35pm
thx working on 2.2.7
Floris
Mon 28th Oct '02, 9:10am
Originally posted by Xer
thx working on 2.2.7
And 2.2.8 (at least on my localhost)
Powered by vBulletin™ Version 4.0.0 Beta 4 Copyright © 2009 vBulletin Solutions, Inc. All rights