Module development
Module development forum guidelines
The module development forum was created to aid those who are developing modules for Drupal. This forum is not for "Is there a module that does..." questions. Please respect this.
If you you have drupal installed already and are seeking a module that does a specific task, have a question about a specific module and what it does or if it will fit your use case, please place your questions in the Post installation forum.
If you don't have drupal installed yet, please place your questions in the Before you start forum.
Thank you in advance for your co-operation.
Address validation API fedex
Hi,
I had download the .wsdl and sample code from FedEx.
I have created a form which validates given address(partial implementation of Create Shipment Label)
When i submit the form and send a SOAP request to fedex am getting the error.
"ERROR
prof
1000
Authentication Failed".
Though 'Track By Tracking Number' feature working fine for me, which means i have correct account credentials.
Please advice me.
Requesting creation of Drupal user/dev group for Studio Multimedia France 24 / RFI open source modules for the france24.com site
Requesting the creation of a user/developer group for the fantastic Studio Multimedia France 24 / RFI pen source modules for the france24.com site.
I have some unanswered questions below which I would invite people to give thoughts on as I will ALSO TRY to ANSWER them MYSELF as I experiment with these modules.
Is anyone actually using them?
Now what? :-
How do you get started with them? I've uploaded and installed all of them to my development site but now what?
How do I actually use these modules, maybe create new content using CCK?
How do I define page layouts and a facility for uploading content to them? For example,
Front page, article page, photo galleries etc.
I want to categorise my content, using taxonomy and list articles in a category in various boxes, e.g. entertainment, arts, history etc. I might want to make the listing of one box be conditional on the other, for example if an article is listed in latest, then it is not also repeated in the category boxes.
I want to know how and where to place items on a page, using panels, views, etc.
Creating a module to display country,state and city
Hello,
I am trying to create a small module where i have listed all the country names in a select box, while selecting the country all the states belongs to that country lists in the second drop down. I have to display the city name belongs to the state belongs on the second drop down then the latitude and longitude on select of the city. I have used ahah method to list the second dropdown(state names). Can anyone please help me out how to list the city names on select of state name?
Thanks
Himangshu
Where are fields mapped to nodes
Where in the drpal Database are fields mapped to specific node types - in particular with the CCK module. I have looked at the content_node_field which contains a list of all the fields but there appears to be no mapping to the actual content types.
I basically need to know which fields a content type uses.
Does anyone know how to get this information?
Using pager_query for external database access
Hello,
I am trying to return a paged database table from a query to an external database. I can return a table fine without paging but my paging code gives me the following error:
"user warning: Table 'db30832_stats.SymbolHeaderTable' doesn't exist query: SELECT COUNT(*) FROM SymbolHeaderTable in .... html/includes/common.inc(1695) "
Any ideas on fixing the problem? I presume it has something to do with the pager's COUNT SQL trying to access an external database. My code is below (connection code omitted):
// Create table header
$head = array(
array('data' => t('Symbol'), 'field' => 'symbol', 'sort' => 'asc'),
array('data' => t('SymbolDescription'), 'field' => 'symboldescription'),
);
// Connect to database and query data
mysql_select_db($database_test_conn, $test_conn);
$query = "SELECT * FROM SymbolHeaderTable " . tablesort_sql($head);
$count_query = "Select Count(*) as Count1 From SymbolHeaderTable";
$limit = 10;
$res = pager_query($query, $limit, $element = 0, $count_query);
// Output data to table
while ($obj= mysql_fetch_object($res)) {
$rows[] = array(
array('data' => $obj->Symbol ),
array('data' => $obj->SymbolName ),
);
}
//return theme_table($head, $rows);
$output = theme('table',$head,$data);
$output .= theme('pager', NULL, $limit, 0);
print theme('page', $output);