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

thumbnails for posts?

i currently setup a videos page using a faq tutorial with cck and i was wondering, does anyone know if its possible to add a thumbnail associated with the post?

Views PHP variable debugging

I am trying to figure out a problem with views, but I don't know what variables it is working with when the page is rendered. I installed the Devel module so I can execute php code on a page. Does anyone know what variables are used to display a views page? It's interesting that $user and $node come up empty. Any help would be great.

Thanks.

Comments on a tab instead of footer

Is there a way to put the comments for a node into a tab (next to edit)? I tried to tweak some of this myself, and ended up screwing stuff up a bit. Any help or pointers would be greatly appreciated.

Brett

Event 5.1

I see a lot of people are using the Event module, seems to be the most popular event/calendar tool. Only problem is, it's a Drupal 4.7 module. Any word on when this will be updated, or if it will? Or is there a new 5.1 solution anyone can suggest?

Thanks!

Community member localization with Gmap

Hi folks,

sorry if this question has come up several times before, I couldn't find an appropriate thread:

Is there an easy way to allow my community members to define their location on a Google Maps via GeoCodes?

I'd like to have one "member map" that shows the location of all members...

Thanks for your help!

Kai

Why is using the forms API segfaulting apache2?

I have drupal 5.1 running on Debian (Linux debianlamp 2.4.27-3-686 #1 Tue Dec 5 21:03:54 UTC 2006 i686 GNU/Linux) with MySQL (mysql Ver 14.12 Distrib 5.0.32, for pc-linux-gnu (i386) using readline 4.3) and php (PHP 5.2.1-0.dotdeb.1 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 9 2007 04:46:32) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies). I'm trying to figure out how the Forms API works. I'm doing something that an example makes look valid, but it's actually causing segmentation faults.

Below is the full code of the module. Just visiting the page that generates the form causes the segfault.

<?php
/**
* Implementation of hook_menu
* @return menu items
*/
function spew_menu() {
$items = array();

$items[] = array(
'path' => 'spew',
'title' => t('Spew form!'),
'callback' => 'spew_form_test',
'access' => user_access('access administration pages'),
'type' => MENU_NORMAL_ITEM,
);

return $items;
}

/* form test */
function spew_form_test($first = '', $second = '') {
$form['first'] = array(
'#type' => 'fieldset',
'#title' => t('First field'),
'#default_value' => $first,
);

$form['second'] = array(
'#type' => 'fieldset',
'#title' => t('Second field'),
'#default_value' => $second,
);

Pages

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