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)

69-FLy-gUy 01-26-2002 10:31 PM

Has anyone figured out the problem that me and Xelation are having?

Ciao

cihangir 01-27-2002 12:19 PM

just installed this hack :) but i need to translate the text used by this hack such as "expand all" or "Contract posts you already read? This will hide the message body of posts you already read, displaying only the post header."

i could not find where they are stored.

snyx 01-30-2002 05:42 AM

how in depth would it be to work an ignore user like system into the same concept as this? where if you have selected to ignore a user, his/her posts no matter the thread would be automatically shunk? just a thought.

LuBi 02-02-2002 02:51 AM

I have a problem, I installed it correctly and I don't know why when minimized without a reply title it doesn't give a short of the body of the reply. On here it does show text without a title so why doesn't mine???

FWC 02-02-2002 03:38 AM

[QUOTE]Originally posted by LuBi
I have a problem, I installed it correctly and I don't know why when minimized without a reply title it doesn't give a short of the body of the reply. On here it does show text without a title so why doesn't mine???

LuBi 02-02-2002 04:03 AM

[QUOTE]Originally posted by FWC
You have to add an addition FireFly made. It's in the first couple of pages of this thread.

Frank 02-07-2002 12:37 PM

[QUOTE]Originally posted by 69-FLy-gUy
Xelation.. That is the same problem taht I am havingt also...

Ciao

Let me know if you find the fix for it...

Erwin 02-07-2002 05:47 PM

After upgrading, just run the install script and choose upgrade to reapply the templates - no need to do any modding of the templates or php files.

This hack is still one of THE best ones around! My members love it!!!

heynurse 02-11-2002 07:44 AM

bira,

Thanks for all your work, this hack is awesome!

marocnl 02-20-2002 09:11 AM

Hi,

I installed this hack, it works great (thanx) But when i view the forums in Netscape (4.79) it doenst show the messages at all, it only shows the header.

http://community.marokko.nl/forums/

I dont see what i did wrong, can someone help me :(

Marocnl

Omero 02-20-2002 10:30 AM

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.

Check it out here: http://forum.ngx.sm/index.php

Any thread is just right, have a look.

Surely its a HTML bug, can someone help me out?

mADmAX` 02-21-2002 05:33 PM

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

Recon_Boy 02-24-2002 03:26 PM

[QUOTE]Originally posted by inetd
Where exactly it is necessary to insert $post [shortmsg]?

Recon_Boy 02-24-2002 03:28 PM

[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

pran 02-25-2002 02:37 AM

I got this error after installing the hack:

Code:

Fatal error: Call to undefined function: updateuserforum() in /usr/local/www/virtual/www.kuro.ph/docs/forums/forumdisplay.php on line 62

kmoo 03-03-2002 06:36 PM

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

kidney 03-06-2002 02:27 AM

One word "GENIUS" that all I can say...... Works great. :D

Figment 03-07-2002 09:46 AM

Is there a way of toggling this option on/off in a users profile via the Admin CP? Cant see a setting for it in there

cihangir 03-08-2002 10:31 AM

i try to reinstall it on 2.2.3 but i can not find this code in new showthread.php

[QUOTE]root/showthread.php

Step 1 of 2 FIND:


$pagenav = getpagenav($totalposts,"showthread.php?s=$session[sessionhash]&threadid=$threadid&perpage=$perpage");

Dalius 03-08-2002 06:59 PM

[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. :)

Dalius 03-08-2002 07:05 PM

Nvm, fixed

cerebro 03-15-2002 01:57 PM

[QUOTE]Originally posted by cihangir
i try to reinstall it on 2.2.3 but i can not find this code in new showthread.php


cerebro 03-15-2002 02:15 PM

[QUOTE]
root/showthread.php

Step 1 of 2 FIND:


$pagenav = getpagenav($totalposts,"showthread.php?s=$session[sessionhash]&threadid=$threadid&perpage=$perpage");

dxb 03-15-2002 08:19 PM

works like a charm with 2.2.4 :)

anyway cihangir

just find this code :

Code:


$pagenav = getpagenav($totalposts,"showthread.php?s=$session[sessionhash]&threadid=$threadid&perpage=$perpage".iif(isset($highlight), "&highlight=$highlight", ""));

and change it to this

Code:


// Contract Old Posts in Thread (v1.0)
$pagenav = getpagenav($totalposts,"showthread.php?s=$session[sessionhash]&threadid=$threadid&perpage=$perpage&display=$display".iif(isset($highlight), "&highlight=$highlight", ""));
// Contract Old Posts in Thread (v1.0)

hope it works for you :)

Arabian 03-16-2002 02:23 PM

Wonderful Hack!!!

smooth installation on 2.2.4

ZiRu$ 03-23-2002 06:01 AM

i will try it out! Thanks alot!

Figment 03-25-2002 06:25 AM

Query reposted:

Is there a way of toggling this option on/off in a users profile via the Admin CP? Cant see a setting for it in there

Issvar 03-26-2002 06:46 AM

To make the expand all and contract all links not require reloading do the following:

In the showthread template find
Code:

function expand(listID) {
and add above that:
Code:

function contractAll() {
        var aDivs=document.body.getElementsByTagName("div");
        for (x=0;x<aDivs.length;x++) {
                if (/^p[0-9]{1,8}h$/.test(aDivs[x].id)) {
                        aDivs[x].style.display="";
                } else if (/^p[0-9]{1,8}e$/.test(aDivs[x].id)) {
                        aDivs[x].style.display="none";
                }
        }
        window.event.cancelBubble=true;
}
function expandAll() {
        var aDivs=document.getElementsByTagName("div");
        for (x=0;x<aDivs.length;x++) {
                if (/^p[0-9]{1,8}e$/.test(aDivs[x].id)) {
                        aDivs[x].style.display="";
                } else if (/^p[0-9]{1,8}h$/.test(aDivs[x].id)) {
                        aDivs[x].style.display="none";
                }
        }
        window.event.cancelBubble=true;
}

Then in the showthread_hideposts template find
Code:

<a href="showthread.php?threadid=$thread[threadid]&s=$session[sessionhash]&perpage=$perpage&pagenumber=$pagenumber&display=show">
and replace that with
Code:

<a href="#" onclick="expandAll();return false;">
Then find also in the showthread_hideposts template
Code:

<a href="showthread.php?threadid=$thread[threadid]&s=$session[sessionhash]&perpage=$perpage&pagenumber=$pagenumber&display=none">
and replace that with
Code:

<a href="#" onclick="contractAll();return false;">
And for Bira, feel free to use this in an update to the full hack if you find it worthwhile.

psx-dude 03-29-2002 05:12 AM

I have yet to get it the way we have here where the first thread is non-contracted in 2.2.4.

Velocd 04-03-2002 02:22 AM

Pro hack, I wish I would have found it earlier. :p

Dalius 04-04-2002 08:33 PM

Is their a vbhacker version of this?

GuruXL 04-10-2002 12:56 AM

In showthread.php i cannot find
PHP Code:

$pagenav getpagenav($totalposts,"showthread.php?s=$session[sessionhash]&threadid=$threadid&perpage=$perpage"); 

I'm running v2.2.4, and my showthread.php has been modified before for other hacks. Someone help?

Hwulex 04-10-2002 01:29 AM

Great hack, installed fine.

1 question
On your board (and here infact), when you collapse a post, you get:
"blah blah blah..."

When I collapse a post on mine, unless the post has a subject, nothing is displayed. Why is this?

I've added FireFly's hack from post #50 and still no joy.
My forum can be found here: http://www.hwulex.co.uk/vB/

Cheers.

Apok2002 04-11-2002 03:47 AM

I was going to ask the same thing Hwulex.

opus 04-16-2002 04:21 PM

since adding this hack i've been getting this error

Fatal error: Call to undefined function: unindexpost() in /home/virtual/site11/fst/var/www/html/thebored/editpost.php on line 258

sub 04-22-2002 08:07 AM

Love the hack! Works great with 2.2.5 :cheeky:

PeterNRG 04-23-2002 10:16 AM

[QUOTE]Originally posted by GuruXL
In showthread.php i cannot find
PHP Code:

$pagenav getpagenav($totalposts,"showthread.php?s=$session[sessionhash]&threadid=$threadid&perpage=$perpage"); 

I'm running v2.2.4, and my showthread.php has been modified before for other hacks. Someone help?

Soma 04-26-2002 11:35 PM

exact same thing over here, I'm just going to go for it. I'll tell ya how it goes.
Actually, when You look at the changes that the hack does.
it adds the variable display w/ &display=$display
I'm just going to add that in the nessacary place. Wish me luck

Soma 04-29-2002 08:11 PM

ok, it works.

Soma 04-29-2002 08:13 PM

Ok, Now I just need to find out how to that thing they have set-up here.
Where it substrings the post if a topic was not given on the post. Anyone know how?


All times are GMT. The time now is 03:03 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.01489 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
  • (11)bbcode_code_printable
  • (2)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