Resize people posts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • unknownkind
    New Member
    • Oct 2005
    • 13
    • 3.5.0 Pre-Release

    Resize people posts

    How do I resize peoples posts? Because the forum is wider than the post since I resized the skin...

    Unknown
  • Onimua
    Senior Member
    • Apr 2005
    • 4572

    #2
    Can your post what you have in your template after the <!-- / toolbar --> portion (at least ten or so lines after that) from your postbit?

    I believe it has to do with the following:
    HTML Code:
    <div align="center">
        <div class="page" style="width:80%; text-align:left">
            <div style="padding:0px 25px 0px 25px">
    Probably by changing the style="width:80%; to style="width:100%;.
    Congratulations on the death of vBulletin, Internet Brands.

    Comment

    • unknownkind
      New Member
      • Oct 2005
      • 13
      • 3.5.0 Pre-Release

      #3
      Code:
      <!-- post #$post[postid] -->
      
      <if condition="$show['spacer']">
      $spacer_open
      <div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
        <if condition="!$post['islastshown']">
          <!-- this is not the last post shown on the page -->
        </if>
        </if>
        <table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
          <tr>
            <td class="thead" $post[scrolltothis]><div class="normal" style="float:$stylevar[right]">&nbsp; 
                <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a> &nbsp;</if>
                <a href="#top" onClick="return toggle_collapse('postbit_$post[postid]')"><img id="collapseimg_postbit_$post[postid]" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[$collapseimg_postid].gif" alt="" border="0" /></a>
               
               
                </div>
              <div class="normal">
                <!-- status icon and date -->
                
                <a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>&nbsp; 
                
               
              
                  $post[iplogged]&nbsp;<if condition="$show['reputationlink']"><a href="#" onclick="reputation($post[postid]); return false;"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></if> <if condition="$show['reportlink']">&nbsp;<a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if><if condition="$show['inlinemod']">&nbsp;<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" />
                  &nbsp;</if>
                
                </div></td>
          </tr>
          <tr>
            <td class="alt2" style="padding:0px"><!-- user info -->
              <table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
                <tr>
                  <if condition="$show['avatar']">
                    <td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a><td>
                  </if>
                  <td nowrap="nowrap"><div id="postmenu_$post[postid]">
                      <if condition="$show['profile']"> <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a> $post[onlinestatus]
                        <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                        <else />
                        $post[musername] </if>
                    </div>
                    <if condition="$post['usertitle']">
                      <div class="smallfont">$post[usertitle]</div>
                    </if>
                    <if condition="$post['rank']">
                      <div class="smallfont">$post[rank]</div>
                    </if>
                    <if condition="$show['reputation']">
                      <if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if>
                      <div>$post[reputationdisplay]</div>
                    </if>
                  </td>
                  <td width="100%">&nbsp;</td>
                  <td valign="top" nowrap="nowrap"><div class="smallfont">
                      <div>$vbphrase[posts]: $post[posts]</div>
                      <if condition="$post['joindate']">
                        <div>$vbphrase[join_date]: $post[joindate]</div>
                      </if>
                      <if condition="$post['field2']">
                        <div>$vbphrase[location_perm]: $post[field2]</div>
                      </if>
                      <if condition="$post['age']">
                        <div>$vbphrase[age]: $post[age]</div>
                      </if>
                      <div style="padding:2px 0px 2px 0px;"></div>
                      <div>$post[icqicon]$post[aimicon]$post[msnicon]$post[yahooicon]</div>
                    </div></td>
                </tr>
              </table>
              <!-- / user info -->
            </td>
          </tr>
          <tr>
            <td class="alt1" id="collapseobj_postbit_$post[postid]" style="{$GLOBALS['vbcollapse']['collapseobj_postbit_' . $post[postid]]};"><!-- message, attachments, sig -->
              <div class="smallfont">
                <if condition="$show['messageicon'] OR $post['title']">
                  <!-- icon and title -->
                  <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
                  <if condition="$post['title']"><strong>$post[title] - </strong></if>
                  <!-- status icon and date -->
                </if>
                <if condition="!$show['announcement']"> $post[postdate]
                  <if condition="!$show['detailedtime']">, $post[posttime]</if>
                  <else />
                  <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
                </if>
                $post[firstnewinsert]
                <!-- / status icon and date -->
              </div><div class="element_postbit_spacer"></div>
              <div class="hr">
                <hr />
              </div><br />
              <!-- message -->
              <div id="post_message_$post[postid]">$post[message]</div>
              <!-- / message -->
              <if condition="$show['attachments']">
                <!-- attachments -->
                <div style="padding:$stylevar[cellpadding]px">
                  
                  <if condition="$show['thumbnailattachment']">
                  <div class="element_postbit_spacer"></div>
                    <div class="smallfont">$vbphrase[attached_thumbnails]:</div>
                          <div class="element_attachment_image">
                           <div style="padding:$stylevar[formspacer]px"> $post[thumbnailattachments]</div>
                          </div>
                   </if>
                 
                 
                  <if condition="$show['imageattachment']">
                    <div class="element_postbit_spacer"></div>
                    <div class="smallfont">$vbphrase[attached_images]:</div>
                    <div class="element_attachment_image"><div style="padding:$stylevar[formspacer]px"> $post[imageattachments] </div>
                    </div>
                  </if>
                  
                  
                  <if condition="$show['imageattachmentlink']">
                    <div class="element_postbit_spacer"></div>
                    <div class="smallfont">$vbphrase[attached_images]:</div>
                    <div class="element_attachment_image"><table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                      $post[imageattachmentlinks]
                    </table>
                    </div>
                  </if>
                  
                  
                  <if condition="$show['otherattachment']">
                    <div class="element_postbit_spacer"></div>
                    <div class="smallfont">$vbphrase[attached_files]:</div>
                    <div class="element_attachment_file"><table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                     $post[otherattachments]
                    </table>
                    </div>
                  </if>
                  
                  
                  <if condition="$show['moderatedattachment']">
                    <div class="element_postbit_spacer"></div>
                    <div class="smallfont">$vbphrase[attachments_pending_approval]:</div>
                    <div class="element_attachment_pending"><table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                     $post[moderatedattachments]
                    </table>
                    </div>
                  </if>
                  
                </div>
                <!-- / attachments -->
              </if>
              <if condition="$post['signature']">
                <!-- sig -->
                <div> <br />
                  <div class="hr" style="width: 100px;">
                    <hr />
                  </div><div class="element_postbit_spacer"></div>
                  $post[signature] </div>
                <!-- / sig -->
              </if>
              <if condition="$show['postedited']"><div class="element_postbit_spacer"></div>
                <div class="hr">
                  <hr />
                </div><div class="element_postbit_spacer"></div>
                <!-- edit note -->
                <div class="smallfont">
                  <em>
                  <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>
                  .
                  <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
                  </em> </div>
                <!-- / edit note -->
              </if>
              <br />
              <div align="$stylevar[right]">
                <!-- controls -->
                <if condition="$post['editlink']">
                  <div style="float:left"><a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a></div>
                </if>
                <if condition="$post['forwardlink']"> <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a> </if>
                <if condition="$post['replylink']">
                <a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
                </if>
                <if condition="$show['quickreply'] AND !$show['threadedmode']"> <a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a> </if>
                <if condition="$show['moderated']"> <img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" /> </if>
                <!-- / controls -->
              </div>
              <!-- message, attachments, sig -->
            </td>
          </tr>
        </table>
        <!-- post $post[postid] popup menu -->
        <div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
          <table cellpadding="4" cellspacing="1" border="0">
            <tr>
              <td class="thead">$post[username]</td>
            </tr>
            <if condition="$show['profile']">
              <tr>
                <td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td>
              </tr>
            </if>
            <if condition="$show['pmlink']">
              <tr>
                <td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]">
                  <phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase>
                  </a></td>
              </tr>
            </if>
            <if condition="$show['emaillink']">
              <tr>
                <td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow">
                  <phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase>
                  </a></td>
              </tr>
            </if>
            <if condition="$show['homepage']">
              <tr>
                <td class="vbmenu_option"><a href="$post[homepage]">
                  <phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase>
                  </a></td>
              </tr>
            </if>
            <if condition="$show['search']">
              <tr>
                <td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow">
                  <phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase>
                  </a></td>
              </tr>
            </if>
            <if condition="$post['userid'] AND $show['member']">
              <tr>
                <td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]">
                  <phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase>
                  </a></td>
              </tr>
            </if>
          </table>
        </div>
        <!-- / post $post[postid] popup menu -->
        <if condition="$show['spacer']">
      </div>
      $spacer_close
      </if>
      <!-- / post #$post[postid] -->

      Comment

      • Onimua
        Senior Member
        • Apr 2005
        • 4572

        #4
        In case anyone wonders: Fixed the situation.
        Congratulations on the death of vBulletin, Internet Brands.

        Comment

        • peterska2
          Senior Member
          • Oct 2003
          • 8869
          • 3.7.x

          #5
          For the record incase anyone else has the same problem, the solution is to remove
          Code:
          <!-- post #$post[postid] -->
          
          <if condition="$show['spacer']">
          $spacer_open
          <div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
            <if condition="!$post['islastshown']">
              <!-- this is not the last post shown on the page -->
            </if>
            </if>
          and
          Code:
          <if condition="$show['spacer']">
          </div>
          $spacer_close
          </if>
          <!-- / post #$post[postid] -->
          from the template as they are duplicated in 3.6.x with the addition of the new postbit_wrapper template.

          This applies to both the postbit and postbit legacy templates.


          Removing these sections of code is not as effective as the revert of the template however, as there are a lot more changes made to the postbit template for the ajax reputation, infractions, and quick edit loading icon.

          Comment

          • Djamil
            Member
            • Jan 2006
            • 41
            • 3.5.x

            #6
            I apologize for bumping this aged posting, but your info did help me a great deal in upgrading from 3.5.8 to 3.7. Just wanted to let you know.

            Djamil

            Comment

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