Previous Thread
Next Thread
Print Thread
Rate Thread
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
Entire Thread
Subject Posted By Posted
[6.1x] Email Notification on Reply for UBB 6.1.0.x Corona 01/23/2002 5:31 AM
Re: [6.1x] Email Notification on Reply for UBB 6.1.0.x Ian_W 01/24/2002 12:03 AM
Re: [6.1x] Email Notification on Reply for UBB 6.1.0.x Corona 01/24/2002 12:05 AM
Re: [6.1x] Email Notification on Reply for UBB 6.1.0.x SubZero5 01/24/2002 6:36 AM
Re: [6.1x] Email Notification on Reply for UBB 6.1.0.x NHThangVN 01/25/2002 10:32 AM
Re: [6.1x] Email Notification on Reply for UBB 6.1.0.x Corona 01/25/2002 8:14 PM
Re: [6.1x] Email Notification on Reply for UBB 6.1.0.x dreamer 01/28/2002 10:43 AM
Re: [6.1x] Email Notification on Reply for UBB 6.1.0.x omegatron 01/29/2002 11:35 PM
Re: [6.1x] Email Notification on Reply for UBB 6.1.0.x Corona 01/30/2002 5:16 AM
Re: [6.1x] Email Notification on Reply for UBB 6.1.0.x Corona 01/30/2002 5:26 AM
Re: [6.1x] Email Notification on Reply for UBB 6.1.0.x Corona 01/30/2002 5:39 AM
Re: [6.1x] Email Notification on Reply for UBB 6.1.0.x Charles Capps 01/30/2002 7:26 AM
Re: [6.1x] Email Notification on Reply for UBB 6.1.0.x Corona 01/30/2002 10:47 AM
Re: [6.1x] Email Notification on Reply for UBB 6.1.0.x Henry8th 01/30/2002 3:35 PM
Re: [6.1x] Email Notification on Reply for UBB 6.1.0.x LK 01/30/2002 3:51 PM
Re: [6.1x] Email Notification on Reply for UBB 6.1.0.x Corona 01/30/2002 7:50 PM
Re: [6.1x] Email Notification on Reply for UBB 6.1.0.x graffix 12/17/2003 9:49 PM
Re: [6.1x] Email Notification on Reply for UBB 6.1.0.x Charles Capps 12/17/2003 10:33 PM

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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
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
WebGuy 2
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 20240506)