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

How to get Buddy Chat to work?

I installed BuddyChat module and enabled the chat block on left sidebar.
However though I have two buddies, the block shows two bullets with "Anonymous" written next to them.
I checked for any settings - couldnt find any.

I'm running Drupal 4.7.x and Buddylist module is installed too.

Any ideas if I'm missing somehing?

Thanks,
Reggie

Special HTML chars in menu title

Whitin my module, I need to put some accentuated characters in menu titles.

If I wrote the code this way:

$items[] = array('path' => 'view/' . $uid . '/populacao', 'title' => 'População', ...

I don't get correct title, but garbbed char instead.

If I wrote the code this way:

$items[] = array('path' => 'view/' . $uid . '/populacao', 'title' => 'População', ...

I get title literally as coded.

SMTP module success with test email, failure for new user emails

Hello!

I am using:
Drupal 5.0-RC2
PHP 5.2
Apache 2.2
MySql 5.0.27
SMTP module Head revision

I installed the SMTP module, configured it, and sent a test email successfully. So I know that some code path is working.

When a new user creates an account, however, I get the following error:

warning: mail() [function.mail]: SMTP server response: 553 Sorry, that domain isn't in my list of allowed rcpthosts. in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\drupal\includes\common.inc on line 1970.

I believe this means that it is not authenticating, indicating it is not using the SMTP module.

Looking at the code in common.inc (below) it looks like the if statement fails to find the smtp_library variable. Then it calls the mail function, which throw the error. Presumably if the if statement succeeded and called the SMTP module mail function it would work.

I'm new to PHP, so this is hard for me to debug after this point. I'd greatly appreciate any help. Thank you!

<?php
// Allow for custom mail backend
if (variable_get('smtp_library', '') && file_exists(variable_get('smtp_library', ''))) {
include_once './' . variable_get('smtp_library', '');
return drupal_mail_wrapper($mailkey, $to, $subject, $body, $from, $headers);
}
else {
/*
** Note: if you are having problems with sending mail, or mails look wrong

Fivestar settings. Where are they?

Hey,

I've updated the Fivestar module for v5 and can't seem to find the settings to disable vote clearing for a content type. Has anyone else's disappeared?

Cheers,
Ryan

Mass contact form

Dear Friends,

I've created a mass email module for Drupal 5.0 It is basically an edited copy of the core contact module, turning it around to send emails from the admin to any set of roles or to the entire subscription base.

It's really rough, but it works for me with limited testing. I'm posting it here in hope that

1) others might help me spot bugs,

2) others might fix up the code to make it more advanced

3) someone might take it on as a project and open a module page, because AFAICS, the other mass mailers are all but abandoned...

link to external site

How to I link to a external website through the title field of a node? Sort of like how google does their search results

Pages

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