+ Reply to Thread
Results 1 to 6 of 6

Thread: postbit Template

  1. #1
    Senior Member jimbo is on a distinguished road
    Join Date
    Apr 2000
    Posts
    102
    Is this the best way to move the icons (profile, email, quote, etc.) and time/date above the message, like the traditional UBB?? I've been playing around with it, but I can't get it to look quite right. Anyone have any tweaks?


    Code:
    <tr bgcolor="$backcolor">
    <TD width="20%" valign="top" nowrap>
    
    <table width="100%" cellpadding="4" cellspacing="0" border="0">
    <tr><td width="100%">
    
    $firstnewname
    <FONT SIZE="2" FACE="arial, helvetica"><B>$username</B></font><br>
    <FONT SIZE="1" FACE="verdana,arial,helvetica">$usertitle</font><br><br>
    <FONT SIZE="1" FACE="verdana,arial,helvetica">Registered: $userjoindate<br>
    Posts: $userpostcount</font>
    
    </td></tr></table>
    
    </td><td valign="top" width="80%">
    
    <table width="100%" cellpadding="4" cellspacing="0" border="0">
    <tr><td width="100%">
    
    <table width="100%" border=0 cellpadding=0 cellspacing=0>
    <tr>
    <td width="20%" valign="middle" height="16" valign="middle" nowrap>
    
    $foldericon <FONT SIZE="1" FACE="verdana,arial,helvetica">$postdate $posttime</font>
    </td></tr>
    
    <tr><td align="left valign="middle">
    
    $profile $useremail $homepage 
    <a href="search.php?action=simplesearch&exactname=yes&searchuser=$searchuser">
    <img src="images/find.gif" border=0 alt="Find more posts by $username"></a> ****** 
    <a HREF="editpost.php?action=editpost&postid=$postid">
    <IMG SRC="images/edit.gif"  BORDER=0 ALT="Edit/Delete Message"></A> ** 
    <A HREF="newreply.php?action=newreply&postid=$postid">
    <IMG SRC="images/quote.gif" BORDER=0 ALT="Reply w/Quote"></A><br>
    <hr>
    
    $posticon <FONT SIZE="1" FACE="verdana,arial,helvetica"><B>$postitle</b></font>
    <p><FONT SIZE="2" FACE="arial, helvetica">$message</font></p>
    
    </td></tr></table>
    
    </td></tr>
    
    <tr bgcolor="$backcolor">
    <td width="80%" valign="middle" height="16">
    
    
    
    </td><td align="right" valign="middle" nowrap>
    <FONT SIZE="1" FACE="verdana,arial,helvetica">$iplogged</font>
    </td></tr>
    </table>
    
    </td></tr>
    [Edited by jimbo on 04-20-2000 at 12:30 AM]

  2. #2
    Senior Member Menno is on a distinguished road Menno's Avatar
    Join Date
    Apr 2000
    Location
    Netherlands
    Age
    25
    Posts
    1,226

    I've got a way

    ok, I've got another solution
    Go to the postbit template, copy the entire thing
    get yer WYSIWYG editor (or whatever you prefer)
    and start editing
    when you're done, copy the whole thing back
    - Insert viable disclaimer here -

    ArtBeast!

  3. #3
    Managing Director, Jelsoft James is on a distinguished road James's Avatar
    Join Date
    Apr 2000
    Location
    UK
    Posts
    466
    Blog Entries
    1
    jimbo,

    The postbit template is divided up into two rows - the first one is the user info and message, and the second is the buttons (profile, etc) and the date.

    Here's the standard template code for postbit, and i've added in some comments to show where each of these rows start and end:

    ### start message row###

    <tr bgcolor="$backcolor">
    <TD width="20%" valign="top" nowrap>

    <table width="100%" cellpadding="4" cellspacing="0" border="0">
    <tr><td width="100%">

    $firstnewname
    <FONT SIZE="2" FACE="arial, helvetica"><B>$username</B></font><br>
    <FONT SIZE="1" FACE="verdana,arial,helvetica">$usertitle</font><br><br>
    <FONT SIZE="1" FACE="verdana,arial,helvetica">Registered: $userjoindate<br>
    Posts: $userpostcount</font>

    </td></tr></table>

    </td><td valign="top" width="80%">

    <table width="100%" cellpadding="4" cellspacing="0" border="0">
    <tr><td width="100%">

    $posticon <FONT SIZE="1" FACE="verdana,arial,helvetica"><B>$postitle</b></font>
    <p><FONT SIZE="2" FACE="arial, helvetica">$message</font></p>

    </td></tr></table>

    </td></tr>

    ### end message row ###

    ### start button row ####

    <tr bgcolor="$backcolor">
    <td width="20%" valign="middle" height="16" nowrap>

    $foldericon <FONT SIZE="1" FACE="verdana,arial,helvetica">$postdate $posttime</font>
    </td><td width="80%" valign="middle" height="16">

    <table width="100%" border=0 cellpadding=0 cellspacing=0>
    <tr><td align="left valign="middle">

    $profile $useremail $homepage <a href="search.php?action=simplesearch&exactname=yes &searchuser=$searchuser"><img src="images/find.gif" border=0 alt="Find more posts by $username"></a> ****** <a HREF="editpost.php?action=editpost&postid=$postid" ><IMG SRC="images/edit.gif" BORDER=0 ALT="Edit/Delete Message"></A> ** <A HREF="newreply.php?action=newreply&postid=$postid" ><IMG SRC="images/quote.gif" BORDER=0 ALT="Reply w/Quote"></A>

    </td><td align="right" valign="middle" nowrap>
    <FONT SIZE="1" FACE="verdana,arial,helvetica">$iplogged</font>
    </td></tr>
    </table>

    </td></tr>

    #### end button row ####

    So, to put the buttons on top, copy all the button row code and paste it above the message row code.

    Hope this helps

    All the best,

    James
    James Limm
    Managing Director
    Jelsoft Enterprises Limited

  4. #4
    Senior Member jimbo is on a distinguished road
    Join Date
    Apr 2000
    Posts
    102
    Wow thanks, that works great.

    I don't know why, but for some reason I'm afraid of these templates. I'm so locked into the "old" way of doing things, that I'm not used to being able to control everything. The way you explained that was great, made it much easier to realize what was going on. Thanks!

    Menno- I tried putting that code into HomeSite, but it didn't work very well. It got all fudged up because of all the variables.

  5. #5
    Senior Member Menno is on a distinguished road Menno's Avatar
    Join Date
    Apr 2000
    Location
    Netherlands
    Age
    25
    Posts
    1,226
    that's weird, in Dreamweaver it is very doable. I edit all the templates in there. I only get the ocational incorrect tag.
    - Insert viable disclaimer here -

    ArtBeast!

  6. #6
    vBulletin Developer Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham's Avatar
    Join Date
    May 2000
    Location
    California
    Age
    35
    Posts
    13,941
    Blog Entries
    16
    I put my templates into frontpage and remove any extra crap it puts at the top and they work great!
    vBulletin Developer since Dec 2000

+ Reply to Thread

Similar Threads

  1. Postbit template
    By nuno in forum vBulletin Suggestions and Feedback
    Replies: 21
    Last Post: Wed 25th Dec '02, 5:03am
  2. I need help with my postbit template
    By Ryan McBain in forum vBulletin Templates, Graphics & Styles
    Replies: 5
    Last Post: Sat 25th May '02, 1:05pm
  3. help with postbit template
    By joyce in forum PHP & HTML Questions
    Replies: 0
    Last Post: Mon 18th Feb '02, 10:20pm
  4. Postbit Template
    By express in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 6
    Last Post: Fri 31st Aug '01, 2:50am
  5. Help with postbit template
    By wacnstac in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 3
    Last Post: Tue 8th May '01, 2:08pm

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts