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

Module: Connecting users of Drupal, Joomla, MySpace, PHPNuke, Yahoo, etc?

Hey there, is there work being done anywhere to connect users from different CMSs? What I mean is, allowing a Joomla user to post on a Drupal site, and vice versa.

cck views userreference ; userreference field not visiable in filters

I created a cck node with a userreference filed type. The userreference field type is not available in the filters. Is this normal behavior or is it a problem?

It is available in fields and arguments.

Thanks in advance.

t4him

image upload module for tinymce (IMCE)

Webmaster Note: this post was originally written in 2006. IMCE is still around, but it integrates with other WYSIWYG and media handling projects. Please look at the WYSIWYG API for D6, and at the work done with the Media module for D7. Much of the content in this thread is out of date - End Note.

See IMCE project page for updated info

i want to share a module that i use for uploading images with tinymce. it's a very lightweight module working with 4.7.x.
Features:
- doesnt require any other image related modules since image handling is minimal. no image nodes. no thumbnail creation.
- allows only .jpg, .png, and .gif formats.
- upload, list, view and delete images.
- uploads images to personal directories. (system_file_directory/u.userid)
- configurable upload limits: Filesize per upload(default:100kb), image dimensions(default:500x500), total quota per user(default:500kb).
- upload and administer permissions for user roles. administer permission removes upload limits.
- detects tinymce action and automatically throws necessary .js to activate image browser. it uses tinymce's "file_browser_callback" setting to be activated in tinymce's image popup window. By this method, nothing needs to be done in order to use the module except enabling the module in modules page.

Installation:

Trouble re-installing Organic Groups - tables not created.

I had OG installed and running, but I wanted to update to the latest version (on a test site I am working on). So this is what I did:

1. Disabled OG and OG related modules.
2. Removed any OG tables in the database (there were 2)
3. Removed the og folder in modules folder.

Then I downloaded og-4.7.0.tar.gz and:

4. Uploaded the new og folder to the modules folder.
5. Enabled og and og_basic modules.

Problem is that the OG tables did not get created. I am getting this message:

variable_get strange behaviour

Hello All,

I am working on a module that will allow for the configuration of the advanced search form, i.e. which fields to show, which node types to to allow searching by etc.

In my settings function I am having a little trouble and can't seem to figure out why. variable_get is behaving strangely. I have the following code which works as expected:

$form['search_config_disable_all'] = array(
    '#type' => 'checkbox',
    '#title' => t('Disable \'Advanced search\''),
    '#default_value' => variable_get('search_config_disable_all', 0),
    '#description' => 'Disable the entire advanced search form'
  );

Now the following refuses to save the variable information:

 $form['search_config']['keywords']['or'] = array( 
    '#type' => 'checkbox',
    '#title' => t('Containing any of the words'),
    '#default_value' => variable_get('search_config_disable_or', 0)
  );

I have 3 other similar checkboxes that behave the same way.

If I do a form element with the following code:

 $form['search_config']['keywords']['blah'] = array( 
    '#type' => 'checkbox',
    '#title' => t('Just testing'),
    '#default_value' => variable_get('blah', 0)
  );

it works as expected.

This is not the first module I am developing but this is the first time I am encountering this issue. Am I just missing something very obvious? Maybe I've been looking at the code too long :).

installing new modules

I am using:
CivicSpace 0.8.5
MyPHPadmin through Yahoo

Everytime I install a new mod I get error messages that has to do with my db. All pre-installed mods work fine, so I know I am doing something wrong. Here is an example of my error messages:

user error: Table 'civicspace.new_legal_conditions' doesn't exist
query: SELECT * FROM new_legal_conditions ORDER BY tc_id DESC LIMIT 1 in /includes/database.mysql.inc on line 66.

Pages

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