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

Uploading Pictures Trouble

This is my error

user warning: Column count doesn't match value count at row 1 query: INSERT INTO portfolio (nid, image_small, image) VALUES (8, 8, '', '') in /Applications/xampp/xamppfiles/htdocs/drupal/includes/database.mysql.inc on line 172.

This is my code, I am sure that the problem is either with the form api or the sql insert. Could someone give this a look over and tell me where my problem lies.

<?php
// $Id$
/**
* @file
* Provides a "joke" node type.
*/

/**
* Implementation of hook_node_info().
*/
function portfolio_node_info() {
// We return an array since a module can define multiple node types.
// We're only defining one node type, type 'joke'.
return array(
'portfolio' => array(
'name' => t('Portfolio'), // Required.
'module' => 'portfolio', // Required.
'description' => t('Add a portfolio item!'), // Required.
'has_title' => TRUE,
'title_label' => t('Title'),
'has_body' => TRUE,
'body_label' => t('Portfolio'),
'locked' => TRUE
)
);
}

/**
* Implementation of hook_menu().
*/
function portfolio_menu($may_cache) {
$items = array();
// Do not cache this menu item during the development of this module.
if (!$may_cache) {
$items[] = array(
'path' => 'node/add/portfolio',
'title' => t('Portfolio'),
'access' => user_access('create portfolio'),
);
}
return $items;
}

/**
* Implementation of hook_perm().
*/

How to disable rich text editor?

HI all,

I have a textarea that must have some code pasted into it. I want the textarea to be a normal html textarea element and not a rich text editor element. If the user has a rich text editor installed this just takes over your form elements. I have tried overwriting the hijacked textarea in the form_alter hook but this doesn't work.

Question about Calendar

I know the calendar module can work to make a calendar of posts when they were posted, but I'm wondering if its possible to add future events for a schedule. Can you make an event as a content type and add it to the calendar on the day it will occur instead of the day it was posted?

Thanks in advance

Storylink problem

I've posted a new Storylink. It asked for Title, URL and description. I put in all of that. But when I go to the post, it doesn't have the URL of the story. Am I suppose to click somewhere? Do some configuration for it to show up?

Arcade module?

Is there any module that integrates flash arcade games into a drupal installation?

Could someone clarify this for me please.

I am converting my website but am having some difficulty in being able to comprehend the tasks which I need to do.

On my website I have a portfolio page which pulls a list of all the projects I have done and displays them in small images. When you click on a specific image it takes you to portfolio.php?project=projectname. Thus showing the project itself as well as development information.

Now, I understand that the information about each project would be a custom node which I have yet to create.

Pages

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