vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Shrink Old Posts in Thread (https://vborg.vbsupport.ru/showthread.php?t=33060)

wolfe 07-23-2002 12:03 AM

Please help mine is messed up it looks like the attachment

also here is my postbit code whats wrong with it

PHP Code:

<table cellpadding="0" cellspacing="0" border="0" bgcolor="#0A293E"  width="95%" align="center"><tr><td>
<
table cellpadding="0" cellspacing="1" border="0"  width="100%">
<
tr>

    <
td bgcolor="$post[backcolor]width="175" valign="top" nowrap>$plusimg<normalfont><b>$post[username]</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="#FF9C58">$post[posttime]</font></smallfont></td>
        
</tr>
        </
table>
</
tr>
</
table>

<
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
    
<font size="4"><b>$post[username]</b></font><br>
                
$bigstars
                $goldstars
                $pips
<br>
                <
smallfont>$post[usertitle]</smallfont><br>
    
$post[avatar]<br>
<
p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><font face="verdana,arial,helvetica" size="1"><B>LEVEL $level Member ID :
              
$post[userid]</b></font></p>
              <
p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><font face="verdana,arial,helvetica" size="1"><B>MP$maxmp%</font></B></p>
<
table border="1" cellpadding="0" cellspacing="0" width="90%" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#000000">
  <
tr>
    <
td width="100%"><img border="0" src="https://vborg.vbsupport.ru/images/bar1.gif" width="$maxmp%" height="9"></td>
  </
tr>
</
table>
<
font face="verdana,arial,helvetica" size="1"><B>HP$hp%</B>
<
table border="1" cellpadding="0" cellspacing="0" width="90%" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#000000">
  <
tr>
    <
td width="100%"><img border="0" src="https://vborg.vbsupport.ru/images/bar2.gif" width="$hp%" height="9"></td>
  </
tr>
</
table>
<
font face="verdana,arial,helvetica" size="1"><B>EXP$exp%</B>
<
table border="1" cellpadding="0" cellspacing="0" width="90%" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#000000">
  <
tr>
    <
td width="100%"><img border="0" src="https://vborg.vbsupport.ru/images/bar3.gif" width="$exp%" height="9"></td>
  </
tr>
</
table><br>

    <
smallfont>
                
Registered$post[joindate]<br>
    
Location$post[field2]<br>
    
Posts$post[posts]<br>
                
Board Pounds$post[storep$donate<br>
                
Thread Views$post[views]<br>
                
Local Time$post[localtime]<br>
                
Local Date$post[localdate]<br>
                </
smallfont></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>
(
Post# <a href="showthread.php?postid=$post[postid]#post$post[postid]"><smallfont>$countposts</smallfont></a>)</smallfont></td> 
</tr
</
table

    <
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>
</
tr>
<
tr>
    <
td bgcolor="$post[backcolor]width="175" height="16" nowrap><smallfont>$post[foldericon]
    
$post[postdate] <font color="#FF9C58">$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="javascript:showwin('store.php?action=rate&postuserid=$post[userid]&postid=$post[postid]&postusername=$post[username]', 'width=550,height=250')"><img src="https://vborg.vbsupport.ru/images/storerate.gif" border="0" alt="Rate This Post"></a>
            <
a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="https://vborg.vbsupport.ru/images/edit.gif" border="0" alt="Edit/Delete Message"></a>
            <
a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="https://vborg.vbsupport.ru/images/quote.gif" border="0" alt="Reply w/Quote"></a>
            </
smallfont></td>
        </
tr>
        </
table>
    </
td>
</
tr>
</
table>
</
DIV>
</
td></tr></table

please help


also the + and - aint showing :( please help me

wolfe 07-23-2002 01:49 PM

/me Bumps This Thread And Crys For Help

Inferno 07-31-2002 07:23 PM

Only just found this hack and think its one of the most useful I have come across. Really easy to install as well. Thanks a lot bira :)

L8R

Sho 08-13-2002 12:07 PM

Hmm, I remember a "Collapsable forums on forum home" hack that does a similar thing, but also works with MoZilla. I wish this one would work with MoZilla, too ...

SiXXGuNNZ 08-22-2002 06:43 AM

[QUOTE]Originally posted by FireFly
place $post[shortmsg] in the posbit template. :)

Storm 08-29-2002 05:50 AM

Nice hack, installed and works perfectly!

kmfdm_kid2000 08-29-2002 08:40 AM

[QUOTE]Originally posted by SiXXGuNNZ


where abouts to I put it? do I replace anything in postbit? or do I just add it wherever I feel like it?

wolfman 09-01-2002 03:44 AM

I do havea agree that this is a nice hack, though I know I have messed up on the install, nothing seems to be broken though the expand all / contract all does not work. I have tried to go through the reg process to see if there were any problems there and I have found none. The board is up and working fine other than that one problem.

I am running 2.2.6 and I have a few mods installed already any help with this would be welcomed and my thanks for this in advance.

wolfman 09-02-2002 04:56 AM

Well I went back after a good nights sleep and found that I had left one of the steps out. So this was totally my error and this is one of those hacks that are a must have :)

cybrcyfr 09-04-2002 05:49 AM

I really wanted an expand/contract all that is client side. This will not hold state when moving from page to page.

Note that the object I am referencing to get the DIV collection has the id of "tblResults". You will have to modify the "postbit" tempate and add a name to the parent table that encapsules all of the threads.

id="tblResults"

JavaScript Code
[QUOTE]
<script language="JavaScript" type="text/javascript">
<!--
function ExpandAll(){
var objDivs = tblResults.all.tags("DIV");
for(i = 0; i < objDivs.length; i++){
if (objDivs(i).style.display=="none") {
objDivs(i).style.display="";
}else {
objDivs(i).style.display="none";
}
}
}
function ContractAll(){
var objDivs = tblResults.all.tags("DIV");
for(i = 0; i < objDivs.length; i++){
if (objDivs(i).style.display=="show" || objDivs(i).style.display=="") {
objDivs(i).style.display="none";
}else {
objDivs(i).style.display="";
}
}
}
</script>


All times are GMT. The time now is 07:04 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01740 seconds
  • Memory Usage 1,824KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete