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

Wanting to learn more about Drupal hacking

I want to learn more about Drupal hacking. One of my big limitations is that I don't know MYSQL. Here's what I was thinking, if I could output the sql querry code that a module uses to generate a page, I could start to study that code and learn how it works. Is there any built in debuging functions that do this?

Ajax Slider - Forms Question

Created a new form element to use a slider control, using the s/p ajax module + scriptaculous library. Works beautifully, however I'm not getting a return value back that is storable. Anyone who has created a new form element able to shed some light on this for me?

<?php
/**
* Custom form element to do an ajax slider
*/

function testimonials_elements() {
$vals = array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20);
$options1 = array(
'#range' => '$R(0,20)',
'#minimum' => 0,
'#maximum' => 20,
'#increment' => 1,
'#values' => $vals,
'#onSlide' => "function(v){\$('debug1').innerHTML='slide: '+v; $('barreSortie4').style.width=(v*3)+'px';}",
'#onChange' => "function(v){\$('debug1').innerHTML='changed! '+v}",
);

$type['sliderA'] = array('#input' => TRUE, '#process' => spajax_slider('handle1', 'track1', $options1));
return $type;
}

function theme_sliderA($element) {
//see CSS for style defs for track1, handle1, debug1
$output = '

'.$element['#title'].'

';
$output .= '

';
$output .= '

';
return $output;
}

... in hook_form()

//slider control for form
$form['review']['satisfaction'] = array(
'#type' => 'sliderA',
'#title' => t('Overall satisfaction with your results'),
'#default_value' => $node->satisfaction,
);

woohoo! a new forum add-on for Drupal...

hi guys,

anyone tried the new FUDForum add on module by naudjf for Drupal?

http://drupal.org/node/67177

Just spotted it.

Phil

Bookmark module with a dhtml library

Hello,

I wanted a user-friendly bookmarking system in combination with drupal authentication and I had some fun with Ajax en passant.
And I absolutely wanted to have drag and drop one way or another so that's why I used an external JS lib. :-)

Take a look:
http://www.spiff.be/?q=node/5858

Just so anyone asks why I did not theme it: just wanted to have a small window with nothing but a tree in it.

Request: Open Source Polling module

Not entirely sure if this is kosher, but I have a request for a module which I think fits perfectly within the realm of what Drupal is intended to be. A post was made on DailyKos today regarding the concept of open source polling and how it could be used to bolster Howard Dean's fifty state strategy for rebuilding a Democratic majority. The basic problem is that polling, while an integral part of any campaign, remains prohibitively expensive and innaccessible to most smaller campaigns, particularly on the local level. The solution suggested is for an open source approach to polling, with a standard survey template with questions to be asked by volunteer pollsters. A detailed description of such a project can be found here:

http://www.dailykos.com/story/2006/5/27/152041/866

It should be possible to write a module for Drupal which could take a list of phone numbers as a CSV file and allow multiple users to make calls from the list. It would present the list of questions as a form, with the number to call displayed at the top. The bottom of the form would have two submit buttons, "Save and get next number" and "Save and exit." It'd then store the results in a table in the database for tabulation and either grab the next number or exit as directed.

User can not see any page of my site only some page DRUPAL have given

I encounter a big problem with my site ,User can not see any page of my site only some page DRUPAL have given,you can go here to see what happened, " www.english-teachers.net " .when i login with my administrator account ,it show correctly,why?And when i go to the module section in my admin area,i encounter the error :"
Fatal error: Cannot redeclare blog_node_name() (previously declared in /home/user/public_html/modules/blog.module:12) in /home/user/public_html/modules/evaluation/patched_files/blog.module on line 12 "

Pages

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