Programming

Disable horizontal bar in IE

Ive been working on a friend's website. So from the psd file I created an html template from it. Afterwards he told me that there is a horizontal scrollbar when the resolution is low. First I tried changing the layout but i just cant get rid of it even though all the contents are in the screen, then I tried putting a CSS code

                 .html, body {
                 overflow-x: hidden;
                 }

And the scrollbar is gone.

Programatically adding a Drupal 6 Node

Creating a drupal node programatically varies upon the setting of your drupal installation. Here is the basic way of creating a node via a script in Drupal 6.

			$node = (object) NULL;
			$node->type = '$NODE_TYPE'; // your node type
			$node->uid = '1'; // ID of the user
			$node->created=time();  // current time
			$node->body = $TEXT; // CONTENT	
			$node->title = $TITLE; // Title of the node			
			
			$node = node_submit($node);
			node_save($node);

Now lets define each line one by one

Syndicate content