rewrite of Forum URLs
Discussion in "E107 FURL Support" started by zollk60 May 13, 2008.
Tue May 13 2008, 12:00 am
once you have posted you get an URL that looks like this:
So, it looks like the rewrite rule for last post is not working correctly.
http://www..../e107_forum-t1216-last.htmlIf the poster tries to immediately edit the post, they get a 404 Error; because the URL for editing looks like this:
http://www..../e107_plugins/forum/forum-e1216.html.
So, it looks like the rewrite rule for last post is not working correctly.
[ Edited Tue May 13 2008, 06:02 am ]
Tue May 13 2008, 06:23 am
Thats a bug in e107's forum..
the rewriterule is working, but the core link is relative instead of absolute.
you need to edit your forum core file for this. or remove the pattern from e_module and sitelinks.sc file of FURL.
to edit forum code open file forum_shortcodes.php in e107_plugins/forum folder
look for this code
replace it with
the rewriterule is working, but the core link is relative instead of absolute.
you need to edit your forum core file for this. or remove the pattern from e_module and sitelinks.sc file of FURL.
to edit forum code open file forum_shortcodes.php in e107_plugins/forum folder
look for this code
SC_BEGIN EDITIMG global $post_info, $thread_info, $thread_id; if ($post_info['user_id'] != '0' && $post_info['user_name'] === USERNAME && $thread_info['head']['thread_active']) { return "<a href='forum_post.php?edit.".$post_info['thread_id']."'> ".IMAGE_edit."</a> "; } else { return ""; } SC_END
replace it with
SC_BEGIN EDITIMG global $post_info, $thread_info, $thread_id; if ($post_info['user_id'] != '0' && $post_info['user_name'] === USERNAME && $thread_info['head']['thread_active']) { return "<a href='".e_PLUGIN."forum/forum_post.php?edit." .$post_info['thread_id']."'> ".IMAGE_edit."</a> "; } else { return ""; } SC_END
[ Edited Tue May 13 2008, 06:24 am ]
zollk60 like this.
Powered by e107 Forum System