Announcement

Collapse
No announcement yet.

postbit Template

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

  • postbit Template

    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
    I&#039;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!

    Comment


    • #3
      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
      Attached Files
      James Limm

      Comment


      • #4
        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.

        Comment


        • #5
          that's weird, in Dreamweaver it is very doable. I edit all the templates in there. I only get the ocational incorrect tag.
          Attached Files
          - Insert viable disclaimer here -

          ArtBeast!

          Comment


          • #6
            I put my templates into frontpage and remove any extra crap it puts at the top and they work great!

            Comment

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