Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
-I'd like to set up a block that displayed the top ten referrers to my site; can anyone recommend a starting place for something like this? Any guidance you can offer would be most welcome.
I just wrote a module that let's me put and present points on geographic (or any other) maps. For the luck of a better name, it's called "geourl", and a demonstration can be seen on my home page: http://www.havlik.org/geourl/maps/AT
The module is really at "quick & dirty" stage now, but it works for me. Question: is anyone else interested in this kind of stuff?
How can i use the '%' multiple character wildcard in a query when the '%' is used to specify the arguments in that query ?
If I use it, it casts the error of too few args for the sprintf in db_query().
Replacing the '%' with the right number of its single character equivalent '_' does the job for my case.
But someday someone (me?) will need multiple character wildcard in his queries.
i'm trying to learn how to write a drupal module, that puts a block at the side. i read the "Creating modules: post 4.3.1" in the module developer's guide and tried to do the same. i can select the module in the modules section, but the block does not appear in the blocks section and i also can not see any permission. this is even if i copy and paste the onthisdate module from the module developer's guide.
I'm attempting to write an MP3 field type for the flexinode module. It is my first real forray into Drupal as a programmer, and I am already in need of guidance.
The field is an extended version of field_file.inc which does the following:
1 - accepts only a restricted set of filetypes (.mp3 and possibly other music formats)
2 - reads and stores metadata contained in the MP3
3 - creates an m3u file and tracks its location
4 - displays links to both the mp3 (for download) and the m3u (for streaming).