Multiple domain names to same directory

I made a drupal site XYZ.com and ABC.com , I also have one lets say 123.com. I have XYZ and ABC pointed to the same database. The site looks ok until I start inputing picture, files, or a banner. XYZ.com looks into site/XZY.com files folder and ABC still looks into sites/ABC.com/ files folder. I know you can easily say..put files in both locations but this is tedious. I also have a third site 123.com thats totally different then the rest. The last bit of information might not be nessacary.

Drupal 7 how to edit main menu

In trying to rearrange my top horizontal main menu (Marinelli), moving "home" tab 1st in sequence.
I did something where I now have two home tabs.
I spent some time trying to delete the 2nd "home" tab and getting nowhere.
Any suggestions?

Null Values Not Inserted Into Database Using db_insert

I am having issues with adding null values to my database via db_insert.

Here is my insert code:

db_set_active('global');
db_insert('contact')->fields(array(
	'domain' => global_get_domain(),
	'name' => $form_state['values']['name'],
	'email' => $form_state['values']['email'],
	'phone' => $form_state['values']['phone'],
	'state' => $form_state['values']['state'],
	'amount' => $form_state['values']['amount'],
	'message' => $form_state['values']['message'],
	'uri' => $_SERVER['REQUEST_URI'],
	'referer' => $_SERVER['HTTP_REFERER'],
	'hostname' => $_SERVER['REMOTE_ADDR'],
	'timestamp' => time(),
))->execute();
db_set_active();

I am pulling values from my form, but if one of those values was not entered by the user it will not be inserted into my database using db_insert. For instance if $form_state['values']['state'] is null I will receive the error:

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'state' cannot be null: INSERT INTO {tools_contact} ...

If this variable has a value everything works correctly.

Locked myself out -- Admin password doesn't work: SOLVED

SOLUTION FOUND:

I searched more generally and found this
http://www.devdaily.com/drupal/drupal-cant-login-after-upgrade-update

I tried it and it worked.

777 on the Sites directory and cleared all cookies from the browser.

Seemed to work.
--------------------------------

Tried several things now as outlined below.

Using the D7 user hash function, and copying the resulting string into PHPMyAdmin. Used the function in a .php file

doteasy/basic + drupal 7

Hey everybody im currently attempting to get drupal running on my doteasy site. It is the basic package and it looks like if i buy a better package they have some automated way of getting most of the popular CMS's on your site. Ive tried Ftping the drupal 7 contents into my root folder but once I do that if I go to my .com and try to install it will always redirect to the doteasy homepage. Am I wasting my time and should just shell out the extra money or am I doing something wrong with the initial install??? thanks

Rating a single pages by multiple terms

Has anyone come across a Module that allows the rating of pages by multiple terms similar to the video rating on the TED site? Ie. rate this page from 1 to 3 on:

• Informative
• Inspiring
• Ingenious

Any help will appreciated and gratefully received.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x