It's doable, but you'll have to alter the query grabbing the topic_descrition, since it's using the post table to do so in the regular mod.
In viewtopic.php, you can look for :
- Code: Select all
$order_sql = (!$post_id) ? '' : "GROUP BY p.post_id, t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id,
In line after add :
- Code: Select all
t.topic_description,
Find :
- Code: Select all
sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id,
In line after add :
- Code: Select all
t.topic_description,
Then find :
- Code: Select all
$phpbb_seo->seo_meta['meta_desc'] = $phpbb_seo->meta_filter_txt($board_config['sitename'] . " : $page_title");
That's what will be used to build up the topic description.
You can change it to :
- Code: Select all
$phpbb_seo->seo_meta['meta_desc'] = $phpbb_seo->meta_filter_txt($forum_topic_data['topic_description'] . " : $page_title");
For example.
The meta keyword, since it's using the meta desc to build the keywords as well would then reuse the keywords in the topic desc as well.
In all case, the most used keywords in what is sent to $phpbb_seo->make_keywords() will be listed first, and they are limited to 15 by default.
++