Navigation
Supportsider
Senest Online
afoster02:48:56
Henrik Bendtsen 1 Dag
HenningS 4 Dage
ejvindh 5 Dage
flj 1 Uge
tyson 1 Uge
helmuth 1 Uge
olelau 1 Uge
Niller 2 Uger
viklake 2 Uger
Besøgende
Gæster online: 6

Brugere online: 0

Antal brugere: 168
Nyeste bruger: Michael Mogensen
Se indlæg
PHP-Fusion - Danmark » PHP-Fusion version 7 » MODs & Infusioner v7
 Udskriv debat
Autonews
afoster
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
I do not have any plans to update autonews to v8.
 
afoster

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
It's probably a limited task for a php capable person to make it work.
 
afoster

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
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
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 efterlønner
 
http://helmuth.dk/
afoster
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
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
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
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
Could you share the working version here?
 
http://helmuth.dk/
afoster
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:
autonews80021.zip [27,55kB / 95 Downloads]
 
helmuth
Thanx - maby someone will take up the challenge to make it work under v9 ?
 
http://helmuth.dk/
afoster
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;"
  )
 
Spring til debat: