Is it possible to use a subdomain to upgrade a drupal site?

I have a Drupal 6 site - example.com

Is it possible to install Drupal 7 on a subdomain - subdomain.example.com - for the purpose of migrating the site in parts?

using $base_url and $THEME_ARRAY together...

I have this in settings.php:

$THEME_URLS = array(
array('/optoelectronics','sky'),
);
foreach ( $THEME_URLS as $info)
        if ( strpos($_SERVER['REQUEST_URI'],$info[0])===0)
                $conf['theme_default'] = $info[1];

but, I have two domains each based on a different theme. The issue is that I'm trying to use part of the old theme for just these two sections but the other theme is entirely based on SKY and if I make any modifications to the css or create a page-optoelectronics.tpl.php, then both sites receive the modifications, which I don't want.

So I duped the theme "sky" and changed all appropriate names and such to 'optotemp' but as I mention above, Drupal still disregards the "http://www.site.com" part and switches to 'optotemp' when it sees /optoelectronics.

So I found $base_url which returns the full path, including the host.

I'm a little rusty with the combination of an if/else command and including the array above in one fell swoop.

I want to say:

If the absolute path is http://www.sitea.com/optoelectronics use theme optotemp. Otherwise use the default theme. This command would then mean by default that http://www.siteB.com/optoelectronics would still use the theme assigned to that domain via the domain access module, which is Sky.

Convert date serialize? add to profile

Hi All
using module rules custom php im trying to update a profile field

$date = strtotime(+1 year);

#this is my code and i know it is very wrong :)
$edit2 = serialize(array($date));
$edit = array( 'profile_member_expiry' => $edit2 );
profile_save_profile($edit, $account, "Personal information");

mycode results
s:37:"a:1:{i:0;s:19:"2014-05-20 10:10:01";}";

what it should look like
a:3:{s:3:"day";s:2:"19";s:5:"month";s:1:"5";s:4:"year";s:4:"2014";}

Post head changed for me

hi
before in my web the node's post head was some thing like " Mon, 03/20/2013 - 02:40 — admin "
and now I have it like " Submitted by admin on Wed, 05/15/2013 - 02:01"

how can I change the post head like it was before " Mon, 03/20/2013 - 02:40 — admin "
I don't want to use any module i want to know why is changed like that.

Using SWFUpload with IE8

I'am just a user of drupal for our club-site an find following problem using it with internet explorer (IE8).

When I try to add a Photo to an existing Photo-block the internet explorer blocks the download of some file. The upload of more than one picture is not possible. Untill now I always used Firefox without problems. But I have given permission to other people to upload photo's using their own internet browser.
some versions: Image FUpload 6.x-3.0-rc2 , SWFUpload v2.2.0.1 Core

What can I do?

Upgrading multisite from D6 to D7

Hi there,

I've just been upgrading a D6 to D7 multisite installation.

I've had NO problem to upgrade the default site and a second one but when I get to the third one I get this errors on the first step of the update page ...

Warning: Cannot modify header information - headers already sent by (output started at /home/manoloka/public_html/sites/finestraobertalestacio.com/settings.php:261) in drupal_send_headers() (line 1216 of /home/manoloka/public_html/includes/bootstrap.inc).
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/manoloka/public_html/sites/finestraobertalestacio.com/settings.php:277) in drupal_session_start() (line 287 of /home/manoloka/public_html/includes/session.inc).
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/manoloka/public_html/sites/finestraobertalestacio.com/settings.php:277) in drupal_session_start() (line 287 of /home/manoloka/public_html/includes/session.inc).
Warning: Cannot modify header information - headers already sent by (output started at /home/manoloka/public_html/sites/finestraobertalestacio.com/settings.php:277) in install_goto() (line 1023 of /home/manoloka/public_html/includes/install.inc).

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x