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

captcha denying to a user without captcha requirement

I have a problem with the current captcha module. I have set it to require verification only from anonymous users and at registration. However when I sometimes try to post a reply I get an error saying that "The captcha verification code you entered is not correct" even though the captcha image and the verification field don't show at all.

This is obviously not right.

Any ideas?

Tinymce ediotr window to wide and blowing up my template

Greetings All,
I have new install of Drupal 4.7 with the 4.7 Tinymce Module installed and everything is working well except the TinyMce editor window loads up to wide and blows up my fixed width template. Anyone know how to set the width of the Tinymce editor?

Also the text in the editor seems to have some default courier font that is like size 9 or 10 applied to it... any ideas?
Regards

Q: Call $sidebar_left from node.tpl.php

Is it possible to call the $sidebar_left variable in my node.tpl.php file? Right now it only looks like I can do it in my page.tpl.php file.

Thanks!

Maintaining user data between callbacks

My Goal is to maintain user-submitted data between callbacks. I think I do everything I should but can't make it work.

I made a simple module to illustrate my issue:

node/add/<modulename> does not bring up a form

Hoi.

After searching for an answer for the last few hours, I've given up. My problem is that I can't get the module to bring up a form to create new content. I've used node_example and another module as reference, but without help. More precisely, my problem is that, when I go to node/add/newspool (newspool is the name of the module) nothing but a list of content types shows up. I think I've missed some part of registering a content type there, because it's not listed on node/add.

Form_select with multiple selection enabled

HI,

I posted a topic a while back and it got no replies. I think it was because the problem was not stated clearly enough. I'll try again (and I also have a few other observations about the problem that may help):

I'm creating a module that defines a new node type. In the form_hook there is a call to form_select enabling multiple selections. It is my understanding that the $values parameter is handed an array this way:

array($node->cat1{0},$node->cat1{1},$node->cat1{2},$node->cat1{3},$node->cat1{4})

The entire function call is of the following form:

$output .= form_select(t('Category 1 (select up to 5)'), 'cat1',
array($node->cat1{0},$node->cat1{1},$node->cat1{2},$node->cat1{3},$node->cat1{4}),
_nodename_get_options('cat1'),'For multiple selections: PC - hold down key; Mac - hold down key','',TRUE,TRUE);
/*
( _get_options is the function that returns the associative options array. )
*/

I am defining a node with this module, so I am using a table that joins on the node table for the data in the form. So in the update etc. hooks I refer to the form values as:

'update.... cat1item1=$node->cat1{1}, cat1item2=$node->cat1{2},... '

Interestingly, what happens is the data in the table is set correctly, but I only know this due to checking the mysql table directly. The data is not accessible to output and is not accessed by the form hook or by the page hook despite my attempts. Here is what the failed page hook code looks like:

Pages

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