You are here

README.txt in Scheduler 5

Same filename and directory in other branches
  1. 6 README.txt
  2. 7 README.txt
README
--------------------------------------------------------------------------
This module allows nodes to be published and unpublished on specified dates.
If JSCalendar is enabled (part of the JSTools module 
<http://drupal.org/node/57285>), a popup Javascript
calendar is used to select the date and time for (un)publishing of nodes, 
otherwise it defaults to text input.


This module has been completely rewritten for Drupal 4.7 by:

Ted Serbinski <hello [at] tedserbinski.com>
  aka "m3avrck" on http://drupal.org


This module was originally written for Drupal 4.5.0 by:

Moshe Weitzman <weitzman [at] tejasa.com>
Gabor Hojtsy <goba [at] php.net>
Tom Dobes <tomdobes [at] purdue.edu>




INSTALLATION
--------------------------------------------------------------------------
1. Copy the scheduler.module to your modules directory
2. Enable module, database schemas should be setup automatically. If they
   aren't, use the following SQL:
   
   MySQL:
     CREATE TABLE scheduler (
       nid int(10) unsigned NOT NULL,
       publish_on int(11) NOT NULL default '0',
       unpublish_on int(11) NOT NULL default '0',
       timezone int(6) NOT NULL default '0',
       PRIMARY KEY (nid)
     ) /*!40100 DEFAULT CHARACTER SET utf8 */;
  
   PostgresSQL:           
     CREATE TABLE scheduler (
       nid integer NOT NULL default '0',
       publish_on integer NOT NULL default '0',
       unpublish_on integer NOT NULL default '0',
       timezone integer NOT NULL default '0',
       PRIMARY KEY (nid)
     );
     
3. Grant users the permission "schedule (un)publishing of nodes" so they can
   set when the nodes they create are to be (un)published.
   
4. Visit admin > settings > content-types and click on any node type and
   check the box "enable scheduled (un)publishing" for this node type
   
5. Repeat for all node types that you want scheduled publishing for

The scheduler will run with Drupal's cron.php, and will (un)publish nodes
timed on or before the time at which cron runs.  If you'd like finer
granularity to scheduler, but don't want to run Drupal's cron more often (due
to its taking too many cycles to run every minute, for example), you can set
up another cron job for the scheduler to run independently.  Scheduler's cron
is at /scheduler/cron; a sample crontab entry to run scheduler every minute
would look like:

* * * * * /usr/bin/wget -O - -q "http://example.com/scheduler/cron"

File

README.txt
View source
  1. README
  2. --------------------------------------------------------------------------
  3. This module allows nodes to be published and unpublished on specified dates.
  4. If JSCalendar is enabled (part of the JSTools module
  5. ), a popup Javascript
  6. calendar is used to select the date and time for (un)publishing of nodes,
  7. otherwise it defaults to text input.
  8. This module has been completely rewritten for Drupal 4.7 by:
  9. Ted Serbinski
  10. aka "m3avrck" on http://drupal.org
  11. This module was originally written for Drupal 4.5.0 by:
  12. Moshe Weitzman
  13. Gabor Hojtsy
  14. Tom Dobes
  15. INSTALLATION
  16. --------------------------------------------------------------------------
  17. 1. Copy the scheduler.module to your modules directory
  18. 2. Enable module, database schemas should be setup automatically. If they
  19. aren't, use the following SQL:
  20. MySQL:
  21. CREATE TABLE scheduler (
  22. nid int(10) unsigned NOT NULL,
  23. publish_on int(11) NOT NULL default '0',
  24. unpublish_on int(11) NOT NULL default '0',
  25. timezone int(6) NOT NULL default '0',
  26. PRIMARY KEY (nid)
  27. ) /*!40100 DEFAULT CHARACTER SET utf8 */;
  28. PostgresSQL:
  29. CREATE TABLE scheduler (
  30. nid integer NOT NULL default '0',
  31. publish_on integer NOT NULL default '0',
  32. unpublish_on integer NOT NULL default '0',
  33. timezone integer NOT NULL default '0',
  34. PRIMARY KEY (nid)
  35. );
  36. 3. Grant users the permission "schedule (un)publishing of nodes" so they can
  37. set when the nodes they create are to be (un)published.
  38. 4. Visit admin > settings > content-types and click on any node type and
  39. check the box "enable scheduled (un)publishing" for this node type
  40. 5. Repeat for all node types that you want scheduled publishing for
  41. The scheduler will run with Drupal's cron.php, and will (un)publish nodes
  42. timed on or before the time at which cron runs. If you'd like finer
  43. granularity to scheduler, but don't want to run Drupal's cron more often (due
  44. to its taking too many cycles to run every minute, for example), you can set
  45. up another cron job for the scheduler to run independently. Scheduler's cron
  46. is at /scheduler/cron; a sample crontab entry to run scheduler every minute
  47. would look like:
  48. * * * * * /usr/bin/wget -O - -q "http://example.com/scheduler/cron"