- Posts: 20
- Thank you received: 0
The ability to set reoccurring Campaigns
- Corey DeLasaux
- Topic Author
- Offline
- Junior Member
-
Less
More
16 years 1 month ago #751
by Corey DeLasaux
The ability to set reoccurring Campaigns was created by Corey DeLasaux
Awesome would be the ability to make campaigns reoccurring like each month for um well Site support for example. So you set one campaign and it automatically creates a new one just prior to the existing one expiring.
Please Log in or Create an account to join the conversation.
- Corey DeLasaux
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 20
- Thank you received: 0
15 years 11 months ago #1193
by Corey DeLasaux
Replied by Corey DeLasaux on topic Re:The ability to set reoccurring Campaigns
I was thinking about this and came across a post seeing that your considering applying something.
One way to get around the need for cron, is maybe have the creation of a file for each day and every time one of the modules is accessed a function can check to see if the creation date is the same day. If not and is the previous day, remove the old file, check for jobs (if new campaigns need to be created), then create a new file to check against.
For example you could use the tmp folder in the web root and create a empty file name jdonation.cron in that tmp folder and use the creation date to decide when to run other functions.
Just a thought
One way to get around the need for cron, is maybe have the creation of a file for each day and every time one of the modules is accessed a function can check to see if the creation date is the same day. If not and is the previous day, remove the old file, check for jobs (if new campaigns need to be created), then create a new file to check against.
For example you could use the tmp folder in the web root and create a empty file name jdonation.cron in that tmp folder and use the creation date to decide when to run other functions.
Just a thought

Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Dũng Nguyễn Việt
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.