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

How to move the "/admin" tree to a different location

I'm hosting a couple of Drupal sites with an ISP that virtual hosts with Apache 1.3, and uses a configuration where any URL for a domain that starts with /admin gets shunted to their configuration interface long before Drupal will see it. This is making it a little hard to configure Drupal.

picture/avatar conflicts with poll node layout

I have upgraded from 4.4.1 to 4.5.2 and my theme from an old xtemplate design to a variation of the pushbutton xtemplate design. I am now having problems with the black bar that counts votes being offset and displayed below the avatar/picture. The gray bar runs behind the picture/avatar, but the black bar is placed below it. This is an issue because the black bar displaying the votes for option 1 appears to be displaying the results of option 2. I did not change the xtemplate engine or .xtmpl file to create this problem, nor have I edied the poll.module file.

Captcha module patch, to support those with textish browsers

This is a patch I made for the captcha module.

Since the captcha can only be read using graphical browsers, I thought of this idea to enable users with textish browsers to read the captcha code too.

It's not secure though.
Since the captcha code gets printed in a HTML tag (that's how textish browsers can read it), a script can read the code and bypass your captcha protection.
I don't recommend applying the patch if you are going to use captcha in anything other than fighting spam comments :).

- Amr

trying to develop a link manager module

I've been fighting with this off and on for a while now. I've looked through the existing modules, and none of them seem to fit my needs, so I started developing my own (which I plan to submit as a module once finished).

I need to automate the addition of user-submitted external links to a database. Essentially, I have 4 or 5 types initially, but it could be extended later. (For an example of what the base content looks like, please view: http://www.industrialnation.com/Bands/a.shtml )

weather.module hacked to use rssweather.com

As a great fan of the weather module, I was sad to see it continually fail as weatherroom.com failed...

I have updated the module code to use rssweather.com.

Someone with greater xml parsing skills may be able to do a more beautiful job.

Long live regular expressions!!

The main change between the two feeds, is that rssweather.com provides the data in a 'content:encoded' tag. I had to use regular expressions to extract the relevant information from the data as such:


case "CONTENT:ENCODED":
$stuff = preg_replace("/(.*)\

(.*)/i", "$1$2", $data);
while (preg_match("/(.*)\<[^>]+\>(.*)/i", $stuff)) {
$stuff = preg_replace("/(.*)\<[^>]+\>(.*)/i", "$1$2", $stuff);
}
if (strpos($data, "humidity")) {
$this->weather["humidity"] = $stuff;
} else if (strpos($data, "windspeed")) {
$this->weather["wind"] = $this->weather["wind"] . $stuff;
} else if (strpos($data, "winddir")) {
$this->weather["wind"] = $stuff . $this->weather["wind"];
} else if (strpos($data, "pressure")) {
$this->weather["barometer"] = $stuff;
} else if (strpos($data, "dewpoint")) {
$this->weather["dewpoint"] = $stuff;
} else if (strpos($data, "heatindex")) {

Extendable search module

I was wondering if it would be possible the create a search module that can be extended with 'plugins', to allow searches from other search-engines to be included in the results (Google, Yahoo, Phone directories, e-mail searchers, whois, ...)? The point would be to give visistors of a site the possibility to search for people on the internet, but still provide the flexibility to use the module as a simple search engine for either the site only, or the net.

Is it technicly possible?

Pages

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