I dropped my menu_links table...now what

Ok,

So I was having issues with my Primary menu items, so I thought that it might be a good idea to drop my menu_links table from the database.... and now everything is really screwed up.

I did all of this without a backup (groan.... I known....)

I manually recreated a menu_links table in mysql and added columns (based on another install) but things are really screwed up.

Is there a way to "re-create" the default menu tables again, or what is likely the best way forward?

any advice would be appreciated.

404 page not found, can't download files

Whenever I try to direct link to a file or a directory, I get the drupal 404 error. How can I enable direct linking? I can't upload some things via built in uploader because many are bigger than the max size of 7mb that my host allows through the uploader. I've been having to upload them via FTP to a different subdomain just so I can link them!

Storing new Field Type

I'm working on a site that allows clients to get wind measurement data.
Clients subscribe to towers. Each tower has a number of sensors (anemometers, wind vanes, etc) on it.
In this Drupal site, towers and sensors are new content types. Every sensor has a tower_id field (which is a node id) to identify which tower the sensor is on.

The goal is to have, on the "Add Content > Create Sensor" form, a
menu that allows the user to select which tower they want the sensor to be associated with.

I created a module for the new field type "towerfield," which gets all the towers that exist and allows the user to select one. Currently that menu displays perfectly fine.

The problem is that whenever I make a selection from this menu other that the default "- Select Tower -" (no value), I get the following SQL error:

Custom built pager not reloading my search results

I've built a custom search module to get an XML query from an external site. I have to build my own custom pager for it, cause the Drupal one doesn't support my external search. The external search works with a 'hits' and an 'offset' value to determine how many results and which 'page' of results to display. Ex: page one would be hits=10, offset=0, page two would be hits=10, offset=10, etc.

I set up my page to work with a URL like this: "/search/{query}/{pagenum}". I can easily make a link going to the next or previous page by adding or removing 1 from the pagenum in the URL.

Password Protect Directory and Contents

I am in the process of setting up a site that will have content such as music files and pictures avaialble for download. I want to protect the folder and contents with a password so as to limit unauthorized uses from gaining access.

Any suggestions on the best way? I was going to do it with the http server but I would think drupal has a method or the built in fuctionality already.

Thanks,

Displaying TXT file by jQuery

Hi everyone,
As mentionned in subject, I'm looking for displaying the content of a text file using jQuery.
I already have this js code :

jQuery(document).ready(function(){
        $.ajax({
        url : 'test.txt',
        success : function (data) {
                $("#contentArea").html(data);
                }
        });
}

but I don't know how displaying the file now.

Also, I have scripts[]=test.js in my .info, do I need also a drupal_add_js ?

Thank you.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x