Loading...
 
Skip to main content

Features / Usability


Forum Mail-in: 2 posts?

Hi!
I'm trying to use the Mail in feature for Forums.
now hen a new mail ich received from the pop3 server a Forum entry is created in this form:

Copy to clipboard
Use this thread to discuss the received mail page.

And then a new Post is created, using the mail text as text.

How can i skip the first step, so the First Topic already has the text from the mail and no second topic is created?

Thank you,
Torpedro

This is a bug. I don't think there's a way to stop that first post, which seems to be related to the wiki "discuss page in forums" feature (unless turning this feature off, if it's on, has some effect). This problem has been reported before but I don't know if a bug report was submitted or not.

-- Gary


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
Copy to clipboard
// 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:
Copy to clipboard
// 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; }