Go to the AdminCP > Plugin > Edit Plugin. Select "Generate post url" and replace all with:
PHP Code:
//Globals are uncached!
global $vbulletin;
//If is TfSEO enable and post is to rewrite
if ($vbulletin->options['tfseo_enable'] AND $vbulletin->options['tfseo_rewrite'] & $vbulletin->bf_misc_rewrite['post'] AND isset($forum[forumid]))
{
//Generate url
if ($vbulletin->options['tfseo_type'] == 1)
{
$tfseo['g'] = tfseo_url_post($thread['forumid'], $thread['threadid'], $post['postid']);
} else if ($vbulletin->options['tfseo_type'] == 2)
{
$tfseo['g'] = tfseo_url_post($thread['forumid'], $thread['title'], $thread['threadid'], $post['postid']);
} else if ($vbulletin->options['tfseo_type'] == 3)
{
//Get forum key
$tfseo_key_query = $vbulletin->db->query_read_slave("
SELECT forum.tfseo_key
FROM " . TABLE_PREFIX . "forum AS forum
WHERE forumid = $forum[forumid]
");
$forum[tfseo_key] = mysql_fetch_assoc($tfseo_key_query);
$forum[tfseo_key] = implode($forum[tfseo_key]);
$tfseo['g'] = tfseo_url_post($forum[tfseo_key], $thread['forumid'], $thread['title'], $thread['threadid'], $post['postid']);
}
}