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

Page_title module actually tells you the MySQL command to create a table but other modules like Ping does not

The readme.txt file for the Page_title module offers the actual syntax that needs to be executed in the PHPMyAdmin to add a new table to a database. But in other modules there is no help whatsoever in what to do. I have downloaded the Ping module but find no help at all in creating the tables in my database. Why is this?

FlickrStickr module is not functioning / feof(): supplied argument is not a valid

I installed and enabled FlickerStickr module however when I try inserting photos I get the following error.

feof(): supplied argument is not a valid stream resource in /my/var/www/html/modules/flickrstickr/flickrstickr.module on line 33.

Any commnets appreciated.

User Authentication - My own module vs. Drupal's built in system

I'm working on writing a simple module to authenticate users against an external source. I have a simple implementation of hook_auth working, but I'm trying to solve the following problem: When users are allowed to create account without administrator approval, everything works fine. However, if I try to create an account for them, my module seems to get bypassed.

4.6 code, 4.7 database. Damn you SQL! Argh!

Hi there.

I've upgraded to 4.7 and now all my custom php/sql code has stopped working.

Looking at how the Db format has changed [ much nicer ] I am not surprised.

Story bodies are now held in the node_revisions table so my previous code which had only to join the the {node} table to the {term_node} table (in order to retrieve bodies based on taxonomy classification) will now have to join with the {node_revisions} table too.

Originally my select statement was thus...

How to use autocomplete for an extra field

hello everybody

I would like to create a form to retrieve a postal code.
In this form there is 2 fields :
- CityName
- PostalCode

I made an autocomplete field for Cityname, and it works fine. My aim is to auto fill the PostalCode when the user pick up a cityname in the autocomplete cityname list. Any idea how to implement that ?

Thank you for any advice.

Nicolas

multiple calls to drupal_get_form

Hi,

I am trying to create a table that has a cell with a form element and a submit button in every row. SO my first thought was to just loop over my results from my database, inserting everything i want in the row and inserting the rendered form in the row. But apparantly, the drupal_get _form doesn't like this. It only returns a rendered form at the first loop iteration. I gueess this has something to do with the form id not being unique or stuff...

Does anybody know a way around this ? I could use custom html output i guess... . But I'd rather stick to the form API !

Pages

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