Pixture Reloaded Subtheme won't use Color scheme changes

I created a subtheme of pixture reloaded. Copied the color, and images folders. Also copied the theme-settings.php file and replaced pixture_reloaded with pixture_subbed. I created a pixtured_subbed.info file, and a styles.css file. I copied most of the .info file from pixture_reloaded.info. I added my styles.css file, and commented out the other css files listed. So my directory looks like this:

-pixture_subbed
--color
--images
--pixture_subbed.info
--styles.css
--theme-settings.php

Date fields in Drupal 7 Pathauto

I believe that in Drupal 6, it was possible to configure Pathauto to generate URLs like /events/2010-11-19/node_title by using date CCK fields within the node, but I can't find out if it is possible in Drupal 7. There are no suitable replacement patterns recorded in the URL Aliases administration menu and I can't find an alternative list of tokens. Does the Date API provide them, and is there documentation? I recall seeing some discussion of this, but I can't find it now.

Getting the $node->nid after using node_save in code.

Working on a convertor from phpBB3 to D7, but having some issues saving a new node from code.

Basically i do something like this

  $object = new stdClass();
  $object->title     = phpbb_ConvertToUTF8($topic->topic_title);
... some more things get filled
$object->is_new = TRUE;
$node = node_save($object);

After inserting I do need the nid from the newly created node, however both $object and $node do not have it set?

Front Page Panel Error

Hello.
I update web content, i occasionally use html. (ie - i lack a lot of the lingo and expertise to resolve my problem - help!)
On our website www.mistngo.org --- i am having trouble saving/uploading content.
i.e. front page> panel content> columns> add content

Using the Field API with custom SQL

I have a drupal 6 module (Fantasy Formula 1) that I want to upgrade to drupal 7. The module creates and manages 4 content types, as well as storing additional data in custom tables. The 6.x module does not use CCK or Views at all. It imports results information, aligns that with the 4 content types, then uses custom SQL to populate custom tables with results and score information. As part of the 7.x upgrade, I'd like to start using the new Field API, which is the basis for my question:

pcntl_fork and database

I have to download a couple of files on every cron run and I don't want to hang all the downloads just because one download is taking too long.

So I thought of forking a few processes to handle this stuff.

This leads to two problems:

  • cron has to be run from commandline
    • /scripts/drupal.sh http:///cron.php?cron_key= takes care of that
  • children get the database connection of their parents and close it on exit. So I get a couple of errors of a mysql server that has gone away. I think that's what normally is referred too as race condition.
    • What I'm doing now is close the connection just before forking a new process. So as far as I can see, parent and child open a new connection and don't share resources
    • I also thought of making database connections persistent. This would reduce the cost of connection overhead but lead to the risk of more race conditions which would have to be handled by the database driver and therefore lead to the need to write a new database driver.
    • What also could be done is to use a command like exec or proc_open to run another process. But like that I'd have either to run a self-written script which handles database and therefore lack all the cool stuff drupal core offers or run a new drupal instance and have the whole drupal-overhead again.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x