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

attachments in comments?

I would really like to know how the attachments to comments in projects seen on this site work, since I am having big trouble with getting attached file and even filestore to work (no, I haven't found an answer in any other forums).

I'm using Drupal 4.4, have installed the project module (no option for attaching there), in the attached file readme it just says 'plug the functions in their appropriate places' - I don't know what these places are! Can anyone tell me how to add this functionality into my forums so users can attach files to their posts?

Wiki footnotes documented but not implemented?

The Wiki documentation in the module and help file promises that it supports footnotes when you put numbers inside square brackets in text. This structure is supposed to link to anchors later in the text that consist of the same construct that starts in the left column.

I can't get this to work, and have scanned through the code to see if something is broken. I can't find where it is even implemented. Is anyone familar with this code enough to know if this was ever implemented? The documentation example is actually generated with HTML markup, rather than the promised Wiki syntax.

SpamAssassin Module

I'm considering building a module that uses Spamassassin rules to filter incoming content. Below are some of my notes on the topic. Note that this assumes that the reader is mildly familiar with how Spamassassin works:

Create a Drupal module that uses spamassassin to filter content.

Create a rule to apply to each role to determine whether filter applies.

Specify which node types/comments get filtered. Possibly have a per-node config that allows poster to turn on/off comment spam filter.

Specify a spam score above which content post gets filtered.

Options for filtering actions include message being:
1. denied
2. denied quietly (appear to be accepted)
3. queued for moderation
4. queued for moderation quietly

Spamassassin will need to be modified to only apply body tests, as all
header tests will be unapplicable. Consider the performance
options/payoffs between using spamassassin as a separate process vs.
using the spamd client/server configuration.

Rule sets will need to be customized for each community. Consider developing an interface that allows moderators to adjust scores for rules on a per-message-acceptance basis using a "This is not spam" button in addition to an "Approve" button. e.g. if a blackjack gaming community posts 25 posts all containing the word 'Casino' and the CASINO spam rule by default adds 2.8 points to the overall spam score, each message that gets accepted reduces the spam score for rule CASINO by some predetermined value (like 0.1). After moderators have accepted all 25 posts in this way, the revised spam score for rule CASINO will be 0.3 (most likely below spam threshold).

Star-Rating for nodes

Hi all,

I have created a new module for our site, which enables users to rate nodes out of 5-stars.

It then filters nodes which score below a certain threshold (default 2 stars).

If anyone would like to check it out (ie beta test it :) ), feel free to email me: mabster at madprops dot org.

Cheers,
mabster

module admin (preference) settings

I'm trying to figure out where a module's admin (preference) settings are stored. I was playing around with the image module, but could figure out where it stores the values. I can't find them in the database. Does Drupal write them to the module file itself? If not where do these values get stored?

So when I develop my own module and I have some preferences that needed changing, where should I have them stored for that specific module?

thanks

How to Submit a Module?

So, i couldnt find anything about how to submit a module, or what INSTALL/README type files were needed (and how to write them...)

Anyone tell me how?

You can get the module here: http://83.88.179.12/emailpage.module

It has no install, just copy to the modules dir in the usuall manner and then go enable it and adjust it's settings.

Nick

Pages

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