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

CiviCRM and Photos

Hello,

I would like to developp a site like yellows pages with the ability to display photos. Anybody knows how to to that with civiCRM or another module to suggest ?

Thank's in advance for advises.

A blog-inspired module

I'm new to Drupal and developing a new module for listing out a user's podcast(s). It is basically for a community directory of podcasts, but I used the blog.module as a template since it had a lot of the functionality I was looking for.

I've got the individual node pages working and the last-10 block too, but the other pages are busted or not found.

To be specific, the list of recent nodes, specific user-owed nodes and the feed don't work. Any ideas?


/**
* Implementation of hook_view().
*/
function podlisting_view(&$node, $teaser = FALSE, $page = FALSE) {
$node = node_prepare($node, $teaser);
$profile = theme('podlisting_profile', $node);
$node->body .= $profile;
$node->teaser .= $profile;
}

/**
* Implementation of hook_user().
*/
function podlisting_user($type, &$edit, &$user) {
if ($type == 'view' && user_access('edit own podlisting', $user)) {
$form['podlisting'] = array(
'#type' => 'item', '#title' => t('podlisting'),
'#value' => l(t('associated podlistings'), "podlisting/$user->uid", array('title' => t("Check out %username's podlistings.", array('%username' => $user->name))))
);
return array(t('Vlogs') => $form);
}
}

/**
* Menu callback; displays a Drupal page containing recent podlisting entries.
*/
function podlisting_page($a = NULL, $b = NULL) {

if (is_numeric($a)) { // $a is a user ID

a simple link as MENU_LOCAL_TASK

Hi everybody.

I want to create a MENU_LOCAL_TASK link which simply links to 'node/add/mymodule' .
I don't need callbacks or other. Simply send clicks on the little tab (created near view and edit)
to the 'node/add/mymodule' page.

How can I do this on drupal 4.7 ?

This looks simple to me but I'm stuck with this! (maybe I'm too tired)

Thanks Fabio

Encrypted / restricted flexinode field

As part of an Intranet project in Drupal I'm looking to hold sensitive data such as passwords and contact phone numbers in nodes.

The content types are defined by Flexinode.

I'm looking to build a new Flexinode field type which will take plain text and encrypt it in the database (so not searchable). The field will only be displayed if the viewing user has the right permission/role too.

HTTPPost, AJAX

I am trying to develop a module using AJAX. I need to submit a form using post. I am using 'HTTPPost' method that is available in drupal.js. But I am not able to pass the FORM DATA to the php handler. How is this done ? and how is the data handled in php. Any help will be appreciated.

Regards

Karthik

New node type - want to access revision history

I just created a new node type with the handbook entry. Now I'm trying to expand the functionality of the node.

I added functionality to allow users to edit the node, even if they don't own it. However, I also want them to see the revision history list. Is there a hook that I can add to allow this just for this node? The only way I can figure to get it visible is to give 'administer node' permissions to the authenticated user role. For obvious reasons, I don't want to do that.

Anyone have thoughts?

Pages

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