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

can anyone recommend a link on how to correctly use form_alter and variable_get, together?

can anyone recommend a link on how to correctly use form_alter and variable_get, together?

i'm adding some checkboxes to a certain form, with form_alter, and i expect that the submitted values will make thier way into the variable_get variables that i'm using to set default value for these checkboxes

ic this same idiom in the node_privacy_byrole code, but its not working for me

what am i doing wrong?

captcha/textimage modules- diff. copy for diff. sections...

hey guys,
i installed captcha/textimage module so i can make sure my anon commenters aren't spambots. i wanted to customize my copy so that anon commenters would be invited to register. my issue was when I changed the copy to something like, "Type what you see above. Registration removes this step so join!"- that it also appeared in the captcha in the registration page which was redundant.

I ended up doing this to get around it: in captcha.module, I added a new arg, $candidate_trigger, when the captcha_type is being called:

in capcha.module
call_user_func_array($captcha_type.'_captchachallenge', array(&$form, &$_SESSION['captcha'],$candidate_trigger));

then in textimage.module, i edited the textimage_captchachellenge function to recieve and check the value of the arg like this:

in textimage.module

function textimage_captchachallenge(&$form,&$sessionStuff,&$whereAreWe) {
  if($whereAreWe=="user_register_anonymous_user_captcha")
  { 
   ...customize #title and #description for anon commenters ...
  } else {
   ...use generic settings...
  }

the one BIG question i had is in the first snippet above has argument, &$_SESSION.. being passed to textimage_captchachallenge as an arg but in textimage.module, the function didn't specify the arg. Why is that??? in order to get it to work, i had to create a &$sessionStuff arg that does nothing. Everything seems to work but i don't get it?

Plesk Integration

Hello Everyone,

I see this module here for cPanel integration. http://drupal.org/node/62508

What I want to know is, does this module work with Plesk? I was told by someone that if they both use the same basic server functions it should work, but if the cpanel module uses special cpanel functions it wouldn't work.

If this module is not compatible with Plesk, does anyone know of one that is?

Thanks in advance,
Paul

clusterer.js in gmap.module

Hello:

Someone can explain how to configure clustered.js with gmap.module and location.module, i mark the checkbox and the map is shown empty.

Thankyou

how to add extra charge on cod.module ?

Does someone let me know how to modify cod.module for adding fixed cod commission.
In my country, every shipping company is charging fixed amount of money for cod.
I have read every code in cod.module line by line carefully, and looked into some modules including flexicharge or paypal for reference for a couple of hours. But gave up, it's beyond my ability.

I only add below in function cod_ec_settings(),

Dynamic display of node: possible?

Hiya guys,
is it possible to have a node display under multiple dynamic URLs (not path auto), with a custom URL for node, for example:

domain.com/foobar1/mynode-1
domain.com/foobar2/mynode-1
domain.com/foobar3/mynode-1
domain.com/foobar4/mynode-1

domain.com/foobar1/mynode-2
domain.com/foobar2/mynode-2
domain.com/foobar3/mynode-2
domain.com/foobar4/mynode-2

or in other words, "foobar" is the dynamic directory from taxonomy and "mynode" is the dynamic url created on the fly. Node is identified by node ID (mynode-1)

Pages

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