1

Topic: Notify user

some people  visit the forums, post, and then never come back to see their replies.

is there a way for admins only to see a button in viewtopic next to someone post count that says "Notify User of Replies" or something like that, and it sends an email to the user saying that their thread has got replies?

thanks/.

2

Re: Notify user

Why? If they haven't come back to check, it would appear they don't care if there are any replies or not.

Re: Notify user

Why don't you just tell them to subscribe?

FluxBB - v1.4.8

4 (edited by lie2815 2007-05-18 14:54)

Re: Notify user

Ok, here you go.
In viewtopic.php, find:

else
        $post_actions[] = '<li class="postreport"><a href="misc.php?report='.$cur_post['id'].'">'.$lang_topic['Report'].'</a>'.$lang_topic['Link separator'].'</li><li class="postdelete"><a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a>'.$lang_topic['Link separator'].'</li><li class="postedit"><a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a>'.$lang_topic['Link separator'].'</li><li class="postquote"><a href="post.php?tid='.$id.'&qid='.$cur_post['id'].'">'.$lang_topic['Quote'].'</a>';

And replace with:

else
        $post_actions[] = '<li class="postreport"><a href="misc.php?report='.$cur_post['id'].'">'.$lang_topic['Report'].'</a>'.$lang_topic['Link separator'].'</li><li class="postdelete"><a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a>'.$lang_topic['Link separator'].'</li><li class="postedit"><a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a>'.$lang_topic['Link separator'].'</li><li class="postquote"><a href="post.php?tid='.$id.'&qid='.$cur_post['id'].'">'.$lang_topic['Quote'].'</a></li><br /><li class="postedit"><a href="misc.php?user='.$cur_topic['poster_id'].'&tid='.$id.'">Subscribe this poster</a></li>';

Then, open misc.php and find:

else if (isset($_GET['subscribe']))

And, add before:

else if (isset($_GET['subscribeuser']))
{
    $user = intval($_GET['subscribeuser']);
    $topic_id = intval($_GET['tid']);

$result=$db->query('SELECT * FROM '.$db->prefix.'subscriptions WHERE user_id='.$user.' AND topic_id='.$topic_id);
$already=$db->result($result);
if($already)
    redirect($_SERVER['REQUEST_URI'], 'User is already subscribed. Redirecting...');
else
{
    $result=$db->query('INSERT INTO '.$db->prefix.'subscriptions (user_id, topic_id) VALUES('.$user.' ,'.$topic_id.')') or error('Unable to add subscription', __FILE__, __LINE__, $db->error());
    redirect($_SERVER['REQUEST_URI'], 'Subscribing user. Redirecting...');
}
}

So, that should work now. I already made some changes in the code in viewtopic.php, so please change that in case you already tried.

FluxBB - v1.4.8

Re: Notify user

Changes made. Complete instructions (that should work) above. I will publish this as mod tonight.

FluxBB - v1.4.8

Re: Notify user

MOD RELEASED!!!

http://www.punres.org/desc.php?pid=391
http://www.punres.org/viewtopic.php?id=3376
http://punbb.org/forums/viewtopic.php?id=15966

FluxBB - v1.4.8

Re: Notify user

have you done this in 1.3 x   aswell by any chance?
wld appreciate...