PDA

View Full Version : Shrink Old Posts in Thread


Pages : 1 [2]

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/showthread.php?postid=206627#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


<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>

Sho
09-04-2002, 06:45 AM
I found this (http://www.widomaker.com/~reboughner/W3C/council_w3c.htm) and it works with MoZilla (and, therefore, with Netscape 6/7). Could anyone combine this technique with bira's hack, so we get a version working with IE *and* Netscape?

cybrcyfr
09-04-2002, 06:56 AM
Yeah, using the getElementByID() works in Netscape 6, but not 4.

I was planning on getting around to modifying the hack to do it all client side and work in IE, Netscape and Opera. on my todo list.

Check this site out, good stuff http://www.xs4all.nl/~ppk/js/index.html?/~ppk/js/intro.html

Sho
09-04-2002, 07:01 AM
Hm, looks like an interesting read. Thanks! :)

* Sho is back in "learning by doing" mode ...

Sho
09-04-2002, 08:55 AM
Well, with the information on the page you recommended, cybrcyfr, I did the following:


<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--

var supported = (document.getElementById || document.all);

if (supported)
{
document.write("<STYLE TYPE='text/css'>");
document.write(".postbit_regular {display: block}");
document.write(".postbit_hidden {display: none}");
document.write("</STYLE>");

var max = 7;
var data_regular = new Array();
for (var i=1;i<=max;i++)
{
data_regular[i+1] = false;
}

var max = 7;
var data_hidden = new Array();
for (var i=1;i<=max;i++)
{
data_hidden[i+1] = false;
}

}

function contract(i)
{
if (!supported)
{
alert('This link does not work in your browser.');
return;
}
data_regular[i] = (data_regular[i]) ? false : true;
current = (data_regular[i]) ? 'none' : 'block';
if (document.getElementById)
{
document.getElementById('postbit_regular'+i).style .display = current;
}
else if (document.all)
{
document.all['postbit_regular'+i].style.display = current;
}
}

function expand(i)
{
if (!supported)
{
alert('This link does not work in your browser.');
return;
}
data_hidden[i] = (data_hidden[i]) ? false : true;
current = (data_hidden[i]) ? 'block' : 'none';
if (document.getElementById)
{
document.getElementById('postbit_hidden'+i).style. display = current;
}
else if (document.all)
{
document.all['postbit_hidden'+i].style.display = current;
}
}

// -->
</SCRIPT>


... and two <divs> in the "postbit" template as containers, using those CSS classes and IDs. This expands/contracts in both browsers. Note that I have never used JavaScript before, so this might be a piece of s***.

dabean
09-04-2002, 10:36 PM
[QUOTE]Originally posted by Sho
Well, with the information on the page you recommended, cybrcyfr, I did the following:

*snipped interesting javascript*

... and two <divs> in the "postbit" template as containers, using those CSS classes and IDs. This expands/contracts in both browsers. Note that I have never used JavaScript before, so this might be a piece of s***.

NeoGT
09-05-2002, 04:22 AM
Installed the hack, but none of the post quotes (except from the first post) appear on the contracted view. Plus there are these weird squares which have appeared to the left of everyone's name.

Okay I see what those are for now, they're just blank and they don't do anything.

Sho
09-05-2002, 05:05 AM
Too late! ;)

Just finished rewriting bira's hack to fit my needs: completely client-side, working with IE, MoZilla & Netscape 6/7 (=>Gecko). Thanks again to cybrcyfr for linking to his interesting website!

Looking forward to Opera 7 and its improved DOM support, btw. :)

NeoGT
09-05-2002, 07:38 PM
Can anyone help? What's happening is that it only displays the post subjects while in contracted form instead of the first line of the post, like it does at this site. If there is no subject then all I get is a blank line for that post.

havefun
09-19-2002, 07:31 PM
really cool hack!

like it & had no probs.. :banana:

lg, havefun

havefun
09-21-2002, 07:05 PM
when you have chosen in the user CP 'yes' by contract posts:

you enter a link to a special post# th. you will not go to the right position in browser window or only find conracted posts ...

[you only have the prob when you allready have read the post|s.]


do you have any idea? :D
--> after following a post link to find it opened ...

thx 4 your time!
haveFUN
[i love this hack!]

Mike11212
09-25-2002, 11:17 AM
I would like to thank Bira for makeing a wonderful hack.

I am useing it proudly on my site now :)

Mike11212
09-25-2002, 12:56 PM
I need help I don't know what I have done wrong.
It expands and collapses but it doesn't show anything just blank post except for the first one.

ANyone have any idea how to fix

http://www.hardwaregeeks.com/board

just go to any thread and collapse the post you will see what I mean

havefun
09-26-2002, 02:30 PM
[QUOTE]Originally posted by Mike11212
I need help I don't know what I have done wrong.
It expands and collapses but it doesn't show anything just blank post except for the first one.

ANyone have any idea how to fix

http://www.hardwaregeeks.com/board

just go to any thread and collapse the post you will see what I mean

waddy
09-26-2002, 11:18 PM
works fine with 2.2.8 :)

Mike11212
09-27-2002, 04:07 AM
[QUOTE]Originally posted by havefun


everthing works fine! :classic:

this is because the others wrote no 'post subject:'! ;)

havefun
09-27-2002, 09:32 AM
u have nothing made wrong..

that's only a prob with the members who wrote no subject.

i don't know - have the same prob.. :knockedout:
we have to make them clear to write a subject,
cause of contracted posts....

s. havefun

edit:
ok i've tested it here now & here u don't need to write a subject..
there is always shown anything!

so this is modif. by bulletin.org

could anybody help us????????????? :banana:

Lionel
09-28-2002, 06:54 AM
I am an IE user and I have to say that I am really impressed with that new version of netscape. Unfortunately, this great hack here does not seem to display in that browser. No mention of the collapse links, no images to collapse threads. In fact on my browser the second part of a shrunk thread is not viewable at all.

How could that be possible? Are other hacks affected too?

Mike11212
09-28-2002, 07:09 AM
It doesn't work with NS it says it in the read me :P

Mike11212
09-28-2002, 07:09 AM
hmm 2 post in a row I sowwy

but can anyone tell us how vbulletin.org modified this hack?

groovesalad
10-01-2002, 05:12 PM
Is there a way to default the option of having read posts collapsed to Yes instead of No for users? Where can I globally change this option for users on my message board?

Mike11212
10-01-2002, 05:15 PM
there USER CP

groovesalad
10-01-2002, 05:42 PM
One minor problem with this. When I view a thread and leave, then come back, the messages aren't collapsed. It doesn't recognize that I've already viewed that thread. I know this because I have a hack that tells me how many new posts vs. old posts are in the thread and the new posts number never changes. Any ideas?

groovesalad
10-01-2002, 05:43 PM
[QUOTE]Originally posted by Mike11212
there USER CP

Mike11212
10-12-2002, 07:40 PM
yeah i beleive so

groovesalad
10-12-2002, 07:49 PM
I've been to boards where this setting is already set to Yes.

spazeman
11-25-2002, 07:16 AM
[QUOTE]Originally posted by Mike11212


But people on this forum did not write subjects and when collapsed you see some text. How can i force there to be a subject

Natch
12-01-2002, 10:27 PM
[QUOTE]Originally posted by LuBi


Thanks so much!

Now does anyone know how to make the [...] work like the plus sign and de-compress the post?

Natch
12-01-2002, 11:49 PM
[QUOTE]Originally posted by dabean


As you requested in the thread for my forumhome hack I've attatched how I did "collapsed posts" hack that works across range of browsers, included are detailed changes to go from this hack to how I did it.
Browsers supported currently are Netscape 6/7, IE5+ windows and mac, Konq 2, Moz1.0+ and possibly Opera 7. :bunny:

Doing Netscape 4 support is simply painful when trying to support W3C semi compliant/compliant browsers. The problem is DIV's as generic block level containers are not allowed with Tables which are block level elements and NS4 doesn't allow direct visiblity manipulation of tables. :knockedout:

Also this modification means that browsers with no known DOM support won't see the collapsed table, this makes results in pre 4th generation browsers look better.

No support is provided for this alteration.

a43079
12-04-2002, 11:14 PM
nice hack

Bison
12-11-2002, 05:15 AM
Anyone got this working on v2.2.9?

If so, could you explain the changes you made to get this to work?

Icheb
12-22-2002, 10:06 PM
You do not need to change anything, I just installed it on our board (2.2.9) and it works perfectly.

Pikok
12-28-2002, 06:56 AM
erm the installer aint working :(

Icheb
12-28-2002, 12:35 PM
What do you mean with "aint working"? I installed it on 2.2.9 and it's working perfectly. Maybe you can tell us which error messages you get?

heynurse
01-13-2003, 09:08 AM
[QUOTE]Originally posted by havefun
u have nothing made wrong..

that's only a prob with the members who wrote no subject.

i don't know - have the same prob.. :knockedout:
we have to make them clear to write a subject,
cause of contracted posts....

s. havefun

edit:
ok i've tested it here now & here u don't need to write a subject..
there is always shown anything!

so this is modif. by bulletin.org

could anybody help us????????????? :banana:

Icheb
01-13-2003, 09:17 AM
It's all explained in this thread, if you are too lazy to read the first pages I can't help you.

heynurse
01-13-2003, 01:51 PM
[QUOTE]Originally posted by Icheb
It's all explained in this thread, if you are too lazy to read the first pages I can't help you.

saint_seiya
01-28-2003, 06:49 PM
When my posts contract i dont see the text, what did i do wrong? :(

Icheb
01-28-2003, 06:55 PM
Do those posts have a title? If not, there is a modification somewhere in this thread to have the first x chars of the actual post displayed, instead.
If they do have a title, make sure you correctly named the according variables in the template.

Drowned
03-19-2003, 12:42 PM
I'm still having problems. The installation was great. Everything worked fine, but when I turn the option ON, it contracts EVERY post, even the ones I've never read :( Even after a day of not login in to my forum, all the new posts are still contracted when I login... anybody found a way to fix this problem?

M.C.
05-10-2003, 10:11 PM
same problem! on my 2.3.0 post haven`t text what shoul be in $post[shortmsg] when i contract posts.... people says that it`s becose of 2.3.0

Need upgrate HACK!!! please!

mini2
05-15-2003, 10:27 PM
Installed on 2.29 with Firefly's addition, as well as the 'hack hack' to make it cross browser.

I had to make an addition/change to the cross browser hack to make it work fully.

I had to modify member.php to include the browser detection script, and modify the code chosing wether or not to display the option inthe userCP.

It all went smoothly though.

:)