Drupal is up and running but how do I ...?

PHP error from taxonomy during cron

Duuring every few cron runs, I get the following error 3 times in the log:

Invalid argument supplied for foreach() in /home/example/public_html/modules/taxonomy.module on line 1199.

The foreach line is in this function:

Tracking/Displaying Hits

Which module or setting allows drupal to track and display hits for each blog post? The closest one I could find was "Statistics filter." That the one?

Cheers,

JP

Polls expire immediately

Hello,

I am brand new to Drupal. I have gotten it installed and up and running, but I am having trouble with the polls module. I can create a poll just fine, but when I submit (post) it, it appears to expire immediately. I see the results of the poll (with zero votes, of course) rather than the poll itself. Has anyone ever heard of this problem? Suggestions on how to fix it? Thanks!

Jeff

Restrict roles to login only from hostname or ip on whitelist

I'm am working on a site for a customer. The site owner wants to restrict the editors of the site content only to login from the office.

I have looked for a standard drupal option or contributed module to arrange this. I also searched the forum without result.

I have started working on an own module to restrict certain roles to login only from a know ip/hostname. I have it kind of working but am not happy with the result.
In my editor_access.module I have a hook user. When $op is 'login' I check if the if the visitors ip is on the save list. If not I log them out with user_logout();
Is there a better method than hook_user to restrict user access on ip/hostname?


function editor_access_user($op) {

global $user;

if ($op == "login") {

$safelist = editor_access_safelist(variable_get('editor_access', ''));
$ip = $_SERVER['REMOTE_ADDR'];

if (in_array('editor', user_roles()) && !in_array($ip, $safelist) && $user->uid != 1) {

watchdog('user', t('Session closed for %name using un allowed remote address %ip.',
array('%name' => theme('placeholder', $user->name), '%ip' => $_SERVER['REMOTE_ADDR'])),
WATCHDOG_ERROR);

// message is not showing because session gets destroyed by user_logout()
//drupal_set_message(t('It is not allowed to login from outside the office'))

user_logout();
}
}

How do you search by month?

I'd like to search my posts by month, I remember that there is a way to do it; however I can only seem to be able to search my day. This is is very tedious.

Am I imagining things, or is there a way I can search by month?

Simplenews Questions & Configuration.

I am trying to use Simplenews to create newsletter capability for an alumni website. What I want to accomplish, overall, is to have a method of allowing reunion coordinators to publish a newsletter with upcoming events to their classmates only.

The first thing I did was to set up a new 'role' for reunion admin. My problem with this is that now all reunion coordinators can access the newsletter creation and editing of any newsletter. Not what I wanted, but I certainly do not want to create 30+ roles for each graduating year.

Next I found I had to activate the 'block' display in order to access any links to the newsletter contents and that each newsletter would create a whole separate block. Well, that would fill up the right column and make the page slow to load. So, I thought I could used categories (taxonomy) to create subcategories for the Newsletter container. It still displayed each block separately.

Then I thought I would create a Newsletter page to house all these blocks of info. So, I created a page and setup each block to just display on that page. They didn't show up! I am lost, and way past confused. So, I will just state what I would like and if any of you know how I can get any or all of my 'wishes', within the current system, please reply.

1. I would like to have a block on the front page that would display links to the most recent simplenews newsletters, similar to the 'recent blog' or 'recent comments' blocks.

Pages

Subscribe with RSS Subscribe to RSS - Post installation