Topic: Number-of-views in the show-my-topics feature (experience needed!)
When show-my-topics feature is posted via the search.php, it should show something like this
Replies | Views | Last post
23 34 09-Feb-2010 04:03 by Amelotti
But it doesn't show Views.
In order to insert the number-of-views, we steal the following expression from the viewforum.php, where it knows how to show it
if ($forum_config['o_topic_views'] == '1')
$forum_page['item_body']['info']['views'] = '<li class="info-views"><strong>'.forum_number_format($cur_topic['num_views']).'</strong> <span class="label">'.(($cur_topic['num_views'] == 1) ? $lang_forum['view'] : $lang_forum['views']).'</span></li>';
then change $cur_topic to $cur_set (by analogy) and put into the correspondent part of search.php between "replies" and "last post" (371-372)
However, it ain't workin' and shows only zeros, instead of the exact count, probably because $cur_set['num_views'] points in the wrong direction. (Neither does it work if we leave $cur_topic).
How can this be fixed?