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

Email Newsletter

I've uploaded a preview release of my Email Newsletter module to my sandbox.

WARNING: This is a work in progress, it should not be used except for testing purposes, don't use this on an active site.

This module creates email newsletters based on selected terms from the site's taxonomy. Subscribers can then filter which of these terms they would like to receive news about. On send out, the module personalises the email and includes only nodes that the Admin has allowed, and the subscriber has selected.

Once you've installed the module, and run the SQL to create the database tables that it uses, you will need some test users:

1.) Create a new role
2.) Give the new role permission to subscribe to newsletters
3.) Create new test users, with email addresses that will come back to you, assign these users with the new role you just created.

OK, now you're ready to create a newsletter, under Administration, look for the "Email Newsletters" menu.

Create a new newsletter.

Log in as each of your test users, under "My Account", "Email Newsletter", subscribe to the newsletter(s), edit which content you would like to receive.

As Administrator you are now ready to send....

Make sure you have a few nodes in the taxonomy terms you've selected for your newsletter(s).

Go to the newsletter you want to send, click "send now", enter a date range for the nodes you want to send (their creation dates), click 'Send".

Navigation module

Hi,

I'm new at all this and I'm working on the navigation module from release 4.4.1

I'd like to have the links displayed in a table like here (this is the hand coded site, nothing dynamic) AIESME.org rather than as a tab separated list as here Dev site

Any help would be greatly appreciated.

Problem: Filestore Temp Path Not Found!

I am trying to get the filestore module working. It seems everything is up and running correctly, yet I cannot figure out why none of the temp pathnames entered in the filestore configuration screen are found. This manifests itself in a "Filestore Error. Temporary Upload Path -- does not exist." I feel like a dork because it seems this should be a no-brainer. I can't find any forum topics that address this problem. Oh, and to guess your advice.. I am putting /tmp/, or /drupal/tmp, or any combination I can think of.

Theme function doesn't return content

I am trying to return a string through the theme function, the module is activated and when I goto myurl/wpiupd it returns the theme, but it doesn't contain my test string. If I replace the theme call with for instance "echo 'teststring';" it prints teststring on a white background. I am using Drupal 4.3.1, how can I make the theme function return my string?

here is the sample module:

function wpiupd_settings() {
// only administrators can access this module
if (!user_access("admin wpiupd")) {
return message_access();
}
}

first attempt at displaying a test string using a module

Hello there!

I am attempting to write a module for drupal for the first time. I am working on putting together a basic skeleton of a module together. I have created the file, inserted it into the module directory, named it properly, and inserted the following code, and activated the module in an attempt to have the module return a test string when I goto http://www.mywebpage.com/wpiupdates - all it does is return an error along the lines of index.php has failed to open stream. Bad file descriptor.

my web site has been working fine - and still works fine after the module is activated via the admin - I believe the problem lays with my code. can someone help me to figure out what i am doing wrong?

Here is the code:

function wpiupdates_settings() {
// only administrators can access this module
if (!user_access("admin wpiupdates")) {
return message_access();
}
}

function wpiupdates_node($field) {
$info["name"] = t("wpi updates");
$info["description"] = t("WPI Update Module.");

return $info[$field];
}

function wpiupdates_link($type, $node=0) {
if (($type == "system")) {
// URL, page title, func called for page content, arg, 1 = don't disp menu
menu("wpiupdates", t("WPI Updates"), "wpiupdates_all", 1, 1);
}
}

function wpiupdates_form(&$node, &$help, &$error) {

$help = ("Enter the latest WPI update inside this form.");

Pages

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