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)

Frank 12-16-2001 11:32 PM

[QUOTE]Originally posted by inetd

extended and new users

inetd 12-16-2001 11:40 PM

yes, existing

bira 12-17-2001 12:20 AM

inetd,

you'll have to run an query: UPDATE user SET hideposts='1'. That will switch it to 'yes' for all existing users.



Frank,

I don't know how FireFly did it, he may have an easier way than me.

I used my Post Counter hack for it.

If you installed it (it's a VERY easy hack to install), you can do the following to make sure the 1st post is always expanded:

In showthread.php, find this code:
Code:

  $post[postcount] = ++$postcount;
  $postbits .= getpostbit($post);

Change it to (addition marked in "high"):

Code:

  $post[postcount] = ++$postcount;
[high]  if ($post[postcount]=="1") {
        $thispost = "1";
  } else {
        $thispost = "";
  }[/high]
  $postbits .= getpostbit($post);

Open admin/functions.php, find:

Code:

        global $display, $HTTP_USER_AGENT;

        if ($post[dateline]>$bbuserinfo[lastvisit]) {

change it to (additions marked in high):

Code:

// Contract Old Posts in Thread (v1.0)
        global $display, [high]$thispost,[/high] $HTTP_USER_AGENT;

        if ($post[dateline]>$bbuserinfo[lastvisit][high] || $thispost=="1"[/high]) {

That's it.

Again, like I said, maybe there's a way of doing it that I'm ignoring and FireFly can help, but I just used my count posts hack for it and it works. *shrug*

FWC 12-17-2001 12:37 AM

[QUOTE]Originally posted by bira

Open admin/functions.php, find:

Code:

        global $display, $HTTP_USER_AGENT;

        if ($post[dateline]>$bbuserinfo[lastvisit]) {

change it to (additions marked in high):

Code:

// Contract Old Posts in Thread (v1.0)
        global $display, [high]$thispost,[/high] $HTTP_USER_AGENT;

        if ($post[dateline]>$bbuserinfo[lastvisit][high] || $thispost=="1"[/high]) {

That's it.

Again, like I said, maybe there's a way of doing it that I'm ignoring and FireFly can help, but I just used my count posts hack for it and it works. *shrug*

bira 12-17-2001 12:40 AM

hrmmm... I think I tried it and it didn't work for me, because $post[countpost] was not global

Frank 12-17-2001 12:42 AM

Ah excellent that works now, cheers Bira :D

bira 12-17-2001 12:48 AM

by the way,

I have a very important warning for those of you who want to turn it on for all existing users: DON'T DO THAT!

If you switch it on for ALL users, people logging on your Bulletin Board with Netscape WILL NOT BE ABLE TO EXPAND THE POSTS.

They will be stuck with entire threads contracted, and with absolutely no way to expand any post at all.

So don't turn it ON by default for all users. Let them make the choice.

FWC 12-17-2001 12:49 AM

[QUOTE]Originally posted by bira
hrmmm... I think I tried it and it didn't work for me, because $post[countpost] was not global

bira 12-17-2001 12:52 AM

hrmmm... maybe I was drunk the night I tried it :D

I'll try again now :)

bira 12-17-2001 12:53 AM

yup, you're right FWC. Thanks :)


All times are GMT. The time now is 11:19 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.01450 seconds
  • Memory Usage 1,739KB
  • 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
  • (6)bbcode_code_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