'^forum/rules/?', 'sef' => 'forum/rules', 'redirect' => '{e_PLUGIN}forum/forum.php?f=rules', ); $config['stats'] = array( 'regex' => '^forum/stats/?', 'sef' => 'forum/stats', 'redirect' => '{e_PLUGIN}forum/forum_stats.php', ); $config['track'] = array( 'regex' => '^forum/track/?', 'sef' => 'forum/track', 'redirect' => '{e_PLUGIN}forum/forum.php?f=track', ); $config['markread'] = array( 'sef' => '^forum/markread/{forum_id}', 'regex' => 'forum/markread/([\d]*)', 'redirect' => '{e_PLUGIN}forum/forum.php?f=mfar&id=$1', 'legacy' => '{e_PLUGIN}forum/forum.php?f=mfar&id={forum_id}' ); $config['post'] = array( 'regex' => '^forum/post/?', 'sef' => 'forum/post/', 'redirect' => '{e_PLUGIN}forum/forum_post.php', ); // only create url - parsed above. $config['move'] = array( 'sef' => 'forum/post/?f=move&id={thread_id}', 'legacy' => '{e_PLUGIN}forum/forum_post.php?f=move&id={thread_id}' ); $config['split'] = array( 'sef' => 'forum/post/?f=split&id={thread_id}&post={post_id}', 'legacy' => '{e_PLUGIN}forum/forum_post.php?f=split&id={thread_id}&post={post_id}' ); $config['topic'] = array( 'regex' => 'forum\/([^\/]*)\/([\d]*)(?:\/|-)([\w-]*)/?\??(.*)', // 'regex' => '^forum/(.*)/(\d*)(?:-|/)([\w-]*)/?\??(.*)', 'sef' => 'forum/{forum_sef}/{thread_id}/{thread_sef}/', 'redirect' => '{e_PLUGIN}forum/forum_viewtopic.php?id=$2&$4' ); /* $config['subforum'] = array( 'regex' => '^forum/(.*)/(.*)$', 'sef' => 'forum/{parent_sef}/{forum_sef}', 'redirect' => '{e_PLUGIN}forum/forum_viewforum.php?sef=$2', 'legacy' => '{e_PLUGIN}forum/forum_viewforum.php?id={forum_id}' ); */ $config['index'] = array( 'regex' => '^forum\/?$', // matched against url, and if true, redirected to 'redirect' below. 'sef' => 'forum', // used by e107::url(); to create a url from the db table. 'redirect' => '{e_PLUGIN}forum/forum.php', // file-path of what to load when the regex returns true. ); $config['forum'] = array( 'regex' => '^forum\/([^\/]*)\/?\??([^\/]*)?$', 'sef' => 'forum/{forum_sef}/', 'redirect' => '{e_PLUGIN}forum/forum_viewforum.php?sef=$1&$2', 'legacy' => '{e_PLUGIN}forum/forum_viewforum.php?id={forum_id}' ); return $config; } }