drupal

php Access violation

I am trying to install Php on Vista (IIS 7). The installation and configuration seems to be fine. Pretty much followed everything mentioned in http://blogs.iis.net/bills/archive/2006/09/19/How-to-install-PHP-on-IIS7-_2800_RC1_2900_.aspx I can even bring up a test.php which is basically and can also connect to mysql db through code. But...

Is it possible to deploy an already built Drupal site?

Hi, I'm a Drupal newbie. Is it possible to set up everything and deploy Drupal on the server? I mean things like putting in the content, setting up the modules, etc..., then you put it all up to the production server? Thanks in advance! ...

Drupal CSS URL Problem

Hi, I've just got a fresh Drupal 6 install. The css didn't work. Then I realised that a "?U" was appended, and Drupal couldn't find it. Does anyone know where to unset this? <link type="text/css" rel="stylesheet" media="all" href="/modules/node/node.css?U" /> <link type="text/css" rel="stylesheet" media="all" href="/modules/system/...

How do you make php's json_decode compatible with firefox's javascript?

it appears if you have something like var my_var = {"foo" : "bar"}; in javascript (with firefox at least) and post it to a php server you will receive a string like {foo:"bar",} on the server side. But json_decode in php doesn't like the trailing ',' or the lack or quotes around 'foo'. Is there a nice way to clean up the received...

Batch node operations in Drupal 5

What is the most efficient way to go through and update every single node in a drupal site, to, for instance mechanically add tags? Drupal 6 has a shiny new batch API, but what to do in Drupal 5? I started writing a script that keeps a pointer and then goes around all nodes on a cron, loads them and then saves them, but I wonder what el...

Is a custom module the best way to access an external API in Drupal?

I'm new to extending Drupal, though I've done similar kinds of things for other CMSes. Anyone care to share opinions on the best way to access an external API from within Drupal? I need to show things like search results, listings, and listing summaries. In my reading up on Drupal, I think this implies I need to create both "nodes" and ...

Good drupal books/resources for programmers/developers?

I am starting the website development process for a local charity organization and am looking to house the website within a Drupal infrastructure. I am familiar with how to theme things for these kind of CMSs, so that is not at issue. I am, however, looking for a good print (or e-book) resource on how to use drupal to its best advantage...

Preview theme in drupal

I am using drupal for the first time. I have successfully developed my first drupal website to a certain extent. I have used my own custom theme for the front-end and blue marine theme for administrator. Now my client's requirement is that when he clicks on preview button before submitting the page in admin panel, he wants to see the pre...

How to port from Drupal to Django?

What would be the best way to port an existing Drupal site to a Django application? I have around 500 pages (mostly books module) and around 50 blog posts. I'm not using any 3rd party modules. I would like to keep the current URLS (for SEO purposes) and migrate database to Django. I will create a simple blog application, so migrating blo...

Using PHP to Access a User's Webcam

I'd like to allow users to record videos directly from their webcam. I haven't done much work with PHP but am stuck with it for this project. We currently have a system in place for video uploading and encoding, but nothing to actually access a user's webcam. How would you recommend I proceed? ...

How do I add a form to a view with drupal 6.x views 2?

I want to add a drupal form to the top of a view. The view does not need to receive the results of the form but the _submit hook of the form should be able to read the first argument of the view that the form was on. Where is the best place to add this? Custom module or template file and what are the necessary filenames/hooks? ...

How to create a custom filter for the Drupal View's Module?

I have the Profile, CCK, and Views2 modules installed on a Drupal 6 site. I added a string field to the user profile. I can filter easily on preset values, thru the Views GUI builder, really nicely. However, I'd like the filter criteria to be dynamically set based on other environment variables (namely the $_SERVER['SERVER_NAME']). I...

displaying a Drupal view without a page template around it

I would like to display a Drupal view without the page template that normally surrounds it - I want just the plain HTML content of the view's nodes. This view would be included in another, non-Drupal site. I expect to have to do this with a number of views, so a solution that lets me set these up rapidly and easily would be the best - ...

Would you recommend using buddypress to build a scalable community?

There are tons of platforms for building communities, i have been searching all around and i think the best would be to go with an open source platform, i am evaluating buddypress new community module by automatic the guys behind wordpress,it seems pretty solid, i tried also Drupal but i see it is very complicated. What would you recom...

How should I treat strings of digits in XML::RPC and Drupal?

I am trying to use an XML-RPC server on my Drupal (PHP) backend to make it easier for my Perl backend to talk to it. However, I've run into an issue and I'm not sure which parts, if any, are bugs. Essentially, some of the variables I need to pass to Drupal are strings that sometimes are strings full of numbers and the Drupal XML-RPC se...

How do I theme Form API buttons in Drupal?

The default output from Drupal's Form API is: <input id="edit-submit" class="form-submit" type="submit" value="Save" name="op"/> How do I theme that so I get: <button id="edit-submit" class="form-submit" type="submit"> <span>Save</span> </button> I need the inner span-tag so I can use the sliding doors CSS technique. I guess I n...

Can CCK take care of my fields for a programatically defined node type in drupal?

Does the CCK api allow me to create a node type, from a custom module, with a bunch of fields that use CCK to store their state? If so can these fields be locked so that users may not alter them, but still allow the user to add more fields to the node type? Thanks ...

how to log in a Drupal user (or get currently-logged in user) from Flex/Flash?

I have a Flash application that is hosted from within a Drupal page. Some parts of the Flash application should be available to all users, but some should only be available to a logged-in user. (The specific role doesn't matter, just that they are any authorized user of the site). From within Flash, I can detect whether the user is lo...

Drupal Source Control Strategy?

In standard php or source code based projects we easily keep all of the code in SVN and each developer can checkout their own copy and collaborate on the same code. When developing a Drupal site however, much of the work is in "setup". Besides the theme and modules you don't really have any "source code". How do you run multiple ins...

Modifying WordPress's "post-new.php" File for Custom Blog Entries

Has anyone ever modified the "post-new.php" file in their WordPress installation? I want to modify the look of this page to include pieces that I standardly include in my blog posts, and I just don't know if it is do-able/easy/worth my time. Should I just find another CMS that allows more modifcation like Drupal? ...