Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
"In reply to" Hack (threaded info for linear users) Details »»
"In reply to" Hack (threaded info for linear users)
Version: 1.10, by WetWired WetWired is offline
Developer Last Online: Sep 2014 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 02-11-2004 Last Update: 02-29-2004 Installs: 23
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 12-12-2004, 10:26 PM
WetWired's Avatar
WetWired WetWired is offline
 
Join Date: Jun 2002
Location: Texas
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's what the option I pointed out controls, if I understand correctly. Realize, however that this takes effect at post time, and will not be retroactively applied.
Reply With Quote
  #33  
Old 12-12-2004, 11:23 PM
coloradok5 coloradok5 is offline
 
Join Date: Dec 2004
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WetWired
That's what the option I pointed out controls, if I understand correctly. Realize, however that this takes effect at post time, and will not be retroactively applied.
The only thing I didn't include was the var part:
The following additional variables will be defined for posts that don't begin a thread:
$post[re_postid] --The ID of the parent post.
$post[re_title] --The title of the parent post.
$post[re_tittype] --Type of title: 1-actual title, 2-start of post, 0-no suitable content found
$post[re_userid] --ID of the user who posted the parent post, or 0 if a quest posted it.
$post[re_username] --Username of the user who posted the parent post
$post[re_url] --URL to parent post. If the post is on the same page, this will just move
the position on the page. If the post is not on the same page, this will

Do I need to put them somewhere in postbit?
Reply With Quote
  #34  
Old 12-12-2004, 11:55 PM
WetWired's Avatar
WetWired WetWired is offline
 
Join Date: Jun 2002
Location: Texas
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They were already part of the example code to add to the postbit. I explained them all fully so that admins could set it up in their postbit however they liked (for instance exactly copying UBB threads).
Reply With Quote
  #35  
Old 12-13-2004, 12:06 AM
coloradok5 coloradok5 is offline
 
Join Date: Dec 2004
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WetWired
They were already part of the example code to add to the postbit. I explained them all fully so that admins could set it up in their postbit however they liked (for instance exactly copying UBB threads).
Thats what I thought, I will recheck everything.
Reply With Quote
  #36  
Old 12-13-2004, 01:21 AM
coloradok5 coloradok5 is offline
 
Join Date: Dec 2004
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm, I redid everything and still the default title gets displayed even though it shouldn't, any ideas?

http://coloradok5.com/forums/showthread.php?t=123231
Reply With Quote
  #37  
Old 12-13-2004, 03:07 AM
WetWired's Avatar
WetWired WetWired is offline
 
Join Date: Jun 2002
Location: Texas
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by coloradok5
Hmmm, I redid everything and still the default title gets displayed even though it shouldn't, any ideas?

http://coloradok5.com/forums/showthread.php?t=123231
Again, that is because the "Automatically Quote Post" option is set to yes. After you turn it off, this will no longer happen on new posts. Since the Re: last title actually is a title for the post, the in reply to hack uses it, since its preference is to display the post title, then the start of the post if the post has no title. If you delete the title from one of these posts, you will see that replies to it appear with the beginning of the post. The problem is the enabled feature. If you want to try to retroactively remove the old re: titles, you can try backing up your DB then running the query
UPDATE post SET title="" WHERE title LIKE "Re: %"
This will remove all titles starting with Re: and allow the in reply hack to use the starting lines.
Reply With Quote
  #38  
Old 12-13-2004, 03:25 AM
MickDoneDee MickDoneDee is offline
 
Join Date: Mar 2003
Location: Sydney
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by coloradok5
Mick
Thanks, I think I have it. Looking at your site, it looks like if someone replies to a post and does not change the title the original title does not get outputed, how did you do that?
It is an option in vB3:

Admin CP -> vBulletin Options -> Automatically Quote Post / Thread Title

If you enable this setting, the title field of new posts will be filled with the thread or parent post's title, prefixed by 'Re: '. The user can still edit it if they wish. If you disable this setting, the title box will be blank by default.
Reply With Quote
  #39  
Old 12-13-2004, 01:46 PM
coloradok5 coloradok5 is offline
 
Join Date: Dec 2004
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahhh, OK cool. Is there anyway to also not have the icon and hor. rule display?

http://coloradok5.com/forums/showthr...=1#post1089917
Reply With Quote
  #40  
Old 12-13-2004, 05:32 PM
WetWired's Avatar
WetWired WetWired is offline
 
Join Date: Jun 2002
Location: Texas
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by coloradok5
Ahhh, OK cool. Is there anyway to also not have the icon and hor. rule display?

http://coloradok5.com/forums/showthr...=1#post1089917
They should not display without a title, unless you have a default icon set up.
Reply With Quote
  #41  
Old 12-13-2004, 07:18 PM
coloradok5 coloradok5 is offline
 
Join Date: Dec 2004
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Kick ass, it works perfect now, I didn't know those settings were there.
Thanks for all the help.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:24 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.04939 seconds
  • Memory Usage 2,310KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete