|
|
#1 |
|
Senior Member
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 235
Rep Power: 11 ![]() ![]() |
How does this script manage sending out the Email X number of days before the ad expires?
how the system know when to send the signal to execute this script?
__________________
Serge HobbyClassified.com V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News, VBulletin Usershare) |
|
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,753
Rep Power: 110 ![]() |
It uses the file includes/cron.php which determines when emails should be sent and when listings should be deleted.
It knows by using the current date and subtracting x number of days to get ones that need to be emailed.
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 235
Rep Power: 11 ![]() ![]() |
As I understand in the script cron.php, it compares the expiration date of the ads less the number of days to expire with today date and sends an e-mail
It executes this script once a day. So the customer receives a single email once for renewal. Is this the way it works? I ask this information because I work with two languages on my site and I wonder how I have to tell him to send an email in a specific language.
__________________
Serge HobbyClassified.com V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News, VBulletin Usershare) |
|
|
|
|
|
#4 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,753
Rep Power: 110 ![]() |
Yes. It runs once a day and if it emails them then it updates the listing table and marks that listing that it has been sent.
I am not sure how you could determine which language it was written in. Maybe use the category.
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 235
Rep Power: 11 ![]() ![]() |
I noticed that the renewal notification is not reset.
The field notified remain to Y. Do you have any advise?
__________________
Serge HobbyClassified.com V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News, VBulletin Usershare) |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 235
Rep Power: 11 ![]() ![]() |
I'm looking at the code and I noticed that the function that puts notified to 'N' is the function updateNotification.
PHP Code:
This is the last order number that I did. This number does not appear in the listings of the ad. The number that appear in the field orderID in listing Table is 237 (the first order number) So the function can't update the listings.
__________________
Serge HobbyClassified.com V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News, VBulletin Usershare) |
|
|
|
|
|
#7 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,753
Rep Power: 110 ![]() |
In your signature it shows as v4.0.8 so I would recommend downloading v4.0.9 and then replacing these template files:
user/userbrowselistings.tpl renew/ - every file in this folder.
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules |
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 235
Rep Power: 11 ![]() ![]() |
I replace the new 4.09 step1.tpl step2.tpl and userbrowselisting.tpl with the old version 4.08 and samething, the notified field can't be reset to 'N'
__________________
Serge HobbyClassified.com V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News, VBulletin Usershare) |
|
|
|
|
|
#9 |
|
Moderator
|
Did you upgrade to 4.0.9 or just copy over those template files?
|
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Jun 2008
Location: Canada, Quebec
Posts: 235
Rep Power: 11 ![]() ![]() |
I just copy the files.
I made too many changes to the files to copy all 4.09.
__________________
Serge HobbyClassified.com V4.08 Developper, Module installed (CIV Scam Filter, Maffo Location System, Maffo News, VBulletin Usershare) |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Renewal Settings | free2take | v4 Questions & Support | 7 | 10-10-2008 10:17 AM |
| Renewal Email | afrederc | v4 Questions & Support | 3 | 10-09-2008 04:38 PM |
| renewal question | garysmith | v3.1 Modules & Modifications | 5 | 03-09-2007 03:17 PM |
| Renewal shouldn't de-activate an ad | flyingpylon | v3.1 Suggestions and Feedback | 1 | 11-05-2006 02:44 PM |
| Renewal Question | Bucketman | v3.0 Questions & Support | 13 | 04-26-2006 11:59 AM |