The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Quote:
An chance you could translate it into noob for me? <G> --don |
#12
|
||||
|
||||
Basicly, I believe that you should be able to modify the query to get posts by adding
,parentpost.username AS parentpostusername, parentpostuser.username AS parentpostuserusername to the SELECT part, then right before the WHERE clause, add LEFT JOIN post AS parentpost ON post.parentid=parentpost.postid LEFT JOIN user AS parentpostuser ON parentpostuser.userid=parentpost.userid Then in the part to construct the postbit, you would check for a valid parentpostuserusername element in the array, and if it was invalid user parentpostusername instead. I am unsure of the way that PHP represents NULL values in results from mySQL, though, and the query may not work with those changes (I am by no means an expert on mySQL, and the changes add a good deal of complexity to the query). |
#13
|
|||
|
|||
Okay, let me see if I get this...
What you're saying is that, at the time the thread is displayed (or, more specifically, when each post within the thread is displayed) that a query can be performed to find the poster of the parent. When this is done, one has to make arrangements in case the parent message has been deleted. If the query is made at the time that the reply is created (I think this is how the quote bbcode gets it), then that value needs to be stored somewhere. Quote simply puts it into the body of the message. Can a field be added to the post record so that the postbit can just call it from there? In that case, even if the parent message was deleted, the "to" value would still exist and be valid. --don |
#14
|
||||
|
||||
Well, actually, it's a matter of soft deleted posts and back-linking to them that I was talking about, but yes if the original post was hard deleted, then the parentid field would point to the parent of the deleted post. Yes, a field could be added and you could probably fill it when the post is stored.
|
#15
|
||||
|
||||
<a href="https://vborg.vbsupport.ru/showthread.php?t=61490" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=61490</a>
|
#16
|
|||
|
|||
Hi
I did not forget you, I just trying to finish my expanded search mod, so I did not have time to do what I said! I have the search mode done and I am just writing the installer information. Once I have that done I will work on getting a demo up for you to try! Sorry, for being so slow! Sonia! |
#17
|
|||
|
|||
Quote:
--don |
#18
|
|||
|
|||
Thank you so much WetWired, My members also thank you for your work, Excellent job to btw
Works great. |
#19
|
|||
|
|||
Quote:
--don |
#20
|
|||
|
|||
Sonia-
I notice that you're back on the forum again. Please PM me about this mod. I'm eager to move forward with this. --don |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|