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

PLEA TO DEVELOPERS TO CREATE PROFILE MOD!!!

I think it is essential to have a updated profile mod that we can customize without "snippets" and "hacks." I used the user_profile.tpl.php file to overide the profile page, but all the other features went MIA, because DUH.. it was an overide! The "snippets" section is cool, but very hard to get them to work.

Anything being worked on for this?

Thanks!

Kris
www.cribfax.com

BTW-This is my only issue with Drupal... I truly do love what you guys have done!!

Using taxonomy in custom module

Hi everyone

I'm developing a module that allows users to make or fill in surveys, quite similar to the AJAX Form generator SoC project.
I'm not using the node system for this because:
1. The creation of a survey takes two steps: first: title, description, informed consent, second: designing the form of the survey.
2. The submission of the form is done with AJAX because the whole form is a javascript object which needs to be passed to PHP.

I'm using the two steps because otherwise the interface gets too cluttered and because my client wants to edit the surey description and informed consent with a WYSIWYG editor (TinyMCE)

This works pretty good, but the problem is that the surveys need to be placed in several categories. Obviously I thought to use the taxonomy module for this but the problem is that it's made specifically for nodes.

So does someone know a way to use taxonomy in a module that doesn't use the node system? How would I go about adding a list of vocabulary/terms to the submission form of a survey?

PS. I won't release this module to the public since it's custom made for a university, but once it's finished I may make something based on it. The difference with the AJAX form generator is that it's specifically for surveys: "I agree page", multi-page forms, results downloadable in Excel format, form items such as "very bad x x x x x very good", tables a

development/mod of eCommerce module

Hi,

I was wondering how to develop a module (or mod the ecommerce module) to do a kind of auction or direct sale that would need the following fields:

1) Item description - and optional image;
2) item location: city and street;
3) item timestamp: date and hour;
4) the item could be bidded or selled with a 'buy now' link;
5) items could be searched based on the above criteria (city, street, date and hour)

Could the eCommerce module be modded this way? maybe to use the payment framework (or at least pay on delivery)

imap_auth question

Hello everyone,

I've been trying to get my users to validate against an IMAP4 server and I've found the imap_auth hook very useful. The only problem is that it doesn't work against the IMAP server I use, since the usernames ought to have a suffix. Because of this, and because I found the code of imap_auth rather unreadable, I've decided to hack it a bit. So, now I've got this:


function imap_auth_auth($username, $password, $server) {
  
  if (variable_get('imap_auth_enabled', 0) == 0) {
    return FALSE;
  }

	if ( strpos ( $username, 'domainname.nl' ) === false )
	{
	  $username = $username . '.domainname.nl'; // this is the suffix.
	}

	if ( @imap_open ( '{imap4.myimapserver.nl}/INBOX', $username, $password ) )
	{
	
		watchdog ( 'user', 'User ' . $username . ' validated.' ); // For debugging purposes.
		global $user;
		
	 	return true;
	}
	else
	{
	
		watchdog ( 'user', "nope for user $username, $password on $server." );
	 	return false;
	}

}

This actually works. It will open a connection to imap4.myimapserver.nl, with the username username.domainname.nl and the password.

The logs (watchdog) however tell me a different story:

user 2006-08-18 08:27 Login attempt failed for username@domainname.nl
user 2006-08-18 08:27 succeeded.

As you can see the string 'succeeded' is written to the log, but still the login attempt has failed, while I specifically return true. Does someone know why exactly this doesn't work? Perhaps a global variable like $loggedin or something like this should be set? I've been thinking about that quite a while, but the original imap_auth doesn't seem to do anything else.

how to create <HTML> forms

hi everybody,
I want to create one form for name,address etc how it can be done in my site using drupal

Best way to handle images

I am confused on the best way to handle images. After much research I cannot find a simple way. I want to attach multiple images to a node (either page or cck), generate thumbs/previews, and have the images listed below the node.

Does anyone have a solution to the most common requirement of Drupal.
Thanks...

Pages

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