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)

Crazy Mofo 04-30-2002 03:49 AM

@bira man u working overtime here hehe g/j anyways good too see u aint lost ya cool yet i woulda :D

tzlvazrael 04-30-2002 09:24 PM

Stupid question alert!!!

Will this work on 2.2.5?

Thanks in advance
Rick

FWC 05-01-2002 03:17 AM

[QUOTE]Originally posted by tzlvazrael
Will this work on 2.2.5?

tzlvazrael 05-01-2002 05:02 AM

Thanks much for the reply...

Time to install.. :)

Boofo 05-01-2002 11:50 AM

We installed the expand and contract hack and it works great except that we are having a problem now when we contract the posts that if the user doesn't put in a post subject, the message doesn't show anything when it's contracted except the name on the left and the time of day on the right. We notice in here that if there's not a post subject it pulls part of the message out when it's contracted. Does anyone know how we can fix this so it will work like it does on here? Thanks in advance!

FWC 05-01-2002 03:51 PM

It's in this post:

https://vborg.vbsupport.ru/showthrea...627#post206627

It'salways a good idea to read the whole thread before installing a hack. :)

Boofo 05-01-2002 04:56 PM

I thought I had read everything that I needed at the time (Sorry about that). I guess I should have re-read it a little closer. Thanks for pointing it out to me. I have one last question though. Where in the postbit template do I put $post[shortmsg]? I can't find a place that just has $post in it to replace it (or did I miss something else in the thread that I should have read?) Thank you in advance.

Erwin 05-02-2002 02:56 AM

I am curious to know if there is any way that when a post is collapsed that we can prevent all the images files including the avatars, smilies etc. from being downloaded - and make these images only download when a post is expanded. This way, a lot of bandwidth can be saved if collapsed posts do not have the image files downloaded, only expanded posts. (At the moment, everything is downloaded whether the post is contracted or expanded, which is good because when you hit the plus image you see all the images, but does waste server bandwidth if the person doesn't expand the post).

FWC 05-02-2002 04:23 AM

[QUOTE]Originally posted by Boofo
I thought I had read everything that I needed at the time (Sorry about that). I guess I should have re-read it a little closer. Thanks for pointing it out to me. I have one last question though. Where in the postbit template do I put $post[shortmsg]? I can't find a place that just has $post in it to replace it (or did I miss something else in the thread that I should have read?) Thank you in advance.

Boofo 05-02-2002 06:55 AM

Worked great, thank you!

KISS 05-03-2002 03:48 AM

Installed Flawlessly... Thanks

Thomas P 05-06-2002 01:15 PM

Very nice, really nifty,
will install this soon :)

Boofo 05-08-2002 10:38 PM

Is there any way to make the censored words work when you are using $shortmsg? It works when the messages are expanded but not when they are contracted. Thank in advance.

sidhighwind 05-16-2002 04:08 PM

I am wondering if you are planning on supporting Mozilla under the IE type because from my test on the forum when i come to this site and even my site the post are contracted when i go to view the posts and it is a pain in the button have to click on the (post #XXX) when ever i want to read a post. just a suggestion.

ok i just made a few changes to get it to show up for Mozilla but when ever i click on the Plus or Minus buttons it does not work. is that a problem with the div tags or something? i tried switching them to layer tages but that still didnt' work. i know there has to be a way to get this to work for mozilla and netscape 6.x

if anyone has anymore info on how i can get this working it will be much appricated.

thanks in advance.

zeedy2k 05-18-2002 02:08 PM

Does anyone have a vbhacker file for this?

Voltron420 05-18-2002 04:10 PM

[QUOTE]Originally posted by Erwin
I am curious to know if there is any way that when a post is collapsed that we can prevent all the images files including the avatars, smilies etc. from being downloaded - and make these images only download when a post is expanded. This way, a lot of bandwidth can be saved if collapsed posts do not have the image files downloaded, only expanded posts. (At the moment, everything is downloaded whether the post is contracted or expanded, which is good because when you hit the plus image you see all the images, but does waste server bandwidth if the person doesn't expand the post).

Russ 05-28-2002 06:34 AM

FYI: This doesn't work on Mac OS9.x in IE5 or 5.1

In OSX on IE5.1 it works fine, just in Classic Mac, it's stuffed.. something to do with the layers.. I'm working on what's wrong with it.

Russ 05-28-2002 06:48 AM

Found it ... was me.

Be carefull when you put the <a> anchor tag in the first <DIV> that you close the tag with a </a> directly after the anchor.

Ug.

Sorry about the false alarm.

HappyPike 06-07-2002 03:04 AM

Thanks for this great hack, Bira! I installed the hack without any problems. :)

lubavitchteens 06-07-2002 05:46 AM

Looks like a great hac, but is it compatible with version 2.2.6?

Kars10 06-07-2002 07:07 AM

Hi Bira!!
This is a great Hack!!!
Ive installed it on 2.2.5 and it works perfect!! :D

HappyPike 06-07-2002 03:23 PM

[QUOTE]Originally posted by HappyPike
Thanks for this great hack, Bira! I installed the hack without any problems. :)

nuno 06-08-2002 01:42 PM

Pike -> https://vborg.vbsupport.ru/showthrea...627#post206627 :)

nuno 06-08-2002 01:42 PM

nice hack bira :)
thanx

James Cridland 06-16-2002 05:06 PM

I think I've found a bug in this hack (not really a bug, but read on).

If you enable this hack on MSIE6, it works just fine. Then, use it on Mozilla, and it also works... it contracts old posts. The problem is, it doesn't give you the + and - buttons. This means that you are unable to expand the already contracted threads using Mozilla.

Because the user control panel portion only appears, like the rest of the hack, when using MSIE, I can't go and turn off this behaviour, either, since it's invisible.

Could I suggest...

1. That Mozilla users, or non-supported browsers, get all messages expanded anyway
-and/or
2. That if the user control panel option is "on", it always gets displayed.

What does anyone else think?

sidhighwind 06-17-2002 11:11 AM

[QUOTE]Originally posted by James Cridland
I think I've found a bug in this hack (not really a bug, but read on).

If you enable this hack on MSIE6, it works just fine. Then, use it on Mozilla, and it also works... it contracts old posts. The problem is, it doesn't give you the + and - buttons. This means that you are unable to expand the already contracted threads using Mozilla.

Because the user control panel portion only appears, like the rest of the hack, when using MSIE, I can't go and turn off this behaviour, either, since it's invisible.

Could I suggest...

1. That Mozilla users, or non-supported browsers, get all messages expanded anyway
-and/or
2. That if the user control panel option is "on", it always gets displayed.

What does anyone else think?

Ambex Net 06-24-2002 07:29 PM

Ok I seem to have a problem here.

View any of m y posts at my board and the plus/minus image comes up before the users name, then the users name is put below that like with a br, but there is no br. I think it's because I use glow around names. How can i get it to be on the same line?

http://forums.ambex.net

Martin64 07-15-2002 06:02 PM

Sweet hack - installed without problems. :)
Did some postbit modifications since mine has been altered quite a bit from the original and now it's working great. :D

Martin64 07-16-2002 11:47 PM

I don't know if this is possible, but it would be sweet if in the contracted posts, it would parse links, output bold/italic text, show smilies etc. Know what I mean? Not a big deal, but it would look better. :P

Heineken77 07-20-2002 05:55 PM

Hi there :)


For some reason I'm not seeing Expand All|Contract All anywhere :(

Also, I tried the modifications to make the first post stay open, but it didn't seem to work for me :( I'm using 2.2.6

I love this hack, I just wish I could get it right. Could I please get some help if anyone wouldn't mind?

Sincerely,
Heineken

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 04:07 AM.

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.01555 seconds
  • Memory Usage 1,907KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (40)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