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

Help with module

I've written a bbcode parser module but I'm having a strange problem. Whilst the bbcode parser works fine with some test code I wrote but if I call the function from within the module it stops working. It seems to be failing to recognise a tag as a tag when I do a preg_match on it and so it treats everything as plain text, but I have no idea why.

Please help.

My code is available here: http://www.ninetwenty.co.uk/bbcode.zip

NiceMenus problem with Goofy theme

i have added the nice_menus module to ym website , when i try to configure if at admin>settings , i click on it and i get a white page , nothing happens , the same thing happened when i tried using the internationalization module , this i18n module , i also get a white screen , those are the only modules i have added to my drupal site and i get the same problem .....
help me out please!

Disable validate on submit

As a poor man's AJAX, is there any way to disable validate? I can insert code that checks the name of the button used to submit and then execute arbitrary code if it matches. However, I don't want to run through the validation procedure (inefficient, since I know it will fail miserably) and I certainly don't want the (predictable) error messages to appear at the top of the page.

If this isn't clear, just let me know what doesn't make sense.

Thanks

Problems with flexinode and new content types

Hi all,

I'm having a serious problem with the flexinode module.. I'm running MySQL 4.1 and Drupal 4.7 on Apache 2.0..

I've installed the cvs version of the flexinode module, created the DB tables and finally tried to create a new
content type..

The content type itself gets created well.. but when I try to add a field (tried: image field, number field,
postal address) I go back to the page where my content type (say "Sport Shoes") is listed and where all fields
should be listed.. The fields I create do not get listed..

AJAX custom autocomplete

See http://drupal.org/node/42552 for reference.

I have done everything (I think) but I still get a 403.

My new module is called "newmodule.module".

I have put the following in "newmodule.module":

/**
* Retrieve a pipe delimited string of autocomplete suggestions for existing plannames
*/
function newmodule_autocomplete($string) {
  $matches = array();
  $result = db_query_range("SELECT name FROM {users} WHERE LOWER(name) LIKE LOWER('%s%%')", $string, 0, 10);
  while ($user = db_fetch_object($result)) {
    $matches[$user->name] = check_plain($user->name);
  }
  print drupal_to_js($matches);
  exit();
}

and, in the newmodule_menu function:

	 $items[] = array('path' => 'newmodule/autocomplete', 'title' => t('newmodule autocomplete'),
      'callback' => 'newmodule_autocomplete', 'access' => $view_access, 'type' => MENU_CALLBACK);

Finally, I have put, in the $form['fieldset1']['field'] array:

'#autocomplete_path' => 'newmodule/autocomplete',

I get a 403 with: http://...../newmodule/autocomplete not found.

If I put that address in the address bar, indeed, it doesn't work.

However, the example in Tutorial 1 works fine (using the pre-existing user_autocomplete) in newmodule. That is, if I use:

'#autocomplete_path' => 'user/autocomplete',

My textfield autocompletes (with user names, of course) just fine.

taxonomy

i want a block on the right hand side to display, all the terms in my taxonomy... ia m so confused..... why this option is not there?

i enabled taxonomy then i created a term... how do i make all those terms show up in a block? is there an option some where..

Pages

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