CRON scripts and plug-ins

This documentation is about CRON features. You will learn how to set up CRON job and information about some plugins, executed by the CRON script.

Crowdfunding CRON

You should execute this script from command line on your server. You have to do it as CRON job. To be possible, your hosting provider has to provide this service.

Check the documentation of your hosting provider for more information about how to create CRON jobs.

First, you have to install it via Joomla! extensions manager. The system will put the script in the "/cli" folder.

You should execute the script in the following ways. When you do it, the system will load "crowdfundingcron" plugins and will evoke one of their events.

php -q /...path_to_website.../cli/crowdfunding_cron.php --notify --context=updates

php -q /...path_to_website.../cli/crowdfunding_cron.php --update

php -q /...path_to_website.../cli/crowdfunding_cron.php --execute

There are three options that set the type of actions that will perform the script:

--notify - this should be used when you would like to handle an event "onCronNotify".

--update - this should be used when you would like to handle an event "onCronUpdate".

--execute - this should be used when you would like to handle an event "onCronExecute".

There is an option "--context=" that you should use to check whether you are in the desired context for the plugin.

For example:

// This line will evoke the method onCronNotify with context "com_crowdfunding.cron.notify.updates".

php -q /...path_to_website.../cli/crowdfunding_cron.php --notify --context=updates

Crowdfunding CRON - Updates Notifier

This plugin sends emails to users when project owners write new updates. The users will receive messages about the updates only if they follow campaigns.

Options

Period in days - the period in which the updates should be added to be sent by the system.

Content length - the length of content from every update that the system will send to users. Leave it blank to get full length of the content.

Domain - Link to your website. Example: http://itprism.com/

EMail - predefined email template

E-Mail Mode - the type of the e-mail that will be sent

Commands

The command that you have to use to set up CRON job is:

php -q /...path_to_website.../cli/crowdfunding_cron.php --notify --context=updates

Placeholders

The placeholders that you can use in email templates for this extension are:

{CONTENT} - Description of an item or content of an article.

{RECIPIENT_NAME} - Name of a person who will receive an email.

Crowdfunding CRON - Intentions Notifier

This plugin sends emails to users if there are intention records. The users will receive a message which led him to complete payment.

NOTE: Intentions are records in table "#__crowdf_intentions". The system creates intentions when someone has got to the step for payment, but he has not made donations.

Options

Period in days - if there are payments that are not completed after this period, the system will send a message to the user.

Domain - Link to your website. Example: http://itprism.com/

EMail - predefined email template

E-Mail Mode - the type of the e-mail that will be sent

Commands

The command that you have to use to set up CRON job is:

php -q /...path_to_website.../cli/crowdfunding_cron.php --notify --context=intentions

Placeholders

The placeholders that you can use in email templates for this extension are:

{RECIPIENT_NAME} - Name of a person who will receive an email.

{ITEM_TITLE} - Name of an item (article, campaign, product, project, etc.)

{ITEM_URL} - URL to an item.

{ITEM_DESCRIPTION} - Description of the project.

{ITEM_IMAGE} - Image of the project.

{REWARD_DESCRIPTION} - Reward description.

{REWARD_TITLE} - Reward title


Free Subscription

You can get the latest publication via RSS, Twitter or Facebook. And I can also deliver last news to you for free via Email:

RSS subscription Find us on Facebook Google+ page Follow me