Change Reply Content type.

Currently, my comments have multiple text fields as well as radio buttons. Is there a way to have the reply button to bring a form with only a single text field. Basically, I want replys to have a different content type from the comments. Is that possible?

Thank you in advanced!

Redirects of files not working

I am trying to use blubrry to help track my downloads of my podcasts, and so far as I can tell this SHOULD work, but it isn't...

Reorder Links

What's the proper way to reorder links for a node? I have installed service links and they show up in front of the "Add new comment" link. I'd like them after the "Add new comment" link. I don't see a "weight" property for this. Each service link can be reordered but not the groups of links for by module.

URL aliases config for Bloggers and Blog Posts

Is there a way to make sure that the URL for all post from a specific Blog user is has the URL of

/blog/bloggername/post-name

I don't see how to do this in the 'URL aliases' config.

Custom Poll Module results disappearing.

I was in need of a poll module that would allow the user to take the poll off line, and allow for someone of a specific role to input the results of that poll.

Example:

John Doe will read the poll question on our site, he will then conduct the poll during his meeting and report the results back to the site. Sally will do the same thing at her meeting.

John and Sally will be marked a specific roles that will allow them to go to the site, log in, pick the poll that they want to input their results in, and cast everyone's votes.

AJAXed confirmation for node submission

I am really stuck on this and haven't been able to find a solution. In my use-case, user must confirm his/her post when he/she submits a node form. I would like to load the server-side confirmation form as a html popup.


<?php
MY_MODULE_menu() {
$items['MY_MODULE/create'] = array(
'access callback' => TRUE,
'page callback' => 'MY_MODULE_load_form_callback',
'page arguments' => array(2),
'type' => MENU_CALLBACK,
);
return $items
}

function MY_MODULE_load_form_callback($type) {
if($type == 'ajax') {
module_load_include('inc', 'node', 'node.pages');

global $user;
$type = 'MY_CUSTOM_NODE_TYPE';

$node = (object) array(
'uid' => $user->uid,
'name' => (isset($user->name) ? $user->name : ''),
'type' => $type,
'language' => LANGUAGE_NONE,
);

node_object_prepare($node);

$form = drupal_get_form($type . '_node_form', $node);

$commands = array();
$commands[] = ajax_command_html('#form-area-wrapper', render($form));

$page = array(
'#type' => 'ajax',
'#commands' => $commands,
);
ajax_deliver($page);
}
}

function MY_MODULE_form_MY_CUSTOM_NODE_TYPE_node_form_alter(&$form, &$form_state, $form_id) {
form_load_include($form_state, 'inc', 'node', 'node.pages');

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x