Discussion in "E107 FURL Support" started by    zollk60    May 13, 2008.
Tue May 13 2008, 12:00 am
#1
once you have posted you get an URL that looks like this:
http://www..../e107_forum-t1216-last.html
If 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
#2
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

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.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Jasonkam
Mon May 06 2024, 10:00 pm
JamesroW
Mon May 06 2024, 09:37 am
Chrispes
Mon May 06 2024, 07:34 am
ArktiTic
Sun May 05 2024, 07:06 pm
CesslasyNear
Sun May 05 2024, 02:58 pm
chimichmedic1204
Sun May 05 2024, 11:06 am
Jamiegob
Sun May 05 2024, 10:11 am
Gregoryjed
Sun May 05 2024, 10:02 am