Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2001
Posts: 216
Member
Member
Offline
Joined: Jun 2001
Posts: 216
Name: Email Notification on Reply v3.0

v3.0 Author: V3.0 Ported to UBB 6.1.0.x by Eric Parr (Corona)
Original Author: V2.0 Eddie Holman (Leshrac)

Requirements: UBB version 6.1.0.x

Tested On: UBB v6.1.0.3

Thanks: Leshrac for providing the original Email Notification for Replies v2.0 code

Purpose: Hack allows forum users to receive e-mail notification for threads that have been replied to. It also allows the topic starting user to change this option later by editing their post and turning notification off or on.

WARNING: This hack should only be attempted by experienced coders!!! This hack hooks into forum files, and if a bug occurs, it has the potential to destroy the forum files. This is a BETA hack!! If you attempt to install this hack, you do so at your own risk -- please backup all files before installation. By installing this hack, you agree that i will not be liable for damages.

NOTES: The original Email Notification for Replies v2.0 hack, created by Eddie Holman (Leshrac) was coded for compatability with UBB v6.0.x. This is the same exact hack, which i have only re-wrote to be compatable with UBB6.1.0.x. After a few emails were shipped to the v2.0 author with no return response, heres the code.

More Information: More Information

Support Questions?
Feel free to post your support problems here. I do not know if i can answer them, or if i will have time to solve them. However, others who use the hack may be willing to provide assistance.

[ 01-22-2002 09:46 PM: Message edited by: Corona ]

Sponsored Links
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Thank you.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Jun 2001
Posts: 216
Member
Member
Offline
Joined: Jun 2001
Posts: 216
Your welcome, Glad the code helps!

[ 01-23-2002 04:08 PM: Message edited by: Corona ]

Joined: Sep 2001
Posts: 46
Member
Member
Offline
Joined: Sep 2001
Posts: 46
installed it. didn't give out errors till now. and i think it will work. gr8 stuff

Joined: Jan 2002
Posts: 10
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 10
Does is work with 6.1.0.2 or 6.1.0.3?

Sponsored Links
Joined: Jun 2001
Posts: 216
Member
Member
Offline
Joined: Jun 2001
Posts: 216
quote:
Originally posted by NHThangVN:
Does is work with 6.1.0.2 or 6.1.0.3?



should work on both.

Joined: Feb 2001
Posts: 125
Member
Member
Offline
Joined: Feb 2001
Posts: 125
quote:
Originally posted by Corona:
quote:
Originally posted by NHThangVN:
Does is work with 6.1.0.2 or 6.1.0.3?

should work on both.
Does it work with 6.2?

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Hey I know this probally with 6.1 a incompatibility with 6.2.
I installed email notification with replies on 6.2. I did this since the code is exactly the same to replace in 6.1 to 6.2. so why not it should work flawlessly

well then I get this error!!

Hello,

A user has replied to a topic you created at %%BBNAME%%. Here are the details:

Forum: %%THIS_FORUM_NAME%%
Subject: %%THAT_SUBJECT%%
Who Replied: %%FROM_PDN%%

View Topic @ %%TOPIC_URL%%

I figured you could point me in the right directions as it has to do with the new vars_wordlet_email.cgi file and its new structure? It seems to be causing the problem since infopop does extensive talk about how new this file is in the release etc etc.

Joined: Jun 2001
Posts: 216
Member
Member
Offline
Joined: Jun 2001
Posts: 216
quote:
Originally posted by dreamer:
Does it work with 6.2?

Email Notification on Reply for UBB 6.1.0.x is not compatable with UBB6.2

Joined: Jun 2001
Posts: 216
Member
Member
Offline
Joined: Jun 2001
Posts: 216
quote:
Originally posted by omegatron:
Hey I know this probally with 6.1 a incompatibility with 6.2.
I installed email notification with replies on 6.2. I did this since the code is exactly the same to replace in 6.1 to 6.2. so why not it should work flawlessly

well then I get this error!!

Hello,

A user has replied to a topic you created at %%BBNAME%%. Here are the details:

Forum: %%THIS_FORUM_NAME%%
Subject: %%THAT_SUBJECT%%
Who Replied: %%FROM_PDN%%

View Topic @ %%TOPIC_URL%%

I figured you could point me in the right directions as it has to do with the new vars_wordlet_email.cgi file and its new structure? It seems to be causing the problem since infopop does extensive talk about how new this file is in the release etc etc.

Hello Omegatron,

Unfortunately, i do not have a 6.2 board installed yet -- and it will probably be a while before i get one up and running.

The problem is that the email handling routines in 6.2 are completely different. The hack into ubb_new_reply.cgi reads as follows for the mail handling routine:

if ($vars_email{email_format} ne 'html') {
&RequireVars("$vars_config{VariablesPath}/vars_wordlets_email.cgi");
$email_message = qq!$vars_wordlets_email{topic_notify}!;
} else {
$email_message = '';
}

if ($vars_email{email_format} ne 'ascii') {
$message = &ConvertReturns($message_ascii);
&RequireVars("$vars_config{VariablesPath}/vars_wordlets_email.cgi");
my $html_body = qq!! . "$vars_wordlets_email{topic_notify_html}" . qq!!;
$html_message = "$EmailHeader $html_body $Footer";
} else {
$html_message = '';
}

&ubb_mail("$notify_email", "$vars_display{BBEmail}", "$vars_display{BBEmail}", "", "$vars_wordlets_email{topic_notify_subject}", "$email_message", "$html_message", "");

This routine was commonly used in version 6.0 -> 6.1.0.x. Ubb 6.2.0 uses a different routine. If you compare the hack code to the current mail handling routine found in ubb_new_reply.cgi it is very different.

The new mail handling routine from a stock ubb6.2.0 install reads as follows:

&RequireVars("$vars_config{VariablesPath}/vars_wordlets_e
i");

&RequireVars("$vars_config{VariablesPath}/vars_wordlets_email.cgi");

my $s = &EmailWordletFixer;
e-val($s);
if(defined &EmailWordletFiller) {
%vars_wordlets_email = &EmailWordletFiller();
} else {
&StandardHTML($vars_wordlets_criterr{no_email_wordlet_filler} . ": $@");
} # end if

my $this_message = qq!$vars_wordlets_email{post_alert_cant_write}!;

&RequireCode("$vars_config{CGIPath}/ubb_lib_mail.cgi");
&ubb_mail("$vars_registration{RegsAdminEmail}", "$vars_registration{RegsAdminEmail}", "$vars_registration{RegsAdminEmail}", "", "$vars_wordlets_err{post_no_write_subject} : $vars_config{BBName}", "$this_message", "", "$vars_display{BBEmail}");

2 very disimilar routines. Unfortunately, i can't provide any assistance as i do not have ubb6.2 set up, and i am not familiar with the new mailing routines. However, this is the area of the hack which you want to examine in order to port this code for compatability with v6.2.

If i had access to a ubb6.2.0 setup, i could probably port this code for compatability in a short amount of time.

--Corona

Sponsored Links
Joined: Jun 2001
Posts: 216
Member
Member
Offline
Joined: Jun 2001
Posts: 216
nm, the code i had here won't work.

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Corona: Porting this over to the new 6.2 routines should be pretty easy.

First, make a new copy of the email Wordlet - use existing %%TEMPLATE%% routines for everything if possible. See EmailWordletFixer in ubb_lib for a description of which %%TEMPLATE%% is for each variable. You'll probably want a new one for the current message and the replier username.

Just stick the call and check block after the wordlets_email file is loaded, it'll Just Work™


UBB.classic: Love it or hate it, it was mine.
Joined: Jun 2001
Posts: 216
Member
Member
Offline
Joined: Jun 2001
Posts: 216
quote:
Originally posted by Charles Capps:
Corona: Porting this over to the new 6.2 routines should be pretty easy.

First, make a new copy of the email Wordlet - use existing %%TEMPLATE%% routines for everything if possible. See EmailWordletFixer in ubb_lib for a description of which %%TEMPLATE%% is for each variable. You'll probably want a new one for the current message and the replier username.

Just stick the call and check block after the wordlets_email file is loaded, it'll Just Work™

Thanks Charles for the tips! Pretty easy is an understatement smile I just took a peak at the code and wrote up a new hack. Although i haven't tested the code, it should work. You can test the v4.0 for ubb6.2 using this hack here: http://test.altereddestiny.net/appformscreenshots/EmailOnReplyv4.0.txt

Let me know if it works, and i'll put it under the 6.2 mods.

--Corona

Joined: Aug 2001
Posts: 94
Member
Member
Offline
Joined: Aug 2001
Posts: 94
i have installed it and cannot see it ??? strange its only a small hack and i have checked i have dont it right ???

i have cleared the chache and everything it just acts like i have not done nothing ???

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
You should see it when you reply. If you don't, rehack ubb_new_reply.cgi and public_new_reply_form.pl (I think)

Joined: Jun 2001
Posts: 216
Member
Member
Offline
Joined: Jun 2001
Posts: 216
quote:
Originally posted by Henry8th:
i have installed it and cannot see it ??? strange its only a small hack and i have checked i have dont it right ???

i have cleared the chache and everything it just acts like i have not done nothing ???

Henry, you should see evidence of the hack if you do the following:

Click 'Post a New Topic' button.
Under the message field box, you should see a dialog box named 'Options'. Within the selectable options, you should see an option named Email Notification: emails sent to you whenever someone replies

If you don't see the option --> rehack.

Joined: Dec 2003
Posts: 1
Junior Member
Junior Member
Offline
Joined: Dec 2003
Posts: 1
Does anyone have the mulithack file for this?...or even a zip would do...all the links seem to be broken

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
You're gonna be better off waiting a few days for 6.7, which has this built in... wink


UBB.classic: Love it or hate it, it was mine.

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)