Bug tracker
Topic Started by Link (fix completed in vcs)
This problem was pre-existing before the 3.0.2 upgrade as well.
I have this problem in prosilver. I am not sure about any other style.
If person A starts a topic, then person B posts on that topic, then person A deletes their post, the started by link in viewforum now says person B like it should, but when you click on it, it takes you to the profile of person A.
Comments / History
I have many topic author links that are not right, and that number grows almost daily for me.
I have experienced this issue also and found that there is missing update a field's value.
Here is my fix.
Test it on a test board before apply to live forum.
Open includes/functions_posting.php
FIND
- Code: Select all
$sql_data[TOPICS_TABLE] = 'topic_first_post_id = ' . intval($row['post_id']) . ", topic_first_poster_colour = '" . $db->sql_escape($row['user_colour']) . "', topic_first_poster_name = '" . (($row['poster_id'] == ANONYMOUS) ? $db->sql_escape($row['post_username']) : $db->sql_escape($row['username'])) . "'";
REPLACE WITH
- Code: Select all
$sql_data[TOPICS_TABLE] = 'topic_poster = ' . intval($row['poster_id']) . ', topic_first_post_id = ' . intval($row['post_id']) . ", topic_first_poster_colour = '" . $db->sql_escape($row['user_colour']) . "', topic_first_poster_name = '" . (($row['poster_id'] == ANONYMOUS) ? $db->sql_escape($row['post_username']) : $db->sql_escape($row['username'])) . "'";
Can you post the fix ?