Quote:
Originally Posted by AndrewD
I recall how all this developed now.
In the earlier versions of the 'extra', there was no special database field for the associated thread, so the code had to check for the relevant text (threadid=..) in the body of the link description. In 2.2.7, I realised that this was definitely a kludge, so added a an extra column in the database.
I imagine that you'll find that comments work with those entries where the linkthread column is set, and don't work where it is blank. But (on the assumption that you haven't got a load of threadid bb codes in your LDM descriptions, it should be ok to modify the regular expression, as follows. Instead of
Code:
elseif ($forumid>0 and preg_match("/\[thread=(\d+)\]Discussion/", $row['linkdesc'], $match)) {
try
Code:
elseif ($forumid>0 and preg_match("/\[thread=(\d+)\]/u", $row['linkdesc'], $match)) {
(there's an extra 'u' after the second slash)
Can you let me know if this solves it, and if my theory is correct about the linkthread field?
|
I've tried what you said, it took no effect.
Actually after upgraded to the later versions, there are already some entries which the linkthread column are set, but even with these entries the comment doesn't work.
It's weird.