drupal

Determine locations mentioned in shortish (500 to 1000 words) piece of text using PHP

I'd like to find a way to take a piece of user supplied text and determine what addresses on the map are mentioned within the text. I'd be happy to use a free web service if it exists or use a script which will not consume too many resources. One way I can imagine doing this is taking a gigantic database of addressing and searching for...

hook_theme() affects display order of a node

Hi I have a node with many CCK fields. I want to hide a field from anonymous user. I found there are roughly two approaches from http://www.lullabot.com/articles/modifying-forms-5-and-6. First, I tried theme_theme() with the code below function ssaa_theme1(&$existing, $type, $theme, $path) { return array( 'volunteer_node_fo...

Drupal - Getting node id from view to customise link in block

How can I build a block in Drupal which is able to show the node ID of the view page the block is currently sitting on? I'm using views to build a large chunk of my site, but I need to be able to make "intelligent" blocks in PHP mode which will have dynamic content depending on what the view is displaying. How can I find the $nid which...

Granting a Drupal role to all users that have a certain role

I need to automatically apply a role, Role X, to all Drupal users that have been granted a separate role, Role Y. In other words, I wish for Role X to be a subset of Role Y. How can I do this? ...

Drupal 6/jQuery Ajax update a field

I'm on a different path on the same site, and I need to allow the user to change the contents of a field on a node s/he wrote in a different location. I have the nodeid and the field name, and ids, etc np. I don't believe this is too difficult, but a tutorial or an explanation would be wonderful. Thanks. Edit: Thank you anschauung for...

Upgrades to Drupal in production

Does anyone have a good Drupal upgrade strategy for an install that is in production? No one talks about this in books and it's hard to find a definitive answer in forums and email lists. Ex: Lock down prod, don't allow updates to data copy prod copy prod database to dev turn off all modules in dev upgrade core Drupal in dev (update ...

can any one tell about indexing in solr ?

I am just a learner in Drupal, Solr so can any one guide me how to implement indexing and how it is being updated in solr indexing whenever any updates being happened in Database so that in searching to get the recently posted also. ...

Add products to UberCart Cart with Javascript

Drupal's UberCart is a solution, where you select some product manually and then click "Add to Cart" button. But here goal is a bit different, I may have a custom javascript where user plays with catalog and attributes and selects product with properties in this window. What would be the technological path to return selected products wi...

Theming Drupal book hierarchies

I'm just getting round to converting our static HTML website to Drupal. Our website is currently structured into sections, each section having a header, then a list of sub-sections below (for an example see http://www.eurosafeuk.co.uk/services/). This ties in very nicely with Drupal's "book" module, but I need to customise the display o...

eCommerce Drupal

I want to sell eBooks on one of my websites. I want to know which module is best and simplest for this purpose. I am confused between Ubercart and eCommerce module Simplicity is the major concern for me. Please Help me out. Thanks in advance. ...

Will memcache help with expensive MySQL queries? (Drupal site)

Hello all, this is a simple question. There are some queries on our site that take too many seconds to complete (like 15 seconds!). For anonymous traffic they get a cached .html file, but for logged in users it's too slow. The query looks like this: SELECT node.nid, votingapi_cache_vote_percent_average.value AS votingapi_cache_vote_...

Two different Drupal installations on the same domain using OpenId

I have two different installations on the same server that I plan to use with OpenId. If my user connects in one site using his openid, will he be asked to login again in the other installation or will the system find the cookie? ...

I want to create blog posts to drupal by sending messages through Outlook. Ideas??

I think for two options, either to send messages to Drupal with SOAP or XML-RPC or by sending e-mail. ...

How do you set "max_allowed_packet" in XAMPP?

I've changed it in xampp/mysql/bin/my.ini and still, the effect does not show after restarting MySQL. If I run the following command, it works: mysql --max_allowed_packet=512M -u root < .\db\dropUser.sql But, when I browse pages with Drupal, my limit is back to 1Mb, despite the fact that my my.ini file has the value 512 in it. ...

Integrating Drupal + Moodle + MediaWiki with OpenID

I'd like to be able to use these "best of breed" opensource solutions, with the only requirement of some sort of single-sign-on between the different sites. I don't want my users having to log-in in 3 different places, so I though it could be possible with OpenId. Has anyone tried something similar? ...

Add Logic to 'Promoted to front page' feature in Drupal 6

I am trying to add some additional logic to the 'Promoted to front page' feature in Drupal 6. That is, rather than the boolean behavior there by default, I would like to add additional criteria that a node must meet before appearing on the home page. Specifically, I don't want past events (as determined by a CCK Date field) appearing on...

Getting strange characters in text in Drupal...probably encoding issues, but how to solve

Good day. In my Drupal site, strange characters appear in text. Like, instead of what I expect "ideéenbus" I get De ide�enbus (I hope this comes out right here) Now this has to do with a character encoding issue somewhere. But, how can I set this in Drupal? Or is it something that needs to be set on the database instead? Hope someone ...

Drupal Custom Node Form

I want to create an input form for registered user, separated from admin's content creation form. Each submission will create multiple node. To illustrate the case, I will use content type Project, and Review. Project: Title, Description, Owner, Rating. Review: Title, Reviewer, Project, Difficulty I have setup the content types along...

Has anyone checked out Drupal 7?

Has anyone checked out a copy of Drupal 7 yet? What do people think? I'm pretty excited about the PDO and all of the designers I work with a very excited about the new admin interface/structure. Do we have any Drupal core developers here on Stack Overflow? ...

Term for rotating header

Hi, I'm looking for terminology that describes this behavior: The header of a web-page contains a different image every time you visit it. Update: It is not an advertisement, but images related to the subject of the site. E.g. An imaginary site for a bakery would show, next to the logo, randomly a picture of the front of the shop a...