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

View stories by Fivestar vote, year, month (Views, Fivestar modules)

Hello all, I was hoping for some help with the Views and Fivestar modules.

What I want is for visitors to go to http://www.example.com/ranking/2006/12/ and see all the stories that were published in December 2006 sorted by the Fivestar vote and the option to go to http://www.example.com/ranking/2006/ to see all the stories that were published in all of 2006 sorted by vote.

I want to get my hands dirty with my SQL database

I've been waiting for the node import module to be ported to 5.x -- http://drupal.org/project/node_import -- and so have had some to think about what I actually want to do with it. It's my hope to convert data from other standard formats to CSV and then to make nodes for an existing drupal site with the CSV data via the module.

Odd Menu Behaviour on Custom Module

For some very odd reason that I cannot at all fathom, when I install my module "Contacts", I get "Contact" and "Contacts xxx" showing up in the Create Content menu. I put the xxx in there to help me track down what's going on. Any ideas? I'm using Drupal 5.1 and I've created another module that works just fine.

<?php
// $Id: contacts.module,v 1.186 2006/03/27 18:02:48 killes Exp $

/**
* @file
* Enables users to submit contacts.
*/

/**
* Implementation of hook_node_info().
*/
function contacts_node_info() {
return array(
'contacts' => array(
'name' => t('Contacts xxx'),
'module' => 'contacts',
'description' => t("Contacts are used for everyone from employees to client company contacts."),
)
);
}

/**
* Implementation of hook_perm().
*/
function contacts_perm() {
return array('create contacts', 'edit contacts');
}

/**
* Implementation of hook_access().
*/
function contacts_access($op, $node) {
global $user;

if ($op == 'create') {
return user_access('create contacts');
}

if ($op == 'update' || $op == 'delete') {
if (user_access('edit contacts') && ($user->uid == $node->uid)) {
return TRUE;
}
}
}

/**
* Implementation of hook_menu().
*/
function contacts_menu($may_cache) {
$items = array();

// Set Admin Options
$items[] = array(

theming the e-commerce products

Is there anyway to make to add a thumbnail to an ecommerce product? It seems goofy that there isn't a place for that. Right now I'm using upload_image to show a thumb at the bottom but on the products page there's only text links. Any ideas?

#tree form validation - showing red errors

i have a $form that defines $form['date'] as #tree => true, and i have subsequent form text fields for $form['date']['start_date'] and $form['date']['end_date'].

i am able to do validation and form_set_error('date', 'msg'), which outlines BOTH start_date and end_date text fields with a red error box. however, how do i outline ONLY start_date or end_date? i've tried form_set_error('start_date', 'msg') but to no avail :/

I like installing phpfreechat 1.0-beta8 in drupal 4.6.8

hello, desire to install the new version but of phpfreechat in drupal 4.6.8 since I can do it? some I module? 12/18/2006 - phpfreechat Release 1.0-beta8 i like install this version, thanks.

Pages

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