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

Any e-commerce module for drupal 5.0

Is there any e-commerce module for drupal 5.0?

Adding to 'Submitted by' line without modifying template

I am presently working on a module that adds a 'time to read' estimate to the 'Submitted by' line:

Submitted by admin on Wed, 2007-01-17 05:45. | Estimated time to read: less than 1 min

Currently, I am adding the estimation information to the node object using hook_nodeapi() (see code fragment) and then modifying the node.tpl.php file in my theme to display the information. What I want is to be able to add the estimated read time information without having
to modify the theme.

Forms that generate pull-down menus

I have been recently trying to use drupal as an itranet based CMS for my company and i started out by using CCK to create my custom nodes. I noticed that CCK, although powerfull is in places, a little limted. I decided to write my own modules to get the structure i wanted. What i an looking for is when i create my form for my module. I want to have a pull down menu that is generated from another table in my database. So instead of a simple pull down menu like this:

$form['basic_attributes']['personal_title'] = array(
'#type' => 'select',
'#title' => t('Title'),
'#default_value' => $node->personal_title,
'#options' => array(
'Mr' => 'Mr',
'Mrs' => 'Mrs',
'Miss' => 'Miss',
'Ms' => 'Ms'
),
'#description' => t('Please choose an option.'),
);

I want to create something like this: (this is NOT the actual syntax, just an explanation)

// Load the data to create the menu

$record = query(SELECT * FROM pull_down_menu_table);

$form['basic_attributes']['personal_title'] = array(
'#type' => 'select',
'#title' => t('Title'),
'#default_value' => $node->personal_title,

// Generate the pull down options

foreach $record blah blah blah
),
'#description' => t('Please choose an option.'),
);

Do i need the og_basic module

Hi everybody,

can anyone explain me, for what i need to enable the og_basic module?
Description is: "Basic group node for Organic groups".

Is there a link who explains this?
What happens if it`s disabled?

regards
Helge

Events to be automatically posted in Forum

Hi guys!

I'm sorry if this is a simple question, I cant find an answer to it.

Can someone direct me how I can have a event that is posted through the EVENTS module to be posted in the Drupal forum at the same time.

So for example, a user can go to Create Content> Event and automatically (or have an option) to both create and event which will go in to the calendar and automatically generate a post in the Drupal Forum.

Thanks for any help or suggestions

Submitting a Node with Multistep form - Submitting before getting to Step 2

I am trying to create multi step form that submits a node with 5.0. An example of the code below.

Two problems.
1. The form presents me with the Node "Preview" or "Submit" buttons rather than the "Next Step Button"
2. As a result of the above the node is being created before gathering additional data in step two.

Thanks

Pages

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