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

Profile Radio Button

I want to get more info from mij users when they register.
With the standard profile.module i have the following options:

* single-line textfield
* multi-line textfield
* checkbox
* list selection
* freeform list
* URL
* date

But i want radio buttons to select 1 option from multiple options.
This can be done with list selection, but i prefer radio buttons.

can some one help me with this?

Want to launch an external program

I have a program that is not a drupal module, but I want to control access to it through drupal navigation menu. I am on drupal 4.7 and tried adding the program as a menu item, but I get a blank screen. So now I am thinking I should open the program in a new browser window. How should I do this? I looked at the chatbox module which I think opens a browser window, but I don't understand the code. Here is the code from chatbox that I think is how it launches a browser window.

Problems with taxonomy_image

Hello! I have a problem with taxonomy_image module, I've installed this module and I've activated from Administer->Modules and configurated from Administer->Settings->Taxonomy_image correctly.
But I don't know where I must place the call to "print taxonomy_image_display($term->tid);"

I use Drupal 4.6.5, phptemplate engine and FriendsElectric theme.

Can you help me?

Gmap module map overlapping the controls creation page

I installed Drupal 4.7 and installed Gmap.... I have a few glitches.
1. My webpage http://www.fundmytravel.com/gmapmacro ...the map overlaps the text and there is nothing much I can do with the map because of it.
2. Is it possible to have more than one maps on a page?
Thank you in advance
Kind regards
Onesimpleman

Random Quotes Block Module

Hi, I wrote this little module that displays random quotes in a block:

function random_quote_block($op = 'list', $delta = 0) {
  if ($op == 'list') {
    $blocks[0]['info'] = t('Random Quotes Block');
    return $blocks;
  }
  else if (user_access('access content')) {
    
	$quotes_array = file('quotes.txt');
	$quote = $quotes_array[rand(0, count($quotes_array) - 1)]; 
	$quote = trim($quote);
	$content = "<b><i>We tried to imagine our ideal boatyard...</i></b><br /><br />";
	$content .= "<i>&quot;".$quote."&quot;</i>";	
	$block['subject'] = t('');
    $block['content'] = $content;
    return $block;
  }
}

Everything went well, until I did an upgrade, whereupon all the single quotes (') in the quotes turned into question marks.

the quotes file looks like this:

We wanted a proper working boatyard with boatyard smells and activity where owners can come and go and do as much or as little on their boats as they wanted to; where there was professional advice and service on hand and expertise when it’s needed.
We wanted a quiet and peaceful location because we were going to spend a lot of time there and it was going to be holiday, care-free time to dream a little as well as to work and scrub and paint.
We wanted to feel that the yard would know us and know our boat and want to look after it and know how we wanted it to be kept and that it was safe when we left it.

Running form_alter on altered forms.

So, the new way to add stuff to the standard node_edit form is to use hook_form_alter. That's all good and dandy, except that I see no way to alter the alterations.

A concrete example:

Taxonomy has a taxonomy_form_alter function. This function changes the node_edit form to include category items.

Pages

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