Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi
I don't know if it is a bug or a support request, but as other people have no problem working with this module, I guess it's a support req.:-)
My problem is, that the scheduling isn't working. I can enter activation and expiration dates according to my own time zone or the default one, the ad (image ad) remains in the approved status and doesn't show up.
I don't know exactly what additional info would be helpful for you, just ask for more info.
Thanks
Comments
Comment #1
Jeremy CreditAttribution: Jeremy commentedDid you configure Drupal's cron? This is required by the ad module's scheduler.
Comment #2
funkyfrieder CreditAttribution: funkyfrieder commentedOk, I didn't know that:-) But my problem is not solved completely. I scheduled an image ad and set the activation and expiration date. Then I ran crone manually. Now the add was displayed on time but didn't expire. It sais "This advertisement will expire on Monday, September 3, 2007 - 16:13, in 0 sec." but is still visible. What am I still doing wrong?
Comment #3
funkyfrieder CreditAttribution: funkyfrieder commentedSorry, I have to correct myself, now even with runing cron, before in the middle and after the activation or expiration it doesn't work...
Comment #4
Jeremy CreditAttribution: Jeremy commentedI use the scheduling functionality of the ad module quite heavily, so I know it works.
Do you see any errors when you run cron manually? If no errors appear on the screen, try looking in the Drupal watchdog, are there any errors there? If not, check your web server error log (ie with apache that would be the file called error_log, usually in the same directory as the access_log).
Comment #5
funkyfrieder CreditAttribution: funkyfrieder commentedOk, it works now more than less as I want, maybe I understood smth wrong mith the module? The Image is displayed after the activation date and set from approved to active. Thats perfect. After the expiration date, what I expected (and that's why I was connfused, is that the add will not only be set to expired, but also be unpublished so that I can't see it anymore. Is that as it is designed or do I still have the wrong setup.
Comment #6
Jeremy CreditAttribution: Jeremy commentedThe ad module's scheduler only affects the ad status, not the node status. Thus, it does not unpublish the node.
Comment #7
funkyfrieder CreditAttribution: funkyfrieder commentedWould it be difficult the change the module so that the image ad is automatically displayed on activation and removed when the exiration date is due?
Comment #8
Jeremy CreditAttribution: Jeremy commentedThe actually coding involved is minimal, but I'm not convinced it's the right thing to do. It was not the intention of the ad scheduler to affect the node status, only the ad status.
Comment #9
funkyfrieder CreditAttribution: funkyfrieder commentedOk, I understand what you mean, but one more question. What is the point of having the ad expire or automatically activated when there are no visible changes - Is it the stats? Please don't understand me wrong, I really interested in how one should work with this module - what was the idea on how one should use it? Activate - Get notification - Expire - Get notification - React ?
Comment #10
Jeremy CreditAttribution: Jeremy commentedPlease review the "Ad status" section of the README.txt distributed with the ad module. In particular, note that the ad module only displays "Active" ads. Yes, it is possible to view the ad node of an expired node, but the ad module won't serve expired ads.
Comment #11
funkyfrieder CreditAttribution: funkyfrieder commentedBut why can I still see the expired ones then?
Comment #12
Jeremy CreditAttribution: Jeremy commentedHow are you displaying your ads? Are you using the provided ad blocks, the ad() function, or are you doing something else?
The ad blocks will not display expired ads. The ad() function will not display expired ads.
Note however that ads are nodes. And as such, the ad nodes themselves will continue to be visible whether regardless of the ad status. These nodes are used to view statistics and click history for the ads which were displayed with ie blocks or the ad() function. If you unpublish an ad node, then the owner of the ad will no longer be able to review the view and click statistics for their ad.
Comment #13
Jeremy CreditAttribution: Jeremy commentedNo further updates, marking as fixed.
Comment #14
(not verified) CreditAttribution: commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #15
jasonabc CreditAttribution: jasonabc commentedHi - I am noticing that the expiration date for an Ad only kicks in and expires an active Ad once Cron has run. Cron on my site is set to run every six hours. Does that mean if I set an ad to expire at 1am it won't actually come off the site until five hours later when cron runs???
Comment #16
vaccinemedia CreditAttribution: vaccinemedia commentedOne of my clients is having major problems with the scheduling at the moment. They basically have a bank of pages which have been set up to advertise giveaways - one for each day of the month and have a corresponding ad set up to link to each of the pages in order on the home page. They are entering the ads correctly and are setting the ads to approved, with activation at 11pm each night with the previous ad being deactivated at the same time. The deactivation appears to be working ok but the ads are not activating at 11pm each evening which means that they are having to do it manually. Poormans cron is set up and cron is running once every hour.
Any ideas? I will give any further information necessary.