November 21 2024 18:13:33
Navigation
· Home
· Articles
· Downloads
· FAQ
· Discussion Forum
· News Categories
· Contact Me
· Search
Demos
· Glossary
Users Online
· Guests Online: 3

· Members Online: 0

· Total Members: 1,892
· Newest Member: skalsted
Last Seen Users
· muscapaul13 weeks
· Unforgiven42 weeks
· Wheeler44 weeks
· batbaru150 weeks
· MM131 weeks
· Zippo153 weeks
· hyperkolyok155 weeks
· Wivern208 weeks
· Sinders327 weeks
· Froberg371 weeks
Support sites
Fusion Sites
PHP-Fusion
View Thread
 Print Thread
Newsletter Infusion v2.xx
muscapaul
New version: v2.00

A system that will alow you to write newsletters, store them and send them. Newsletters can be sent in plain text or HTML formats.
Members can add themselves to the subscribers list by clicking a link in the Newsletter Subscription Panel and can remove themselves in a similar fashion.

Remark:
Upgrade of the last version of Newsletter Infusion as available for PHP-Fusion v6 from the main PHP-Fusion site.

Changes:
- Code completely updated for compatibility with PHP-Fusion v7.
- Added code to clean the list of subscribers from deleted members before a newsletter is sent.
- Some improvements to Newsletter Subscription Management

Upgrading from PHP-Fusion v6 to PHP-Fusion v7:
Please note, if you want to upgrade your Newsletter Infusion during a PHP-Fusion version upgrade from v6 to v7, there is no need to defuse the infusion. There will be no error messages as long as you upload the infusion files at the same time as the PHP-Fusion files. When you upload the infusion files, you can simply overwrite the existing ones.
PHP-Fusion v7 utilises a somewhat different system for administering admin rights for Infusions. In v6 it used to be a single setting that gave rights to all Infusions. Under the new version every infusion will be given its own code for admin rights. As a result it is necessary to run an upgrade script (../infusions/newsletter_panel/v6-7upgrade.php) that will at least add the rights for the primary Superadministrator. The file has checkboxes to indicate whether all superadmins should be given access rights to the Newsletter Infusion and/or whether all admins with Infusion Administration rights should be given those rights.
This script only needs to be run if a site is upgraded from PHP-Fusion v6 to v7. Even though a check has been built in to prevent the script from being run after the upgrade has already been performed, it is advised to delete the script from your server after upgrading.

DOWNLOAD (last version: 01.08.2008)
* Some errors corrected in infusion.php.
Edited by muscapaul on 02-08-2008 00:30
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

sites: www.diptera.info (site owner); www.phpfusion-ned... (superadministrator)
 
W3C_Valid
$inf_folder = "newsletter_panel";

is missing in infusion.php

changed $inf_newtable_[1] to $inf_newtable[1]
and $inf_newtable_[2] to $inf_newtable[2]


nice infusion thanks
Edited by W3C_Valid on 31-07-2008 21:35
 
www.sitemaster.dk
willy888
I can't infuse it.
I don't know why.
v7 RC2
 
muscapaul
Probably because of the reasons SiteMaster indicated (one error due to oversight one, the other one due to an unfortunate change in the infusion code). Download is updated!
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

sites: www.diptera.info (site owner); www.phpfusion-ned... (superadministrator)
 
scofield
Hi

can you please do something with this function.
Becores i have +800 on my newsletter, and evey time i send out a newsletter. the off. site email, get 9 email with the same thing.

if it just send 1 mail to the off site mail adress, it will be ok.

hope oyu understand what i mean.
Download source  Code
if ($rows == 1 || $i == 99) {
               if (!sendemail($settings['siteusername'],$settings['siteemail'],$settings['siteusername'],$settings['siteemail'],$subject,$content,$_POST['format'],"", $bcc_list)) {
                  $error = $locale['NL418'];
               }
            $bcc_list = "";
            }
         if ($i != 99) { $i++; } else { $i = 1; }
         $rows--;
         }
      }


 
muscapaul
I'll check it out.
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

sites: www.diptera.info (site owner); www.phpfusion-ned... (superadministrator)
 
muscapaul
I get it. As long as the official site email is the only address that gets the nine mails, it should be okay. The emails are send by bcc, but there needs to be an addressee in the 'To' field. In this case it is the site email, preventing other members of the site to inadvertedly see the address of another member, who may have opted to have an invisible email address.
The counter is introduced to prevent the sending of messages being blocked by the mail server because too many addresses are listed in the bcc field. That could be a sign of spamming. It might even be possible that some providers have a lower limit.

What you could try, but I have no clue whether it will work, is to replace all instances of the 99 in the counter with, say, 199, and see if that works. It will at leats save half of the messages to your site email.
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

sites: www.diptera.info (site owner); www.phpfusion-ned... (superadministrator)
 
afoster
I just downloaded what I believe is the updated infusion, but I still can't infuse it (v7RC2). It does not show up on the infused list although it shows up as a panel when I try to Add a Panel. When adding a panel, I get this error message:

Table 'domain_website.fusion_newsletter_subs' doesn't exist

To receive email updates from This Website click the subscribe button.
 
muscapaul
First, preview this code in a Custom Page:
<?php
$result = dbquery("DELETE FROM ".DB_INFUSIONS." WHERE inf_title = 'Newsletters' LIMIT 1");
$result = dbquery("DELETE FROM ".DB_ADMIN." WHERE admin_title = 'Newsletters' LIMIT 1");
?>

Then donload this package: http://www.muscap...8.2008.zip (or use the download link in the first post) and infuse that one. You should be alright after that.

I thought I had updated the package correctly, but apaprently I shoudl not have updated the files directly in the zip file but rather created a new one. The present version infused alright on one of my own websites. Sorry for the confusion...
Edited by muscapaul on 02-08-2008 00:29
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

sites: www.diptera.info (site owner); www.phpfusion-ned... (superadministrator)
 
afoster
I followed the instructions in your last post, and I still get the same error message:

Table 'domain_website.fusion_newsletter_subs' doesn't exist

To receive email updates from the Family Website click the subscribe button.

When I previewed the code in a custome page, the panel that was displayed was blank if that means anything.
 
W3C_Valid
afoster wrote:
I followed the instructions in your last post, and I still get the same error message:

Table 'domain_website.fusion_newsletter_subs' doesn't exist

To receive email updates from the Family Website click the subscribe button.

When I previewed the code in a custome page, the panel that was displayed was blank if that means anything.


defuse it and edit your infusion.php
changed $inf_newtable_[1] to $inf_newtable[1]
and $inf_newtable_[2] to $inf_newtable[2]

4 places in total you need to update

he forgot to change it in the infusion.php Wink
 
www.sitemaster.dk
afoster
SiteMaster,

Got it infused, and everything seems to be working well after making your updates as noted in the post. however, once I am logged out, the panel just shows the Title "Newsletters" with everything else blank, is that the way it should be?

BTW, you said that there are 4 places to edit, the two you mention and the other two are the following I hope:

$inf_droptable[1] = "newsletters";
$inf_droptable[2] = "newsletter_subs";
Edited by afoster on 02-08-2008 05:08
 
dallas
Nice infusion. Is there any way we can make it for guests also.
 
W3C_Valid
afoster wrote:
SiteMaster,

Got it infused, and everything seems to be working well after making your updates as noted in the post. however, once I am logged out, the panel just shows the Title "Newsletters" with everything else blank, is that the way it should be?

BTW, you said that there are 4 places to edit, the two you mention and the other two are the following I hope:

$inf_droptable[1] = "newsletters";
$inf_droptable[2] = "newsletter_subs";


set the panel to member, as i think it is only made for members of your site, and therefore guest does not need to see it

and yes is was the other 2 to edit Wink
 
www.sitemaster.dk
muscapaul
New version: v2.01

Changes:
- Finally gotten rid of those errors in infusion.php.
I took too little time for the previous correction. That is what you get when you hurry too much because you want to please everyone. Wink

DOWNLOAD (last version: 02.08.2008)
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

sites: www.diptera.info (site owner); www.phpfusion-ned... (superadministrator)
 
muscapaul
dallas wrote:
Nice infusion. Is there any way we can make it for guests also.

That would add a whole new part to the infusion. Presently, the users table is used for the email addresses. Guests would have to leave their email address which needs to be stored in a separate table. At the moment outside the scope of this update, which is intended to make it available for PHP-Fusion v7. Maybe in the future...
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

sites: www.diptera.info (site owner); www.phpfusion-ned... (superadministrator)
 
W3C_Valid
can i get you to check the zipfile.
i get broken zipfile when i try to unpack it
 
www.sitemaster.dk
rob
the zip file is not working Pleas check the file.

he is broken wen you open the file.

greetings rob
 
dallas
muscapaul wrote:
dallas wrote:
Nice infusion. Is there any way we can make it for guests also.

That would add a whole new part to the infusion. Presently, the users table is used for the email addresses. Guests would have to leave their email address which needs to be stored in a separate table. At the moment outside the scope of this update, which is intended to make it available for PHP-Fusion v7. Maybe in the future...


Ok thanks for the reply. Appreciate it. I have a guest/member one for version 6 that I am trying to convert to 7. I will let you know how it goes. Smile
 
muscapaul
Does it never end? The server was very sluggish this morning but eventually it told me the file was uploaded. Never mind. Uploaded it again and it went in a jiffy. Should be okay now...
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

sites: www.diptera.info (site owner); www.phpfusion-ned... (superadministrator)
 
Jump to Forum:
Donate
Please help to make
muscapaul.com
possible and enable
further improvements!
Login
Username

Password



Forgotten your password?
Request a new one here.
Temporary email addresses
Please note: While activating new accounts I usually check them out. If I notice an account registered with a temporary email address it will be deleted.
Newsletter
Newsletters are for registered members only.
Shoutbox
You must login to post a message.

01/12/2021 16:45
Szép napot

13/06/2021 07:01
I found this site again!

21/04/2020 18:32
Barely...

11/11/2013 00:48
Cool! This site is still around!

18/10/2013 20:28
hey! Smile

25/06/2011 01:40
My name is Andreo, I'm new member Smile

25/06/2011 01:39
Hello Muscapaul, is there anyone here ?

13/09/2010 01:02
nice mod thanks Smile

10/07/2010 15:01
Paul, hows thing?

07/07/2010 03:47
Who becomes the world champion on football? We wil

Render time: 0.13 seconds 9,487,941 unique visits