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

Clydehet
Wed May 01 2024, 06:44 pm
Davidoried
Wed May 01 2024, 06:11 pm
KevinTab
Sun Apr 28 2024, 05:35 am
Tumergix
Sun Apr 28 2024, 12:59 am
StevenDrulk
Sat Apr 27 2024, 08:47 pm
StephenHauct
Sat Apr 27 2024, 09:38 am
Adamsaf
Sat Apr 27 2024, 07:12 am
Robertphype
Sat Apr 27 2024, 12:23 am