I am sure you are right, Paul! However, I have copied exactly as provided, including the comma after
$limit. I have just checked the line in my file again:
if($res=db_simpleSelect(0, $Tt, 'topic_id, topic_title, topic_poster_name, topic_time, topic_last_post_id, forum_id, posts_count, topic_time, topic_last_poster', $tw, $te, $tv, $sort, $limit, 'topic_status', '!=', 1)){
The curious thing is that when I restore the original code, the topics appear on the homepage again--including the locked topics. So the news feed itself is working; it is only the modified code that stops any topic from appearing!
I have two separate First Page News add-on PHP files on the homepage: addon_1stpagenews.php and addon_1stpagenews-x.php. The first pulls topics from Forum X and is working normally. The second pulls topics from Forum Y, and that is the one I am trying to modify to exclude locked topics.
When I restore the original code in addon_1stpagenews-x.php, the Forum Y topics appear again, including the locked topics. With the modified code, none of the Forum Y topics appear. The Forum X file continues to work normally.
I am not sure what I am missing. :(
— marsbar