Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-08-2012, 06:32 PM
BasilFawlty BasilFawlty is offline
 
Join Date: Jul 2012
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Who's Post are you replying to?

I am a recent convert from UBBThreads (well, I will be once I get my brand-new VB install working). Anyway, one thing that UBBThreads does that VB does not, is to indicate who you are replying to if you just click "Reply" in a specific post. I know that if I click "quote" in a post, then you will know because the quoted info will tell you who you are quoting - that's great. However, in VB, if I click the reply button in a specific post, then it puts my reply at the bottom of the thread, but doesn't tell me who I was replying to. It looks like I'm just replying to the original thread's starting post. I would like to be able to have VB indicate who I am replying to like UBBThreads does, even if I don't quote someone, but only click the reply button at the bottom of their thread.

Say I have a thread started by user "Fred" and there are several replies in this thread. One of the replies is by user "Wilma". If I click the reply button under Wilma's post, I would like my reply, which will be placed at the bottom of the thread, to indicate that I was replying to Wilma and not just to the starting thread post. In other words, I'd like it to loook like this:

RE: Some Topic [Re:Wilma]

Instead of just: RE: Some Topic

Does such a mod already exists? If not than consider this a request.
Reply With Quote
  #2  
Old 09-10-2012, 01:20 AM
Eosian Eosian is offline
 
Join Date: Feb 2009
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It actually already shows this if you view in threaded mode, instead of flat mode.

https://www.vbulletin.com/docs/html/...p_threadedmode
Reply With Quote
  #3  
Old 09-10-2012, 01:55 PM
BasilFawlty BasilFawlty is offline
 
Join Date: Jul 2012
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eosian View Post
It actually already shows this if you view in threaded mode, instead of flat mode.
Yes, I know, but I'm talking about flat mode. which 99.999999% of my users (older folks) prefer. UBBThreads has this feature wherein, while viewing a thread in flt mode, you could tell who a reply was intended to be replying to, even if they didn't quote the person.

Since most of my users (probably all actually) use flat mode, I'd like to see this feature in my VB install, thus my suggestion for a mod.
Reply With Quote
  #4  
Old 09-10-2012, 02:16 PM
Eosian Eosian is offline
 
Join Date: Feb 2009
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fine, add a plugin to hook showthread_query;

PHP Code:
$hook_query_joins .=  ' left join ' TABLE_PREFIX  .'post parentpost on post.parentid = parentpost.postid ';
$hook_query_fields .= ', parentpost.username parentusername '
Now edit postbit_legacy or whatever you're using and add;
PHP Code:
// original line
                    
{vb:raw post.title}
// add this after
                    
<vb:if condition="$post['parentid'] AND $post['parentusername']">
                    (
RE: {vb:raw post.parentusername})
                    </
vb:if> 
Or a little snazzier;

PHP Code:
// original line
                    
{vb:raw post.title}
// add this after
                    
<vb:if condition="$post['parentid'] AND $post['parentusername']">
                    (
RE: <a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.parentid}">{vb:raw post.parentusername}</a>)
                    </
vb:if> 
Reply With Quote
  #5  
Old 09-12-2012, 09:20 PM
BasilFawlty BasilFawlty is offline
 
Join Date: Jul 2012
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, help me out here. I come from the UBBThreads world so I understand the concept of editing the code in files. What I'm not clear on is the VB concept of adding a "plugin to hook showthread?" This is VB-sleak which I'm not yet familiar (but want to be). Any tutorials on this?
Reply With Quote
  #6  
Old 09-12-2012, 09:36 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's pretty easy: in the admin CP, go to "Plugins & Products" and select "Add New Plugin". Choose the hook location from the dropdown, and paste the code in the large box. You need to enter a title (make it something so you'll remember what it is years from now), and click the Yes radio button on the bottom before saving. The instructions are in the vb4 manual, but with the recent changes to the vbulletin.com site to focus on vb5, I can't seem to get to the vb4 manual.
Reply With Quote
  #7  
Old 09-13-2012, 01:46 AM
BasilFawlty BasilFawlty is offline
 
Join Date: Jul 2012
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
It's pretty easy: in the admin CP, go to "Plugins & Products" and select "Add New Plugin". Choose the hook location from the dropdown, and paste the code in the large box. You need to enter a title (make it something so you'll remember what it is years from now), and click the Yes radio button on the bottom before saving. The instructions are in the vb4 manual, but with the recent changes to the vbulletin.com site to focus on vb5, I can't seem to get to the vb4 manual.
Ah, that is easy! Thanks! There are a lot of things different in VB that what I'm used to - I do like the way the plug-ins work - a lot easier to implement mods!
Reply With Quote
  #8  
Old 01-04-2014, 06:04 AM
tommythejoat's Avatar
tommythejoat tommythejoat is offline
 
Join Date: Apr 2008
Location: Boston
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It really is easy and useful for a lot of other things you might want to include in postbit.
Reply With Quote
  #9  
Old 02-27-2017, 04:13 AM
tommythejoat's Avatar
tommythejoat tommythejoat is offline
 
Join Date: Apr 2008
Location: Boston
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not really trying to bump this, but I finally found the plugin we are using on the NAWCC Message Board. Possibly some of those interested in the reply ID will have some ideas on what might have happened to our setup.

This is one of those things that seems really simple but can really start sucking up time.

I wish hybrid or threaded mode were available here to demonstrate issues and to check if our board is out of spec.
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:56 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.04450 seconds
  • Memory Usage 2,252KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete