obey-robots.txt
  

pHpFusion-Nederlands


 Nederlands-, Vlaamstalige pHp-Fusion support site voor België en Nederland.


 PHP-Fusion is een open-source "Content Magagement System" (CMS) geschreven in PHP en MySQL.
 Het beheren van uw site gaat met een eenvoudig en begrijpbaar administratie systeem.
 PHP-Fusion bevat o.a. een forum, shoutbox, enquêtes, profielpagina's, nieuws, fotogalerij, weblinks enz.
 Uiteraard is de standaardinstallatie nog uit te breiden met infusies (modules) en andere thema's (skins).

Inloggen
Geef gebruikersnaam

Wachtwoord



Nog geen lid?

» Registreer «
Als geregistreerd lid kunt u reageren en alle extra functies gebruiken.

Wachtwoord vergeten?
Verzoek nieuw wachtwoord.
Gebruikers Online
» Gasten online: 12

» Leden online: 0
» Nieuwste lid: BlackHawk
Recent Online
Onderwerp bekijken
Vragen/Problemen in verband met infusions
 Onderwerp afdrukken
Autonews Infusion
afoster

Quote

douwe_yntema schreef:

I Got your infusion working and sending mail.

In file autonews_include.php line 393 must be changed to:


$rtn = dbrows($result);


Furthermore to send mail, it is file autonews_cronjob.php that says:

// To activate this file, set $locale['AN042'] to TRUE and insert a password below
// Use 'http://wwww.mysite.com/infusion/autonews/autonews_cronjob.php?pw=mypassword' from cronjob

But, $locale['AN042'] does not exist. You need to change in file autonews_param.php, line 30 to:

$autonews_params['cronjob'] = TRUE;    // TRUE if cronjob is used - FALSE otherwise


and enter a password in file autonews_cronjob.php in line 24.

Then call the cronjob as state as:
http://wwww.mysite.com/infusion/autonews/autonews_cronjob.php?pw=mypassword

where the password is from autonews_cronjob.php line 24.

of course you need to set up PHP-Fusion correctly for sending mail.

There are some warnings about shoutbox, I infused the shoutbox, but not set it up. Don't know if this need to be digged out deeper.


I forgot to ask if you actually sent the email from the screenshot you posted. I got that far in the infusion as well, but the email was never sent.
 
douwe_yntema
The screen shot is from my mail program.

I was confused also when clicking the test link, you get an preview of the mail in your browser, but the mail is not sent.
To send the mail, you need to execute the autonews() function, which is actually done from the cronjob.

Or you must make a call to the autonews() function from somewhere else. e.g. from the footer of your site.
Or make a panel whitout content and call it cronjob.
Every time a visitor comes on your site, the code is executed.
 
afoster

Quote

douwe_yntema schreef:

The screen shot is from my mail program.

I was confused also when clicking the test link, you get an preview of the mail in your browser, but the mail is not sent.
To send the mail, you need to execute the autonews() function, which is actually done from the cronjob.

Or you must make a call to the autonews() function from somewhere else. e.g. from the footer of your site.
Or make a panel whitout content and call it cronjob.
Every time a visitor comes on your site, the code is executed.


Do you mean the autonews() function in autonews_cronjob.php or somewhere else? As you can tell, I am not very well versed in php.

BTW, how can I respond to your posts without having to quote the message? I can't seem to find the link that will let me do that.
 
douwe_yntema
The function autonews() is located in autonews_include.php:


// Does what has to be done at all times - returns TRUE if something has happened
function autonews()
{
  $autonews_settings = autonews_readdb();
  if ($rtn = autonews_check($autonews_settings))
  {
    autonews_send($autonews_settings);
  }
  return $rtn;
}


This function is calling autonews_check and if there is something to send, autonews_send is called (see below autonews function in te file)

Button explained in attachment :)
douwe_yntema voegde bij, afbeelding: (Klik het plaatje voor vergroting!)
answer_button.png
 
afoster
Thanks, I will see if I can get the cronjob to work. I would still like the infusion to work (send emails) without using a cron job...I know it is possible because it is working on two different php-fusion 7.02.07 sites.
 
douwe_yntema
Oh no I forgot:

For the infusion to infuse, in infusion.php search for Type=MyISAM;
and replace with ENGINE=MyISAM; (twice)

I checked again, but the autonews function is also called from the autonews panel, if the cronjob parameter is set to false. It was in the readme. But then then the mails are only sent if the panel is executed, so if a visitor enters your site.


Sorry not to mention this before.

I just tested and it works also
 
afoster
I was aware of the Type=MyISAM issue as that is the reason why it did not infuse correctly originally.

When you say "I just tested and it works also", do you mean it is working without using cron job? If so, I would love it if you could zip up your whole infusion (changing db connection details) and add it to a post here. Perhaps when comparing the files I could figure out where the problem lies for me.
 
afoster
I defused and re-infused the autonews and it now seems to be working without the cronjob. Don't really know what I did but I am happy that it is working.

Again, it is on a site running php-fusion 8.00.21, with php version 5.6.3

Thanks again for your help on this.
 
douwe_yntema

Quote

afoster schreef:

I was aware of the Type=MyISAM issue as that is the reason why it did not infuse correctly originally.

When you say "I just tested and it works also", do you mean it is working without using cron job? If so, I would love it if you could zip up your whole infusion (changing db connection details) and add it to a post here. Perhaps when comparing the files I could figure out where the problem lies for me.


Yes it is working whitout the cron job if you make the setting in the file autonews_param.php, line 30 to:


$autonews_params['cronjob'] = FALSE;   
 
douwe_yntema

Quote

afoster schreef:

I defused and re-infused the autonews and it now seems to be working without the cronjob. Don't really know what I did but I am happy that it is working.

Again, it is on a site running php-fusion 8.00.21, with php version 5.6.3

Thanks again for your help on this.



Glad it is working. Maybe a setting that was set to default again after infusion
 
Spring naar forum:
Nieuw onderwerp Antwoorden
Gebruik BBcode of HTML om naar; 'Autonews Infusion', te verwijzen!
BBcode:
HTML:
Vergelijkbare onderwerpen
Onderwerp Forum         Laatste bericht
infusion aanpassen via phpmyadmin Infusions : 12 19 feb 2017, 08:28
nieuwe infusion Infusions : 1 18 feb 2017, 23:05
nieuw infusion shoutchat Infusions : 2 01 feb 2015, 15:34
Versie infusion Modificaties : 5 24 sep 2014, 19:59
infusion of mod Infusions : 4 08 dec 2013, 13:57