Autonews
|
afoster |
Lagt på d. 05-02-2019 22:06
|

Antal indlæg: 50
Tilmeldt: 05/31/2011
|
A while ago, I downloaded an infusion from this site called Autonews which I have been using on most of my 7.02.07 sites. I tried installing it on php-fusion version 8.0.19 and it would not infuse correctly. Does anyone know if it is still available (I could not find it here) and what is needed to make it work on version 8.0.19. Thank you. |
|
|
|
flj |
Lagt på d. 06-02-2019 07:28
|

Antal indlæg: 1721
Tilmeldt: 01/16/2008
|
I do not have any plans to update autonews to v8.
|
|
|
|
afoster |
Lagt på d. 06-02-2019 16:27
|

Antal indlæg: 50
Tilmeldt: 05/31/2011
|
Citer flj skrev:
I do not have any plans to update autonews to v8.
I'm sorry to hear that as it has become an invaluable tool for me. |
|
|
|
flj |
Lagt på d. 06-02-2019 19:53
|

Antal indlæg: 1721
Tilmeldt: 01/16/2008
|
It's probably a limited task for a php capable person to make it work.
|
|
|
|
afoster |
Lagt på d. 07-02-2019 03:13
|

Antal indlæg: 50
Tilmeldt: 05/31/2011
|
Citer flj skrev:
It's probably a limited task for a php capable person to make it work.
Unfortunately, I don't qualify as a php capable person. |
|
|
|
afoster |
Lagt på d. 18-02-2019 16:30
|

Antal indlæg: 50
Tilmeldt: 05/31/2011
|
Is the autonews infusion still avaliable for download? I can't seem to find it on the site. I believe the last version was 1.1 |
|
|
|
helmuth |
Lagt på d. 18-02-2019 20:04
|

Antal indlæg: 1676
Tilmeldt: 05/26/2004
|
The only version I could find was this one: http://php-fusion.dk/forum/attachment...fusion.zip
It's version 1.1
"Når forandringens vinde blæser er der nogle der bygger læhegn, andre bygger vindmøller." - Gammel kinesisk visdom
.........................................................
Helmuth Mikkelsen, sprognørdisk folkepensionist
|
|
|
|
afoster |
Lagt på d. 18-02-2019 21:52
|

Antal indlæg: 50
Tilmeldt: 05/31/2011
|
That is the one....thank you very much. I will see if I can find someone to help me adapt it to version 8.00.xx. |
|
|
|
afoster |
Lagt på d. 20-02-2019 04:11
|

Antal indlæg: 50
Tilmeldt: 05/31/2011
|
Once I uploaded the files in the latest download (v 1.1), I was able to infuse it and everything seems to be working except that no emails are sent. I checked the readme.txt file and tweaked the admin as suggested but it will not send the emails. when testing the email, I can see how it will look but that is it. Any suggestions? |
|
|
|
afoster |
Lagt på d. 20-02-2019 19:35
|

Antal indlæg: 50
Tilmeldt: 05/31/2011
|
Still can't get any emails sent although I seem to be making some progress. I am getting the following error message:
Error
autonews/autonews_include.php
mysql_result() expects parameter 1 to be resource, object given Line: 393
Line 393 shows the following.
$rtn = mysql_result($result, 0);
Any suggestions? |
|
|
|
afoster |
Lagt på d. 03-03-2019 22:52
|

Antal indlæg: 50
Tilmeldt: 05/31/2011
|
Just a quick note to let everyone know that I was able to get autonews infusion to work on php-fusion version 8.00.21 without having to use a cronjob. I am running on a shared webhost using php version 5.6.3 in case you are wondering. I wonder if the infusion will work when I have to upgrade my php version to 7.x? |
|
|
|
helmuth |
Lagt på d. 05-03-2019 06:36
|

Antal indlæg: 1676
Tilmeldt: 05/26/2004
|
Could you share the working version here? |
|
|
|
afoster |
Lagt på d. 05-03-2019 18:55
|

Antal indlæg: 50
Tilmeldt: 05/31/2011
|
As requested, here are the files that I use on my php-fusion 8.00.21 site which uses php version 5.6.3. I have no idea if this infusion will work with php version 7.x and I suspect it will not. So if anyone is using php-fusion with php version 7.x and can get this to work, please be sure to let me know.
afoster tilknyttede følgende billede:fil:
|
|
|
|
helmuth |
Lagt på d. 06-03-2019 09:11
|

Antal indlæg: 1676
Tilmeldt: 05/26/2004
|
Thanx - maby someone will take up the challenge to make it work under v9 ? |
|
|
|
afoster |
Lagt på d. 24-06-2019 17:04
|

Antal indlæg: 50
Tilmeldt: 05/31/2011
|
The infusion is working well on version 8.00.21 except that after adding the following code to the autonews_data.php file, the email notification is being sent out every hour. I did set the timing for one hour in order to test it, but I was not aware that it would keep sending it every hour. What did I do wrong?
// Birthdays
14 => array(
'id' => 14,
'type' => 'Birthdays',
'text' => '%2$s turns %3$s on %4$s. Congratulations from %6$s!',
'type1' => 'birthday',
'type2' => 'birthdays',
'parse1'=> '{
$d = explode(\'-\', $data[\'item_text\']);
$bd = mktime(0, 0, 0, $d[0], $d[1], date(\'Y\'));
if ($bd < time()) $bd = mktime(0, 0, 0, $d[0], $d[1], date(\'Y\')+1);
return strftime(\'%e %b\', $bd);
}',
'parse2'=> 'return $settings[\'sitename\'];',
'query' => "SELECT
NOW() AS timestamp,
user_id,
user_name,
0 AS item_id,
CASE WHEN
user_birthdate + INTERVAL(YEAR(CURDATE()) - YEAR(user_birthdate)) YEAR < CURDATE()
THEN
YEAR(CURDATE()) - YEAR(user_birthdate) + 1
ELSE
YEAR(CURDATE()) - YEAR(user_birthdate)
END AS item_no,
DATE_FORMAT(user_birthdate, '%c-%d') AS item_text,
0 AS item2_id,
CASE WHEN
user_birthdate + INTERVAL(YEAR(CURDATE()) - YEAR(user_birthdate)) YEAR < CURDATE()
THEN
DATEDIFF(user_birthdate + INTERVAL(YEAR(CURDATE()) - YEAR(user_birthdate) + 1) YEAR, CURDATE())
ELSE
DATEDIFF(user_birthdate + INTERVAL(YEAR(CURDATE()) - YEAR(user_birthdate)) YEAR, CURDATE())
END AS item2_no,
'' AS item2_text
FROM ".DB_USERS."
WHERE user_birthdate > 0
HAVING item2_no <= 7
ORDER BY item_no, user_name;"
) |
|
|
|
flj |
Lagt på d. 10-07-2019 08:26
|

Antal indlæg: 1721
Tilmeldt: 01/16/2008
|
And you cannot change it back to the value it was before your set it to 1 hour?
|
|
|
|
afoster |
Lagt på d. 10-07-2019 16:36
|

Antal indlæg: 50
Tilmeldt: 05/31/2011
|
Yes, I can change it back to 4 hours or 8 hours etc. I thought however, that no matter what value I set, it would only go out one time. If what is happening is normal, then I will make the necessary changes. |
|
|
|
flj |
Lagt på d. 11-07-2019 09:09
|

Antal indlæg: 1721
Tilmeldt: 01/16/2008
|
No, items identified to be sent, will go again and again as long as they fulfill the other criteria set.
In the specific code, the line "item2_no <= 7" select users with less than or equal to 7 days to their birthday. To avoid double sendings that should be used with a weekly sending frequency, or they should both be adjusted.
|
|
|
|
afoster |
Lagt på d. 11-07-2019 16:46
|

Antal indlæg: 50
Tilmeldt: 05/31/2011
|
Thanks flj, I think I now understand how it works. |
|
|
|
afoster |
Lagt på d. 25-10-2020 22:50
|

Antal indlæg: 50
Tilmeldt: 05/31/2011
|
Is it possible to use autonews to send out emails on a blog that is run outside of php-fusion, but is part of the infusions within php-fusion. To see the blog, please go to https://www.fredswebspot.com/freds-site/infusions/grims_blog/ . I can set up users within the blog or use the php-fusion users table. thanks in advance for your help. |
|
|
|
flj |
Lagt på d. 29-10-2020 20:04
|

Antal indlæg: 1721
Tilmeldt: 01/16/2008
|
Yes, but it requires some amendments. There is an adding_more_news.txt file, which explains how this is done. It requires php and mysql coding skills.
|
|
|