![]() |
Is the vB4 thread structure broken
The two methods to reply in a thread are to reply to the post you are viewing using the reply link in the bottom border or to reply to the thread.
The reply to specific post works correctly and puts that postid in the parent postid for the new post. However, when you are replying to the thread, the parent postid is the latest post in the thread when it should be the first post in the thread. The problem is readily visible when using hybrid or threaded view. I would like for the parent postid to be 0 just as it is for the starting post in the thread. That gives a distinctive display for hybrid and threaded views. We have a mod installed that appends a link in the title of the posters name linking to the parent postid. If the parent postid were 0 for reply to thread, the link would be suppressed and it would work the way we want it to. The reference functions to prevent misunderstandings when someone thinks a reply is to their post instead of to a previous post in the thread or the thread as a whole. |
Try this plugin, hooked at "postdata_presave":
PHP Code:
|
Quote:
:confused: I'm curious. Why did Tom get an essentially immediate response that does EXACTLY what I've been asking for, and my thread didn't? Have I done something to offend someone? |
Replies can sometimes be days.
Any response is entirely dependent on who is reading the forums at any given time Your thread got a reply after 81 minutes, so I think you have nothing to be curious about. |
Yes, you DID respond that fast. :) And your response allowed me to find the apparently undocumented plugin that gave me the hint that I had to modify parentid. But I couldn't figure out where/how to do that. MarkFL's response does exactly what I've spent days trying to figure out. It wasn't so much the SPEED of the responses that bothered me. Is MarkFL the only one who knows that trick?
It should solve the problem for future posts, but I doubt that there's any way to fix the existing misleading links. |
Quote:
I do apologize if I gave the impression of preferential treatment...it wasn't my intention. Tom's initial post spoke explicitly of setting the "parentid" of posts made by replying to threads as opposed to replying to posts or quoting posts. In your thread, you were talking about using a product that wasn't behaving as you wanted, and when I read that, I felt looking for the product thread was a good idea as suggested. Sometimes I don't connect the dots as would be desired by the person posting. It could be the case when I read a post here, I am either idle and looking for something to do, or I am busy at the moment with other things and don't give the post as much attention as I would in the first scenario. That's my shortcoming, not that of anyone else, and is something I should try to improve. :) |
Thanks Mark. It was the stuff I found, guided by Paul's post, that allowed Tom to ask the question in the way he did. THANK YOU BOTH for the help!!!!!!!!!!!!!
P.S. I think I made the same point over there, too: Quote:
--------------- Added [DATE]1487982823[/DATE] at [TIME]1487982823[/TIME] --------------- Tom, are you going to install the fix, or are you going to leave it as an exercise for the student? |
Quote:
By the way, and I say this not to be self-effacing, but you asked if I was the only one who knew that trick. Of all those on staff here, and many who aren't on staff, I am the new guy still learning the basics. :p I hope the custom editor toolbar mod works well for you! :up: |
Quote:
|
Quote:
|
Quote:
I was a bit confused when it did not work on the first try, but I decided it could not possibly harm to make it. PHP Code:
--------------- Added [DATE]1488068167[/DATE] at [TIME]1488068167[/TIME] --------------- I do not think it is possible to make this "feature" retroactive. In my opinion, the current vB4 behavior is broken. Clearly the reply to thread should set previous post to the starting thread post . There is no way to know what the poster intended or which button was used to create a new post since both point to the most recent post. This fix does eliminate the problem. If one wanted the feature to actually reference the first post in the thread, that could be done or, retroactively in the future a query could be executed to set all the 0 parent postid values to the value of the first postid in the thread. --------------- Added [DATE]1488080917[/DATE] at [TIME]1488080917[/TIME] --------------- I thought I had this fixed but when I went to install it on the live site, it did not actually work and when I checked again on the test site the result was the same. I hacked the plugin to insert a print_r on the $_REQUEST global and got this result for both reply from the border and reply with the button. PHP Code:
Is there a different hook that will work, or is one of my other mods busting this. I notice that there is a jquery flag that looks like it may be bad. |
Have you found a fix for this yet? I'm running VB4.2.4 and just noticed the same exacerbating problem. I'm trying to find a fix for this and if not, I'll just remove that button because it's misleading & useless as is.
|
All times are GMT. The time now is 04:54 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|