Previous Thread
Next Thread
Print Thread
Hop To
#129719 08/07/2006 7:45 PM
Joined: Feb 2006
Posts: 31
L
newbie
newbie
L Offline
Joined: Feb 2006
Posts: 31
I recently upgraded from 6.1.1 to 6.5.5

I have some complaints from users because of an apparent change in the email notification of replies to their posts.

I do have notification turned on as an option.

Seems people now have to go to the trouble of clicking the "favorites" box for every post or thread they make, or they will get no notification.

People want to just set something in their profile, and always thereafter get email notifications of all replies to them. As it was before.

How can I fix or change that ?

#129720 08/14/2006 1:15 AM
Joined: Feb 2006
Posts: 31
L
newbie
newbie
L Offline
Joined: Feb 2006
Posts: 31
I figured maybe I should explain a bit more.

It used to be my users could just click the box in their preferences, and from then on, they would always get a notification for any responses to any of the posts they made, anywhere. Unless they opted out of that for any particular post.

Now, they click the acceptance box in their preferences... And they still have to click a box every time they make a post in a new thread, if they want to be notified of a response.

Worse... Now they are notified of any responses at all in the entire thread. Even their own responses to others...

They want to put it back the way it used to be. You make your choice in your preferences, and then you are notified of any responses to any posts you make anywhere. But ONLY to your own posts. Not to every post in the entire thread... And you can opt out of recieving notices of responses to any posts that you'd rather not get notices for.

#129721 08/14/2006 8:48 AM
Joined: Aug 2006
Posts: 111
member
member
Joined: Aug 2006
Posts: 111
It sounds like you had a "mod" in your old version and need to apply it to the new version.

I'm not sure if we are allowed to post these here, but this is what you are looking for. Note, this is not supported by UBB in any way.

Code
 Mod Name / Version - Email Post Replies 2.0
	
Description - This will allow a user to enable an option in their email preferences
and by default automatically receive all replies to their posts via email.
Version 2.0 updates to work with 6.4's new mail function.

Working Under - UBB.Threads 6.4

Pre-requisites - none

Author - JoshPet - www.joshuapettit.com

Credits - Commissioned by Smitdogg from www.mameworld.info

Files Altered - editemail.php, changeemail.php, editemail.tmpl, addpost.php

Database Altered - New field, U_EmailPostReply added to w3t_Users

New Files - none

Notes - will not email the user their own replies to their posts, only replies from 
other users.


##
## Run this Query
##

ALTER TABLE w3t_Users 
ADD U_EmailPostReply TINYINT( 1 ) DEFAULT '0' NOT NULL ;



##
## Open editemail.php
##

## Find this:

    SELECT U_Username,U_EReplies,U_Notify,U_AdminEmails,U_EmailFormat


## Change to this:

    SELECT U_Username,U_EReplies,U_Notify,U_AdminEmails,U_EmailFormat,U_EmailPostReply
   
   
## Find this:

   list($CheckUser,$EReplies,$Notify,$adminemail,$emailformat) = $dbh -> fetch_array($sth);


## Change to this:

   list($CheckUser,$EReplies,$Notify,$adminemail,$emailformat,$emailpostreply) = $dbh -> fetch_array($sth);
   

## Find this:

// ---------------------------------
// Set the default for Email replies


## Change to this:



// --------------------------------
// Set the default for Email post replies - by JoshPet
	if ($emailpostreply) {
		$emailpostreplyyes = "checked=\"checked\"";
		$emailpostreplyno = "";
	} else {
		$emailpostreplyyes = "";
		$emailpostreplyno = "checked=\"checked\"";
	}		

// ---------------------------------
// Set the default for Email replies


##
## Open changeemail.php
##

## Find this:

	$emailformat	= get_input("emailformat","post");

## Change to this:

	$emailformat	= get_input("emailformat","post");
	$emailpostreply = get_input("emailpostreply","post");
	
	
## Find this:	

	$AdminEmails_q = addslashes($adminemails);

## Change to this:

	$AdminEmails_q = addslashes($adminemails);
	$emailpostreply_q = addslashes($emailpostreply);
	
	
## Find this:

		U_EmailFormat    = '$EmailFormat_q'

## Change to this:

		U_EmailFormat    = '$EmailFormat_q',
		U_EmailPostReply = '$emailpostreply_q'


##
## Open editemail.tmpl
##

## Find this:

<br /><br />
{$ubbt_lang['PROF_REPLIES']}<br />
<input type="radio" name="EReplies" value="Off" $noereplies class="formboxes" />
 {$ubbt_lang['TEXT_NO']}
<input type="radio" name="EReplies" value="On" $ereplies class="formboxes" />
 {$ubbt_lang['TEXT_YES']}


## Change to this:

<br /><br />
Do you want replies to YOUR posts emailed to you?<br />
<input type="radio" name="emailpostreply" value="0" $emailpostreplyno class="formboxes" />
 {$ubbt_lang['TEXT_NO']}
<input type="radio" name="emailpostreply" value="1" $emailpostreplyyes class="formboxes" />
 {$ubbt_lang['TEXT_YES']}

<br /><br />
{$ubbt_lang['PROF_REPLIES']}<br />
<input type="radio" name="EReplies" value="Off" $noereplies class="formboxes" />
 {$ubbt_lang['TEXT_NO']}
<input type="radio" name="EReplies" value="On" $ereplies class="formboxes" />
 {$ubbt_lang['TEXT_YES']}


##
## Open addpost.php
##

## Find this:

// ---------------------------------------------
// Update the total post if the post is Approved
   if ($Approved == "yes") {


## Change to this:

// ---------------------------------------------
// See if the original poster wanted replies to all of their posts - by JoshPet
if (($ParentUser != $user['U_Number']) && ($MainTopic != 1)) {
	$query = "
		SELECT U_Email,U_EmailFormat
		FROM {$config['tbprefix']}Users
		WHERE U_Number = $ParentUser
		AND U_EmailPostReply = 1
	";
    $sth = $dbh -> do_query($query);
    list($replyemail,$replyformat) = $dbh -> fetch_array($sth);
    if ($replyemail) {

         $EmailBody = $Body;
		// If we are sending HTML email then we need the full path
		// to images.
         $newline = "\n";
         if (stristr(PHP_OS,"win")) {
            $newline = "\r\n";
         }
    		if ($emailformat == "HTML") {
				$EmailBody = str_replace("\"{$config['images']}","\"{$config['imageurl']}",$EmailBody);
           	$msg     = "$postername replied to one of your posts:<br /><br /><a href=\"{$config['phpurl']}/showthreaded.php?Cat=$Cat&Number=$Mnumber\">{$config['phpurl']}/showthreaded.php?Cat=$Cat&Number=$Mnumber</a><br /><br />$EmailBody";
			}
			else {
           	$EmailBody = str_replace("<br />","\n",$EmailBody);
           	$msg     = "$postername replied to one of your posts: $newline{$config['phpurl']}/showthreaded.php?Cat=$Cat&Number=$Mnumber$newline$newline $EmailBody";
			}


         $to = $replyemail;
         $mailer = new mailer;
         $subject = "Reply to Your Post: $Subject";
		 $mailer -> send_mail($emailformat,"",$to,$subject,$msg);

    }
}		

// ---------------------------------------------
// Update the total post if the post is Approved
   if ($Approved == "yes") {
	 

Last edited by Fred Johnson; 08/14/2006 8:53 AM.
#129722 08/14/2006 11:27 AM
Joined: Feb 2006
Posts: 31
L
newbie
newbie
L Offline
Joined: Feb 2006
Posts: 31
Fred,

Thank you very much for the response.

The way the email responses was set up, was not the result of a hack or modification. I never modified anything to do with email notifications. Nor did I ever ok any Infopop or Groupee employee to do so.

It was that way out of the gate.

In preferences you said you wanted to get email notification of all replies to all your own posts.

You then got email notification whenever someone else replied to any post you made anywhere.

If you did not want notification for any particular post for whatever reason, you could go to that post and turn off notification for that post.

I may end up trying this modification if I do not get any response from the groupee people themselves. Thank you for posting it.

#129723 08/14/2006 4:05 PM
Joined: Aug 2006
Posts: 111
member
member
Joined: Aug 2006
Posts: 111
I think this was in past versions, but it ended up coming out at one point or the other.

I had similar questions and that is how I found the mod.

It does pretty much what you are asking for.

I put it on 6.5.5 and it works.

Fred


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 541 guests, and 181 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)