Version: , by bira
Developer Last Online: Jun 2013
Version: 2.2.x
Rating:
Released: 12-08-2001
Last Update: Never
Installs: 141
No support by the author.
Hi all,
This is a brand new addition to my own BB, so I don't even know how my own users will react to it, let alone how you guys would
Hack Description:
Posts you have already read in a thread, will show up with their header only (a row that includes the username, post subject and date only). New posts only will appear in full.
This is user selectable via the 'Edit Options' page: each user can decide if he wants this option on or not. (By default all existing and new users will have this turned Off).
A link at the top of the thread offers to "expand all" posts or "contact all" posts.
by clicking on the + sign on a shruk post, it will expand without the page reloading. By clicking on the - sign on an expanded post, it will shrink without the page reloading.
[high]this option is available for your IE users only! Netscape users will see no difference and will not be affected anyway at all by the change[/high]
How to install:
Please download the attached zipfile.
Upload plus.gif and minus.gif to your images directory
Upload install_contractposts.php to your admin directory and run that script.
Note: there are quite a few changes to make (primarily additions, not replacements) to the vb scripts and templates. The process should take you several minutes, so I recommend you close your Bulletin Board while installing the hack.
Demo:
You are welcome to visit my Bulletin Board, at http://www.atlasf1.com , to see what the additions look like. To test it in full (ie, the option of old posts being shrunk by default), you will have to register and modify your options after you have received your password.
Cheers,
Bira
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I have a problem.... when i "shrink" the thread by clickin on the minus sign, the cell of the table with username, title, etc... isn't aligned with the normal unshrinked ones.
I just want to say that this is a great hack but...
It all works fine except for the old post are not being contracted. Every post is always expanded no matter what. I can expand all and contract all but for some reason the old post are not contracted. I get no errors, seems to work fine except for this. I am running 2.2.2....
Does anyone know what the cause could be, I followed each step to a T
[QUOTE]Originally posted by mADmAX` I just want to say that this is a great hack but...
It all works fine except for the old post are not being contracted. Every post is always expanded no matter what. I can expand all and contract all but for some reason the old post are not contracted. I get no errors, seems to work fine except for this. I am running 2.2.2....
Does anyone know what the cause could be, I followed each step to a T
FOr some reason I can not get mine to work. I know that it is me. I have reinstalled it several; times and started over from top to bottom several times....No Dice,,,,,
Update
===========
I added the files that I use to make mine go. I know without a doubt that it will be something I am doing but I can not fig out whjat it is. Please help
[QUOTE]Originally posted by FireFly
In functions.php, find:
Code:
$plusimg = "";
$minusimg = "";
}
and right after it add this:
Code:
if ($post[title]=='') {
$msgpos=strpos($post[pagetext],"\n");
if ($msgpos>50 or $msgpos<2 or $msgpos===false)
$msgpos=50;
$post[shortmsg]=substr($post[pagetext],0,$msgpos)." [...]";
}
You can reset 50 to your own number of first N chars to show.
It will show first line if it's shorter than 50 chars, or the first 50 chars in the line.
After you do this, place $post[shortmsg] in the posbit template.