Loading...
 
Features / Usability

Features / Usability


Re: Forum Mail-in: 2 posts? Q&D solution

posts: 80 Austria

Well, here is the easy Q&D solution if you don't use the "Discuss this wiki page" feature.

It effectively only skips the thread with "Use this thread to discuss the %s page." only.

The used file is lib/commentslib.php on line 437 (tikiwiki-1.9.10.1)

Image
Replace this
// No thread already; create it. $temp_msid = ''; $parentId = $this->post_new_comment( 'forum:' . $forumId, 0, $userName, $title, sprintf(tra("Use this thread to discuss the %s page."), "[tiki-index.php?page=$title|$title]"), $temp_msid, $in_reply_to ); $this->register_forum_post($forumId,0); // First post is in reply to this one $in_reply_to = $temp_msid; }

Image
With that:
// No thread already; create it. $temp_msid = ''; /* $parentId = $this->post_new_comment( 'forum:' . $forumId, 0, $userName, $title, sprintf(tra("Use this thread to discuss the %s page."), "[tiki-index.php?page=$title|$title]"), $temp_msid, $in_reply_to ); $this->register_forum_post($forumId,0); */ // First post is in reply to this one $in_reply_to = $temp_msid; $parentId=0; }