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

upgrading my video modules

My site is currently under development (I hired a team from overseas)... the site is going well, however, I am not impressed with the 'media section'. The media section is broken into 3 categories - photo, video, music.

I want the videos on my site to have similar capabilities as youtube - specifically, I want the cover picture for the videos to be a snapshot of first frame of the video. As of now, members are required to assign "cover pictures" for videos.

Saving a file from a module settings form

Hi all, I'm new with Drupal development, and so far amazed with how easy is to hook up into Drupal's framework to build modules.

I'm trying to write a module to import a list of users to drupal (a CSV or XML file with some custom fields that will be mapped to custom profile fields), and trying to use this project to learn how to build modules.

I already built the skeleton of my module, made the form and added an input 'file' into the settings form. What I would like to do now is to save this file into the server, so then I can process it to create all the users. I cannot get where is there I can access the file data to save it.

Display the list of categories in the content area

I want to display the list of categories in the front page with number of items in each category.Pls help me my deadlines are very tight.

hook_form_alter is possibly the most powerful Drupal hacker's tool ever!

For those who have the time to study this code - both of you - check this out.

I wanted to use the nodereview module but I needed to make a few extensions and alterations to the functionality.

Without changing a line of code in the nodereview.module, I can get it to:
1) use the node->body to store info (in this case a description of the reviewer). I used the content types admin function to change the description of the body field, but I think i could have done it in hook_node_info
2) stop nodereview from allowing an admin to enable reviews of reviews (illogical and might loop?), and stop reviews of the new node type I introduced: axis
3) use a new data type of axis in an external table instead of defining them for each node type, so replace the selection list created by nodereview with a new one taken dfropm the external table

There is more code inthe nodereview2h module than just hook_form_alter, but you can see from this function just how much I have been able to override in nodereview! Stunning. Drupal Rocks!


function nodereview2h_form_alter($form_id, &$form) {
if ($form_id == 'nodereview_node_form') {
$node_info = node_get_types('type', 'nodereview');
$form['body'] = array(
'#type' => 'textarea',
'#title' => t($node_info->body_label),
'#default_value' => $form['#node']->body,
'#required' => TRUE,

Change default position of SimpleMenu in module SimpleMenu

I'm new to druapl and i see that SimpleMenu is very useful. However, i recognize that its position is not good. I want to put it under or inside the header of themes I choose. How can I do it ? Thanks for all your supporting.

Fill form fields from database: best way?

I have a number of text fields, each associated with a previous submission by a user. These previous submissions are listed in a set of radio button selections. I would like to fill out the text fields with the related information every time a user clicks on the radio button. What is the best way to do this? I'd like to avoid having a submission every time they user clicks a radio button. I don't know anything about Ajax, but it sounds like the right approach. Ideas?

Pages

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