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)

VirtueTech 12-18-2001 01:40 AM

Does this hack cause a large increase of server resources for a large forum?

bira 12-18-2001 01:43 AM

VirtueTech, the actual expand/contract is javascript. Therefore, it's client side. So I can't see how it will increase load.

In any event, if my board is anything to go by, it made no difference. And I think my board is relatively large.

VirtueTech 12-18-2001 01:54 AM

I checked the option on this board to contract all read posts....and it contracts all posts in every thread...even those I have not read.

However your post here was not contracted. Any ideas why?

bira 12-18-2001 02:08 AM

VirtueTech, it works based on what is considered "unread" by vBulletin. If you leave now and come back in 20 minutes, only posts made in the last 20 minutes or so will be expanded - because that's what is considered by vBulletin to be 'new/unread posts'.

VirtueTech 12-18-2001 02:25 AM

Gotcha.

That is the best way I guess to save on queries. Would be more efficient if it was traked better. Not your fault...just saying.

Thanks for this hack bira...I can't wait to install it.

Sadie Frost 12-18-2001 11:19 AM

Hi! I cannot find this line in showthread.php:

Quote:

Step 2 of 2 FIND:

getforumrules($forum,$getperms);
As no one else has had this problem, I have to think it's something I'm doing wrong. Anyone have any suggestions? Thanks so much! (And awesome hack bira, can't wait to get it working :))

I have v 2.2.1

bira 12-18-2001 07:43 PM

Hi Sadie,

You should find getforumrules($forum,$getperms); at the very end of the script.

The original 2.2.1 showthread.php looks like this at the end:

Code:

getforumrules($forum,$getperms);

updateuserforum($thread['forumid']);

eval("dooutput(\"".gettemplate("showthread")."\");");

?>


inetd 12-18-2001 08:31 PM

I have overlooked to insert the code in register_adult when have installed hack. You could not remind it?

bira 12-18-2001 08:35 PM

inetd, run the installer from the first post in your admin directory. Select 'UPGRADE' -- you'll get all the info you need there.

VirtueTech 12-18-2001 09:48 PM

Does this hack add any considerable load to a server.

It seems to have on my system.

Sadie Frost 12-18-2001 10:24 PM

[QUOTE]Originally posted by bira
You should find getforumrules($forum,$getperms); at the very end of the script. [/code]

bira 12-18-2001 10:29 PM

VirtueTech,

I wanted to check what you're saying, so I ran &explain=1 on a thread with 29 posts, on a limited resources server. First I did it on an "out of the box" vb 2.2.1:

Quote:

Page generated in 1.5668079614639 seconds with 19 queries,
spending 0.098392963409424 doing MySQL queries and 1.4684149980545 doing PHP things.
The I did with with only this hack added:

Quote:

Page generated in 1.57904504776 seconds with 19 queries,
spending 0.098688006401062 doing MySQL queries and 1.4803570413589 doing PHP things.
I am the only user on this server, so it's pretty much "lab tested".

Also, the load average on my server right now is 0.66, 0.73, 0.75 with ~80% CPU idle and 334 processes.

There are currently 67 members on my BB. I don't know how many guests (my who's online page doesn't seem to count guests, always saying 0 for that :/)

So from my own standpoint, I haven't noticed a change in load. But I really don't know much about this stuff so I'm all ears if you have suggestions.

Thanks,

Bira

VirtueTech 12-18-2001 11:02 PM

I think your correct. I do know that is causes a slight bandwidth increase...thus possiblity of a smaller load increase for the web server...but I don't know off hand.

LuBi 12-18-2001 11:04 PM

Well it's a picture, that should make a difference..

Twig Deez 12-19-2001 02:13 AM

very excellent indeed. :D

Lionel 12-19-2001 08:05 PM

I think that this hack is one of the best, if not the best.

GameZilla 12-20-2001 07:54 PM

for some reason my yes or no thing always is on NO i tried click it a ton of times but it switch back to no after i like modify :mad:

any idea y?

Lionel 12-20-2001 08:29 PM

On your forum if there is no title you show the first few words. On mine it is blank. How do you set this up?
thanks

bira 12-20-2001 08:36 PM

Lionel, look for FireFly's instructions, in post #50 of this thread.

GameZilla - sounds like the selection is not stored in the database. Check to see if you edited member.php fully and whether you ran the installer as requested.

GameZilla 12-20-2001 08:37 PM

i checked it all
can u e-mail the mysql stuff it need i think my sever does not let the script make the tables it self :confused:

e-mail me the tables i need to gamezilla@socal.rr.com

bira 12-20-2001 08:41 PM

GameZilla, download the installer from the first post. Everything you need is there.

Lionel 12-20-2001 08:44 PM

$post[shortmsg]
where in template to put?

bira 12-20-2001 08:47 PM

wherever you want within the first <div></div>

(for more explanation about the two DIVs in postbit, look at post #29 on this thread)

Lionel 12-20-2001 09:03 PM

I got it. I appreciate the help, specially the fast answer

GameZilla 12-20-2001 09:51 PM

[QUOTE]Originally posted by bira
GameZilla, download the installer from the first post. Everything you need is there.

GameZilla 12-20-2001 10:00 PM

i reinstall it :/ and nothing works still its the same prob

if u want go to http://www.otakuforums.com/ and test it

GameZilla 12-21-2001 06:14 PM

isn't anyone gonna help ? :confused:

Sadie Frost 12-23-2001 01:12 AM

GameZilla, did you get it to work? Cause I took at look at your forums and they seemed to be working fine.

:)

GameZilla 12-23-2001 04:05 AM

that thing works the problem is that the contract post if it is already been viewed part does not work

AntiOnline 12-27-2001 01:11 AM

Greetings:

Same problem. Old replies aren't closed automatically. Looks like the database entry for this user option isn't updating when a user updates their site options.

DelusionalMind 12-27-2001 08:11 AM

Ummmmmm

I installed it and everything but it won't automatically collapse the read threads

Do you have to do this manually?

My test board is at http://www.splitviews.com/blindhope

Thanks :)

bira 12-27-2001 12:47 PM

it sounds like you either did not make the necessary changes in the member.php file.

Run the installer again selecting UPGRADE and move to the changes needed section. Check EACH AND EVERY CHANGE was made extremely accurately.

Every single person to so far complain of a problem of this nature, which I asked to send me his/her files, forgot one step or didn't follow instructions accurately.

If you follow them accurately it will work just fine.

exodus 12-27-2001 03:20 PM

very sweet.

why is this post so wide?

DelusionalMind 12-29-2001 01:52 AM

[QUOTE]Originally posted by bira
it sounds like you either did not make the necessary changes in the member.php file.

Run the installer again selecting UPGRADE and move to the changes needed section. Check EACH AND EVERY CHANGE was made extremely accurately.

Every single person to so far complain of a problem of this nature, which I asked to send me his/her files, forgot one step or didn't follow instructions accurately.

If you follow them accurately it will work just fine.

Chrysalis 12-30-2001 11:12 PM

I am running 2.2.1

and I installed this hack unintalled then reinstalled and I got the same problem both times, The collapse/expand links are there but they dont do anything and also I can see what looks like 1 template on top of another each post has 2 titles. From what I can tell all extras are working like in register.php etc. but its just showthread template or showthread.php is wrong.

Bira are the installation instructions fine for 2.2.1 users?

Lionel 12-30-2001 11:17 PM

I installed on 2.21 no problem.

bira 12-30-2001 11:27 PM

This is most certainly not an *easy* hack to install - it demands a bit of time, concentration and following details in the instructions very accurately.

But I can guarantee that doing that will always result the same: the hack works.

It's one thing finding a bug in a hack and then fixing it. But what you are describing can ONLY come from an error in the installation.

If you want, send me all the necessary files and templates (placed in a templatename.txt file) and I will find your error. But do that only after you checked EACH AND EVERY SINGLE DOT IN THE INSTRUCTIONS WAS FOLLOWED BY YOU.

:)

Martin CX 12-30-2001 11:38 PM

Yes the hacks work brilliantly. :up:

Nonetheless I've (temporarily) shut it down... I'm trying to figure out a way to make it work without the posts being contained in tables.

You see, I'm developing an extremely 'less is more'-ish board and I really am trying to avoid the tables inside tables inside tables syndrome. My 'showthread' template - including postbits, but excluding exterior control panels is one big table with no interior tables inside it... my goal is to make it render incrementally as it loads, but unfortunately none of the major browsers does this very well.

Nonetheless, if there is a way to make the display bit control whether a table ROW is displayed or not instead of controlling whether the TABLE is displayed or not, you would really make my day. :)

Chrysalis 12-31-2001 01:25 AM

ok ill give this another shot when i have more free time probably next weekend

MalaK_3araby 01-01-2002 08:17 AM

Nice .. Clean and Ez.

i luv it .. thanks for such an wsome idea and work.


All times are GMT. The time now is 10:51 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.01443 seconds
  • Memory Usage 1,811KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_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