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

Russian Stemmer

This module implements the Russian stemming algorithm to improve Russian-language
searching with the Drupal built-in search.module.

Stemming attempts to reduce a word to its stem or root form. This generally results in more relevant
results.

Module can be downloaded here: http://www.drupal.ru/files/rustemmer.zip

blocks and files

Hello,

I need to post blocks with attachement files. I'm searching for a module, but i don't find it... Can anyone point me in the right direction? I don't think that is not possible without develop a new module...
(sorry for my english)
Thanks in advance.

New bloginfo module need postgresql help

Last night I committed the bloginfo module. This is a module to add titles and descriptions to blogs like blogger does.

But, I need a little postgresql help to get it right for 4.7 so it can install on mysql or postgresql. Since I don't run postgresql I am not sure of the sql for it. Can someone help me with the postgresql sql?

The mysql part of the install file reads:

$account->roles in user_access function

I am so close to resolving this. I could really, really use some help.

The $account->roles basically returns an array of roles that the user has.

I am trying to augment this array with additional roles that I add according to the group the user belongs to. Let's assume, for the moment, that I can return the array of roles I desire. In what format should they be in in order to slot into this user_access function command to replace $account->roles?:

$result = db_query("SELECT DISTINCT(p.perm) FROM {role} r INNER JOIN {permission} p ON p.rid = r.rid WHERE r.rid IN (%s)", implode(',', array_keys($account->roles)));

If, for example, my function to return roles is user_all_roles($user), how should the return array be formatted in order to work, i.e.:

$result = db_query("SELECT DISTINCT(p.perm) FROM {role} r INNER JOIN {permission} p ON p.rid = r.rid WHERE r.rid IN (%s)", implode(',', array_keys(user_all_roles($account))));
<./code>
This isn't working because, I assume, of the way I'm formatting the resulting array. Right now, I just return a basic array with two values:

0 = anonymous user role
4 = my custom role (this is the correct rid and it is in the roles and permissions tables)

However, my tests of user_access('permission') reveal that the roles, in the array format I am supplying, aren't being recognized. Any suggestions whatsoever? Thanks!

form api woes?

After several hours of messing around looking through the API's i'm exhausted - so apologies if i could have found the answer by browsing for another few hours!

I'm converting some old (and quite bad) code to use Drupals form API, which sets up the forms quite nicely - but it's setting their "names" as edit[name] as opposed to just "name".

I'm wondering if there's an API to pick these variables up after the submission 'cause i sure as heck can't get 'em via $variable = $_POST[name]; etc.

Cheers!

roo.

Event module problems

I'm having trouble with my Events module, perhaps I am doing something wrong. If you'll visit my test site:

http://www.valleyview.dreamhosters.com/events

You can see where things just didn't go swimmingly. My problems:

1) Even when I change the default overview settings in administer/settings/event, the changes do not appear to take effect on the site. I'm looking for something like what you'll find here:

Pages

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