Classified Ads Infusion v4.03
For PHP-Fusion v7.02.xx


CRONJOB/CRONTAB FILES EXPLANATION:

Executing multiple 'db-queries' and multiple 'db-updates' in one script/function turns out to be inefficient if the script is not called enough in one day. But also; if the following is NOT done and the infusion is installed as is, the 'email to users w/ads about to expire' and the 'auto-deletion of expired ads and images' functions will still work fine with the following limitations:
  • When the 'Classified Ads' link in your navigation area is clicked::::
  • The 'infusions/classified_ads/classified_ads.php' script is executed and::::
  • The above functions: 'email sending' and 'expired ad deletions' are executed ONCE.
  • If there are only a few ads this is not a problem as the chances of the 'Link Being Clicked' enough times in one day to send enough emails and delete enough ads and images to cover the ones needing handling, are pretty good.
  • However if there are a GREAT MANY ads on your system the 'Link May Not Get Clicked' enough times in one day to cover everything that needs handling.
The solution I have come up with is by-far the preferred method of handling this but is dependant on your hosting provider allowing you to setup and schedule cron jobs. As a for instance, my host provides a link in 'cpanel' called 'Schedule Jobs' and it's simply a matter of giving the 'script location' and scheduling a run time for each script.

Example:

Job#1: /infusions/classified_ads/cron_pending.php  (recommend schedule every hour)
Job#2: /infusions/classified_ads/cron_expired.php  (recommend schedule every hour)

For those that have cron capability with no host control panel GUI and have to set it up manually just Google it. There are many many resources on the web that will teach you how to setup your .htaccess file manually in order to schedule cron jobs.

*NOTE* - There is no visible output from the scripts so nothing will be seen in the cron logs
              but I have tested all scripts on a live website and they work flawlessly !


For Users W/Hosts That ALLOW Cron-Job Scheduling Capability


REPLACE SCRIPT IN: "root/infusions/classified_ads/classified_ads.php"
  • WITH: 'classified_ads.php' FROM THE FOLDER: "ClassifiedAds_v43/cron_option_files/"...


  • Then setup your cron jobs in your host control panel (or manually) per example above.


  • Thats it. You're done!



For Users W/Hosts That DO NOT ALLOW Cron-Job Scheduling Capability


DO ABSOLUTELY NOTHING !
  • Ignore This Readme And Everything In This Folder !


  • Just upload everything under 'php-files' and infuse as normal.

E-Mail:    webmaster@whisperwillow.com
Website: www.whisperwillow.com/news
Support: www.whisperwillow.com/forums
PHP-Fusion v7.02.xx
Classified Ads v4.03
Whisperwillow.Com - Mods, Infusions, Themes Support