1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-29 17:19:56 +02:00

Issue #933 - real SEF URLs added to forum. (work-in-progress)

This commit is contained in:
Cameron
2015-04-25 12:57:00 -07:00
parent 1e12220959
commit 542b30892f
8 changed files with 102 additions and 27 deletions

View File

@@ -32,18 +32,18 @@ class forum_url // plugin-folder + '_url'
);
$config['topic'] = array(
'regex' => '^forum/(.*)/(.*)$',
'sef' => 'forum/{forum_sef}/{topic_sef}',
'redirect' => '{e_PLUGIN}forum/forum_viewtopic.php?id=$1'
'regex' => '^forum/(.*)/(\d*)-([\w-]*)/?\??(.*)',
'sef' => 'forum/{forum_sef}/{thread_id}-{thread_sef}',
'redirect' => '{e_PLUGIN}forum/forum_viewtopic.php?id=$2&$4'
);
$config['forum'] = array(
'regex' => '^forum/(.*)$',
'sef' => 'forum/{forum_sef}',
'redirect' => '{e_PLUGIN}forum/forum_viewforum.php?id=$1'
'redirect' => '{e_PLUGIN}forum/forum_viewforum.php?sef=$1',
'legacy' => '{e_PLUGIN}forum/forum_viewforum.php?id={forum_id}'
);
return $config;