Closed (fixed)
Project:
Scheduler
Version:
master
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
5 Mar 2006 at 16:06 UTC
Updated:
6 Aug 2006 at 00:02 UTC
Jump to comment: Most recent file
Hi!
I don't know if this is the right way to do what I want - please excuse me if not.
I need the schedule.module to run under version 4.7-beta. But I don't have the knowledge to update the module for myself. Is there anybody or any way to get it work properly?
TopperDEL
| Comment | File | Size | Author |
|---|---|---|---|
| #32 | scheduler.module_01 | 13.6 KB | AjK |
| #30 | scheduler_0.module | 12.73 KB | coupet |
| #25 | scheduler.module_3.patch | 11.01 KB | wulff |
| #16 | scheduler.module_2.patch | 10.52 KB | wulff |
| #8 | scheduler.module_1.patch | 11.66 KB | wulff |
Comments
Comment #1
wulff commentedThe attached patch updates scheduler.module for current cvs head.
Comment #2
wulff commentedI should say that the attached patch updates scheduler.module to use Form API and fixes this bug: http://drupal.org/node/23919
Also, in the patch, the scheduling block is placed at the top of the page. In the final version it should probably be put in the 'publishing' fieldset.
Comment #3
Kieg Khan commentedThanks,
This seems tork Ok, but there are two dates indicated, one to publish and one to unpublish. Seems a bit of a conflict to be able to publish and unpublish on the same dates, but I guess this is so you can set a publish and unpublish date in the one operation? This is useful if you wanted to advertise something for a short period of time.
Will this patch make it into the 4.7.x download area? Should be, function sadly lacking in 4.7
Comment #4
TopperDEL commentedThank you! It works fine for me!
TopperDEL
Comment #5
wulff commentedRe-setting status to CNR to get more opinions on the patch.
Comment #6
hubrt commentedThanks, great work, works fine.
"Also, in the patch, the scheduling block is placed at the top of the page. In the final version it should probably be put in the 'publishing' fieldset."
Both placements do make sense. In a perfect world, this would be configurable ...
Comment #7
fen commentedFYI: hunk 6 failed running the patch against the scheduler I downloaded from http://drupal.org/project/scheduler
This appears to be because the downloaded scheduler.module has this on line 306:
and the patch expects to see
Comment #8
wulff commentedDid you download the CVS version of the module?
I have attached an updated patch which puts the form elements in a more sensible position on the node editing page. It also removes some trailing whitespace.
Comment #9
GregoryHeller commentedWulff,
Would be helpful to have some documentation with the module so proper configuration and functioning is understood. Maybe i missed it.
Here is my big question (that i think i know the answer to): When you decide you want to schedule a piece of content should you not check the "publish" box? and does scheduler require cron to run to update the published state of scheduled articles?
If so, it might be good to add help under the scheduler date selector that says "If enabling scheduler to schedule the publication of this node, do not check 'published' under publishing options."
As far as install and configuration instructions i would create a file that says something like:
Scheduler Module will automatically publish or unpublish nodes according to user defined dates.
To configure scheduler module, first enable it under admin/modules.
By default, Scheduler will be configured to allow scheduled publishing and unpublishing, you may change these settings under admin/settings/scheduler
Scheduler module will change the published state of a node when cron.php is called. You must set up a cron job or use poormanscron.module to call cron.php in order for scheduler to work.
You must grant the appropriate access rights for users to access the scheduler module options. You can set these access rights at admin/access
HTH
feel free to include any of the above in documenation
Comment #10
wulff commentedIf you schedule publishing of a node, its status is automatically set to 'unpublished' when it is submitted.
Scheduler requires cron to work as intended.
I'll reroll my patch to include some user documentation.
Resetting component, category and status since this issue is still primarily about getting schedule to work nder 4.7.
Comment #11
GregoryHeller commentedwhen i enable scheduler, the default worflow does not apply. I understand that when i submit a node, the workflow will be changed to that it is either publish or unpublished, but all the check boxes under publishing options appear checked.
This would seem to imply that i cannot use the default workflow (promote to front page, sticky at top of list, new revision, etc) apply to my nodes when scheduler is enabled?
Comment #12
wulff commentedCan you please describe this in more detail?
The appearance of the checkboxes when submitting content should only be determined by the settings at administer > settings > content types. If changing the settings there doesn't help, please post the steps needed to reproduce the behavior.
There is no problem in using sticky, post to front page, etc. They will take effect when the node is automatically published by the scheduler.
Comment #13
coupet commentedFatal error: Call to undefined function: form_radios() in /usr/local/apache/htdocs/sitename.com/drupal/modules/scheduler/scheduler.module on line 30
this is latest cvs module without any patch applied
Comment #14
wulff commentedThat's correct. The patch to update scheduler to 4.7 hasn't been applied yet.
Comment #15
coupet commentedFile to patch: scheduler.module
patching file scheduler.module
Hunk #2 FAILED at 58.
Hunk #3 FAILED at 77.
Hunk #4 FAILED at 143.
Hunk #5 FAILED at 284.
Hunk #6 FAILED at 333.
5 out of 7 hunks FAILED -- saving rejects to file scheduler.module.rej
Comment #16
wulff commentedPatch updated for scheduler v1.34.
Comment #17
coupet commentedinstalled perfectly; 1.) installed latest cvs version, 2.) applied latest patch, 3.) enabled module
Comment #18
jjeff commented+1
works great.
Comment #19
njivy commentedCould this patch address the lack of tablesort_pager() in Drupal 4.7?
Comment #20
AjK commentedas above...
can confirm...
installed perfectly; 1.) installed latest cvs version, 2.) applied latest patch, 3.) enabled module
(version from CVS/HEAD 1.34)
regards
--AjK
Comment #21
cokeman commentedHmm, how do you apply this patch under windows?
Please HELP, or attach a patched version for little old me ;)
Comment #22
AjK commentedcokeman, I tried to contact you at http://drupal.org/user/33061/contact but your profile is set not to allow contact.
regards
--AjK
Comment #23
cokeman commentedKarpuz, did send you a contact, with my email in, don't know if you got it, but I have opened for my contect page, and tested that it works....
- Cokeman
Comment #24
coupet commentedFatal error: Call to undefined function: tablesort_pager() in /usr/local/apache/htdocs/sitename.com/drupal/modules/scheduler/scheduler.module on line 345
message is displayed after scheduling a existing node.
ref: latest cvs and scheduler.module_2.patch
Comment #25
wulff commentedPatch updated to remove call to
tablesort_pager().Comment #26
coupet commentedworks great.
1.) installed latest cvs version 2.) applied latest patch (scheduler.module_3.patch) 3.) enabled module
Comment #27
urbanfalcon commentedI had independently upgraded this module to 4.7, but one thing I did differently that doesn't seem to be address is in regards to these two lines:
I found it really confusing that the date/time never matched that on my computer (I guess my server is in a different time zone). It made it hard to correctly set publish/unpublish times. Likewise, there's no clarity as to what triggers the publish/unpublish events (we all know it's a cron hook, but less technical admins may not 'get' that without help). This is what I did to fix both...maybe someone would like to incorporate it into the official module? PS> For CSS junkies, I used old school font tags because they take up less memory and are shorter than span tags with color styles.
Comment #28
green monkey commentedDruapl 4.7
Would it be possible for somone to send me a patched version of the CVS Scheduler. I've tried to do it twice manually in my editor, but I only seem to make matters worse :-(
I'k ok wiht small manual patches, but this is not going to well.
Thanks in advance
Comment #29
coupet commentedscheduler.module with scheduler.module_3.patch applied
try this one.
Comment #30
coupet commentedscheduler.module
see attached (forgot to attach earlier, sorry!)
Comment #31
green monkey commentedcoupet,
Thank you so very much.
I have a large task in front of me and this was a major tool I needed to have working.
thanks again
J
Comment #32
AjK commentedHere's the same version as above with the following changes:-
http://drupal.org/node/61495 (don't publish node if in moderation queue)
http://drupal.org/node/61522 (add scheduler API functionality)
best regards
--AjK
Comment #33
green monkey commentedThanks Ajk,
It looks I spoke a bit soon.
Thanks for forcasting I might still have some problems.
Scheduled Publish not working. Will load this and give it a spin. Silly me, I was so happy it was running, I forgot to go back and look at my work. A little surprised when I saw everything published.
Comment #34
green monkey commentedAjK,
hmmm ... that was a no go
that version took me back to the radio error again,
Fatal error: Call to undefined function: form_radios() in /home/.needle/user/mysite.com/modules/scheduler/scheduler.module on line 30
could you have posted the wrong version, by mistake?
Comment #35
green monkey commentedwouldn't I want all the patches 0 - 3 applied ?
could someone post this already patched... please - I know I'm only one cut and paste away from this working. :-)
thanks
Comment #36
green monkey commentedWorking! - big thanks!
- went in and deleted sub dir
- flushed cache
- reloaded
and it worked - who knows why not the first time. Almost forgot to manually unpublish nodes and let Scheduler republish.
thanks again all
Comment #37
hubrt commentedlooks good to me.
Comment #38
AjK commentedComment #39
eliza411 commentedI tried installing (cvs, 07/04/2006 - 16:15, 13.83 KB) and scheduler.module_3.patch. The patch didn't return any errors and the interface for scheduler appears, but scheduler doesn't publish or unpublish. I noticed that the [] Publish setting isn't automatically unchecked, so I tried manually unchecking that, but it didn't have any effect.
I don't need this functionality right away, so I might wait for the 4.7 release unless I'm doing something easily remedied.
Thanks in advance for any help, and thanks for working on this module in the first place!
Comment #40
Boinng commentedI just like to register my interest in getting this working... as above, I've installed a copy with all the patches, and everything [i]appears[/i] to work fine, except that it doesn't actually publish or unpublish anything! Kudos to whoever finishes off that final step..
Comment #41
wulff commentedhave you remembered to set up cron?
try going to yourdomain.com/cron.php to run it manually.
Comment #42
Boinng commentedCron is running, yep. Last time I tried to use it and it didn't show, I loaded cron.php myself to see if that would trigger it, but nothing happened.
Comment #43
eliza411 commentedI had been running cron manually to test before setting it up, but I did set it up, and it's running, but scheduled actions are still not happening.
Comment #44
tones commentedm3avrck and kiles asked me to try to pick this issue up. i've commited a patch to HEAD at r1.36. i expect it's still a little buggy, so expect more bugs and patches in the coming weeks...
Comment #45
m3avrck commentedI've committed a very cleaned up 4.7 version, taking over as the new maintainer with tones per killes request.
New 4.7 branch as well.
Comment #46
(not verified) commented