This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Need some help with my Region Scheduler Module

I'm working on a custom module but I need some advice on how to implement part of the business logic. The purpose of the module is to allow an admin to easily schedule particular pieces of content for specific regions. The part that makes this different from something like the block module is that the user would like the content to vary depending on the page. Specifically, the use case involves advertisements and choosing specific ads to run on specific pages.

Since the ads will differ depending on the category of the story, etc. it doesn't make sense to have dozens and dozens of blocks which point to the same region in the template. My idea is to allow the user to schedule a particular piece of HTML content for a particular region and then to specify which URL patterns to use to determine if that rule should be followed. Later I will be adding the ability to also schedule a date range but I'm keeping it simple for now.

I was wondering if anyone could give me some good advice on the "rendering" part of the process. The module will need to look through the possible URL matches and pick the "most relevant one." For example you have the url http://example.com/foo/bar/node16. One rule might have a pattern of foo, another foo/bar and another foo/bar/node16. We'd want the most specific match to show up.

Views with arguments only use for some vocabs

I have a number of vocabs with associated terms but need different views for some of them.

i.e. I have views for vocabularies and then for the terms for some areas of the site but want different views for others. Yet the arguments make this difficult.

1. Is there a way to identify a view specific for a vocabulary that requires a vocab ID argument?

2. Is there a way to pass in the vocabulary for the taxonomy/term view such that I can present the node in a different way per vocabulary?

Any help is appreciated!

HelpDesk (Ticket System) without the module

Hello Guys!

I making a new website that needs a cms. I 've chosen drupal for it, basically because normally - with other cms - I've spent to much time hacking custom functionality.

I didn't find any 5.0 version of the helpdesk module, in fact I don't even know if it meets my requirements because I didn't read the feature list. I don't like to see what I COULD have...

First I try to describe the HelpDesk aims and functionality I need for the website as briefly as possible. These are my basic HelpDesk requirements:

direction for creating a forum wrapper

Hello all,
I'm inexperienced at developing drupal modules, and I was hoping someone could set me in the right direction for a module idea I have.

Basically, I want to wrap around the forum module. I want to extend the update, create, display, and edit functions.

I'm thinking that I would need to use hook_nodeapi. There is also the hook_form_alter. I have been looking here: http://api.drupal.org/api/HEAD/file/developer/examples/nodeapi_example.m...

destroy the user object

I want to stop a user from creating a new account unless the user provides the correct validation code. I wan tto know what to use to destroy the user object. I am using hook_user, see my code below:

Weather module completely wrecked my site - twice

I installed the weather module in 4.7.5 site, with no problems at all.

I installed the approprite weather module in a 5.0 site, and when I clicked "configure" by the block, the site just took a long, long, time loading, then loaded a blank page, and my site was effectively gone. I tride to rescue it. For example, I tried doing a check/repair on the database - nothing worked. I backed up the settings.php file, reinstalled drupal 5.0, then put the settings.php file back - that didn't work.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions