vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   "In reply to" Hack (threaded info for linear users) (https://vborg.vbsupport.ru/showthread.php?t=61490)

WetWired 02-11-2004 10:00 PM

"In reply to" Hack (threaded info for linear users)
 
vB3.0/hack version "frozen"; vB3.5/plugin version released
You can get the plugin for vb3.5 here. There will be no more releases for the vB3.0 version.

Description
This hack allows the display of the title and author of the post that each post is in response to. (See screenshot if clarification is needed)

The purpose of this hack is to provide missing information to linear view mode users. I got the idea from a board I visit that used to be UBB Threads, though my choice of presentation is a bit different.

See the attached screenshot for an example of how this can look. The hack itself only provides the additional items in $post, so it is up to the templates exactly how it looks. (The changes I used are included as an example in the hack instructions)

Complexity
This hack changes one file, requires no queries, and requires changes to one template.

Technical
This hack has been tested on vB3.0.3,vB3.0.0RC4 and vB3.0.0RC2.
It adds 1 query to showthread in linear mode, and adds 1 additional query in linear mode for each consecutive layer of deleted parents of posts displayed on a page. (If a displayed post is a reply to a deleted reply to an undeleted reply to a deleted reply to an undeleted post, 2 total queries are added to showthread, but if a displayed post is a reply to a deleted reply to a deleted reply to a deleted reply to an undeleted post, 4 total queries are added to showthread. If both examples are displayed in the same page, only 4 total queries are added to showthread.)

Update (v1.10 2004-03-01)
Version 1.10 released, which uses the beginning of a post as a title if the post does not have a title, and also trims long titles down to a decent size. Minor optimizations. regardinghackupdate.txt added for existing users, regardinghack.txt updated for new users.

Support
Please click the install button above if you install this hack.

The hack version of this modification will have no further updates, but I will still answer questions in this thread.

sabret00the 02-12-2004 09:07 PM

not a bad hack at all :)

Koutaru 02-12-2004 09:28 PM

:) I think it's very useful too .. nice work.

WetWired 02-12-2004 11:06 PM

Changed to version 1.01 (updated the hack file in the original post). There was a missing field in two querys. Surprised it worked at all.

Acido 02-12-2004 11:45 PM

This is what i wanted !
BIG THANX !

Acido clicks Install

LeeCHeSSS 02-13-2004 06:18 AM

Quote:

Originally Posted by WetWired
The purpose of this hack is to provide missing information to linear view mode users and to help your linear mode users and your threaded mode users to get allong better. What this hack does is display the title and author of the post that each post is in response to. I got the idea from a board I visit that used to be UBB Threads, though my choice of presentation is a bit different.

See the attached screenshot for an example of how this can look. The hack itself only provides the additional items in $post, so it is up to the templates exactly how it looks. (The changes I used are included as an example in the hack instructions)

This hack has been tested on vB3.0.0RC4 and vB3.0.0RC2.
It adds 1 query to showthread in linear mode, and adds 1 additional query in linear mode for each consecutive layer of deleted parents of posts displayed on a page. (If a displayed post is a reply to a deleted reply to an undeleted reply to a deleted reply to an undeleted post, 2 total queries are added to showthread, but if a displayed post is a reply to a deleted reply to a deleted reply to a deleted reply to an undeleted post, 4 total queries are added to showthread. If both examples are displayed in the same page, only 4 total queries are added to showthread.)

This hack changes one file, requires no queries, and requires changes to one template.

Please click the install button above if you install this hack.

Please leave any questions about the hack in this thread, I will answer them whenever I get the chance (probably about once a week after the first week).

Instead of referring to "Untitled post", try referring to post numbers?

WetWired 02-13-2004 12:44 PM

Quote:

Originally Posted by LeeCHeSSS
Instead of referring to "Untitled post", try referring to post numbers?

Hmm, I guess I could do that... I'll look into it.
The main style on my forum doesn't have post numbers currently, (I don't like them 'cause they change whenever a post is deleted and so are pretty much useless) so I didn't think of that.

[edit]Okay, this is great: The post numbering behavior varies from display mode to display mode, too. Since the numbers used for the display by the hack would be regenerated every view, I guess it can work for that, but I seriously question why the post numbers were added in the first place.[/edit]

gmarik 02-13-2004 03:34 PM

Short description?!

WetWired 02-13-2004 05:10 PM

Quote:

Originally Posted by gmarik
Short description?!

What exactly are you asking? Are you saying my description is too short, or that you'd like it shorter?

The simplest explanation is to simply look at the example screenshot.

Besides that, the second sentence in my post:
Quote:

Originally Posted by WetWired
What this hack does is display the title and author of the post that each post is in response to.

If you want a longer description, I'm not sure what I left out.

Logikos 02-13-2004 06:46 PM

Nice. "Waits for activity hack to be released" :p

[high]* Logikos Clicks install.[/high]


All times are GMT. The time now is 09:02 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.01457 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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