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

Module works (partially) in a particular folder but no where else...

Hi
Using 4.7b4

I started off making a copy of the dashboard module just because it's short and simple and using a bit of the how to create a simple module tutorial.....

Now the module (lag) half works in the <>/module/dashboard folder - that is it appears on the create content page, but not in the create content menu....

However when i move it to the <>/module or it's own folder, it doesn't show up in either the create content menu or on the create content page...

Here's the module code in case you care to look.

File system plugin?

Are there any filesystem modules available in Drupal? I mean, some module so I can edit core Drupal files through web-interface.

Is it possible to use externally hosted banners

I am using the banner maodule and was wondering if anyone had successfully used banners from an external site (ie full urls instead of hosting the banners myself)?

The reason is that some affiliate banners i use will change according to their latest offers, and get tracked on the affiliate site...and as such they need to remotely hosted, not uploaded to my drupal site.

Any ideas?

When I use aggregator, error happens.

When I use aggregator, to get rss I get error.
I guess it is a problem of encoding. So I tried to modify the problem. But I couldn't.
The aggregator and xml parser seem to programed well.

When I get rss from here
http://www.hanbitbook.co.kr/sync/rss_network.xml
I got error. It is written Korea and euc_kr encoding.

Is there any solution? I tried to find same problem in this site. But it seems that there is no article.

These are parts of error messages.

warning: input conversion failed due to input error in /home/nikescar/public_html/dp/modules/aggregator.module on line 464.
warning: Bytes: 0xEC 0x9D 0x98 0x20 in /home/nikescar/public_html/dp/modules/aggregator.module on line 464.
warning: input conversion failed due to input error in /home/nikescar/public_html/dp/modules/aggregator.module on line 464.
warning: Bytes: 0xEC 0x9D 0x98 0x20 in /home/nikescar/public_html/dp/modules/aggregator.module on line 464.
warning: input conversion failed due to input error in /home/nikescar/public_html/dp/modules/aggregator.module on line 464.
warning: Bytes: 0xEC 0x9D 0x98 0x20 in /home/nikescar/public_html/dp/modules/aggregator.module on line 464.
warning: input conversion failed due to input error in /home/nikescar/public_html/dp/modules/aggregator.module on line 464.
warning: Bytes: 0xEC 0x9D 0x98 0x20 in /home/nikescar/public_html/dp/modules/aggregator.module on line 464.

Asked and answered: altering autocomplete forms with javascript after they're rendered

[This took me a while to figure out, so I'm offering it as a tip for future reference. If someone has any suggestions to alter this node title to make it more findable in search, please suggest away and I'll edit it.]

Scenario:

Let's take the one I'm working on as our example because it's easier to explain. http://dev.vocalvoter.com

I have a search form which looks up street addresses for anywhere in the country. In order to help get a perfect DB match, the 'street' field autocompletes.

However, as we add more and more counties to the database, especially in a country like Ireland, the autocomplete results get progressively less useful. For example, you may find a 'St Patrick's Street' in almost every medium-sized town in Ireland, but you probably won't find more than ten in any given county.

So I altered the autocomplete handler. It takes a first argument - the numeric ID of a county - and now returns only search queries from within that area.

Altering the form with Javascript

Next we change the output of the form_api renderer. I add a <select> box containing the names and IDs of the counties (which are held in an array called $counties), and attach an onChange attribute to the field. That onChange alters the value of the hidden field called 'edit-search-autocomplete', which holds the autocomplete URL path for this form. Critically, I need to refer to both these fields by new JS variables, because Drupal's form element IDs contain dashes and in javascript that's problematic because it's a 'minus' operator. Adding the Javascript handler looks like this:

creating (multiple) nodes without using _form hook

Hi,

Asked this in a more complicated way earlier, but figured might be better to ask more clearly...hope it's not construed as spammin!

I wish to create a module (based on book mabye) which, when you create content using it, has the ability to parse the (text area) form text, and based on how it interprets it, creates multiple nodes (in this case, lets say as a new book, with hierarchy, etc defined with some sort of regular expression type thing, used within the form text)

eg, in the form text I might have something like this:

Pages

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