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)

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


All times are GMT. The time now is 03:29 PM.

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.01264 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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