|
|
Joined: Jun 2001
Posts: 216
Member
|
Member
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
|
|
|
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.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|