But in case a user did not post in the correct forum, you can just move the topic, it won't change its URL, and will make it easier for user to browse the forums.
About the highlights, if this is correct, you want to highlight some of the post content.
So, this is rather easy, try these links :
http://phpbb2.phpbb-seo.net/phpbb-seo-d ... ight=phpBB
http://phpbb2.phpbb-seo.net/phpbb-seo-d ... =phpBB+SEO
The vanilla url would be :
http://phpbb2.phpbb-seo.net/viewtopic.p ... =phpBB+SEO
The highlight words are grabbed in viewtopic.php :
- Code: Select all
//
// Was a highlight request part of the URI?
//
$highlight_match = $highlight = '';
if (isset($HTTP_GET_VARS['highlight']))
{
// Split words and phrases
$words = explode(' ', trim(htmlspecialchars($HTTP_GET_VARS['highlight'])));
for($i = 0; $i < sizeof($words); $i++)
{
if (trim($words[$i]) != '')
{
$highlight_match .= (($highlight_match != '') ? '|' : '') . str_replace('*', '\w*', preg_quote($words[$i], '#'));
}
}
unset($words);
$highlight = urlencode($HTTP_GET_VARS['highlight']);
$highlight_match = phpbb_rtrim($highlight_match, "\\");
}
As you can see, it's only waiting for GET vars, but you could easily add a check on post vars and get the highlights you want transmitted through POST var instead, sent from where the topic or post is linked, (since it seems you want to chooses them, the user does not need to see them in URL), so that you won't end up with any duplicates.
++