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

Build Loyalty and have your customers coming back more and more often

Greetings,
My first post to this section. I made a Post in support regarding subject,

http://drupal.org/node/15246#comment-25355 pls read

But its such a Biggie, I thought I should Post it here as well. To see if it gets any feedback.

==============

Customer Points

If you wanted to take this one gaint step up. You could store the users points and reward them Privileges based on thier points.

Overriding date format function

Quick question on module development:

If I have a file something.module, and it contains a function something_format_date() does that mean it should be able to override the standard method of formatting dates?

I'm currently testing with the following code at the start of common.inc/format_date(), but it's not "modular". Should I be able to do this sort of thing without editing common.inc?

Ilohamail integration and authentication methods muddlement

I'm integrating ilohamail ( http://www.ilohamail.org ) into drupal as a module for my ISP's homepage ( http://www.pioneer-net.com ).

The biggest catch (I hope) is implementing an alt auth method for drupal, so that users who have email accounts with us will get a drupal account automagically on login.

Here's what I want:
When the user posts a login attempt, check against a list of usernames stored in a db table. If the name matches, use the custom auth through ilohamail. If the name doesn't match (or auth fails, possibly indicating that mail is down), authenticate normally.

I recognize that for most deployments, it will be fine to just have a webmail login block that users see if they have webmail permission. That's fine, and I will implement it. For my deployment though, I need the above behavior.

I've been messing around with user.module and hook_auth a bit (this is a mod for 4.5 btw - if using HEAD is a good idea for some reason, let me know), and it seems that custom auth methods are only tried if there is an @ sign in the username. I don't want users to log in as user@host, just as user. So I will have to modify this function, I think.

The other tricky thing is that I want drupal to set the password for the user's account to her mail password on successful mail auth. If the mail server goes down, she should still be able to access the website.

The immediate reason for this post is to solicit sources of further info (aside from API) on auth methods, as I can't find much, and also advice on implementation details, as I am a drupal n00b (been hacking on it for a month tho, so learning).

Debug mode?

I've been hacking at drupal for several months now, customizing modules for clients' sites, and a persistent frustration is that when something isn't working, it's difficult to figure out what's going wrong inside functions that don't produce any output. Normally, I'd debug by adding print statements to my code, but these generally get ignored by drupal.

Idea: Module to update a live site against drupal CVS

it would be nice to see a module developed for drupal, that would use CRON and CVS to keep a live website updated to the latest changes in the drupal CVS system (while preserving conf/settings files of course). something like this would also need some way to *know* to update the sql when needed (maybe have a script that would compare installed version of drupal against latest version/date in CVS, and run any sql changes that have been made between those dates? i doubt this is possible without alot of trouble tho)

How to "subscribe" to an organic group?

The readme for Organic Groups says "All subscriber management happens on the 'user list' page which is linked from the group Block (while viewing a group page). This includes approving subscription requests (for selective groups), unsubscribing users and promoting users into group admins."

What I can't figure out is, how do regular, non-admin users request to subscribe? I can't add any users from the page described above, only see already existing group members, of which there is only one--me the creator of the group....

Pages

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