Insert a costum computed field into a view using hooks

Hello,

I have to insert a custom field in a view at a specific position (right next to a specific field).
This custom field has its value calculated from another field, not from a database table.

I need to do that by hooks.

How could i do?

I'm using Drupal 6.

changing text alignment and/or block size

Hi,
can someone tell me how can i change the text alignment or the block size on my homepage: www.ulpanet.com

the "read more" link is out of the block, and i would like to align the text a bit higher.

The site is currently not available due to technical problems.

I get the following messages on my Drupal websites:

The site is currently not available due to technical problems. Please try again later. Thank you for your understanding.
If you are the maintainer of this site, please check your database settings in the settings.php file and ensure that your hosting provider's database server is running. For more help, see the handbook, or contact your hosting provider.

Add multiple items to cart - Ubercart 2.0

How can add multiple items in cart, through checkbox selection of product and attributes too.

I got code from some where but nothing changes reflected. i have also tried module uc_multibuy.

code is here.
$form = drupal_get_form('multi_add_form');

function multi_add_form() {
$form = array();

// Make the products array in the form a tree.
$form['products'] = array(
'#tree' => TRUE,
);

// Use an array of product nids to build the form.
$nids = array(1, 2);

// Add a quantity field for each product. from 0 to 10
foreach ($nids as $nid) {
$node = node_load($nid);

$x = 0;
$options = array();
while ($x <= 10) {
$options[$x] = $x;
$x++;
}

$form['products'][$nid]['qty'] = array(
'#type' => 'select',
'#options' => $options,
'#title' => t('Amount'),
'#default_value' => 0,
);
}

// Add an add to cart button.
$form['add_to_cart'] = array(
'#type' => 'submit',
'#value' => t('Add to cart'),
);

return $form;
}

function multi_add_form_submit($form, &$form_state) {
// Loop through the products array.
foreach ($form_state['values']['products'] as $key => $value) {
// The key is the product nid, the value holds the qty.
if ($value['qty'] > 0) {
// Add the item to the cart if the quantity was increased.

Creating a semi-private site

I have several Drupal/Ubercart sites, but I'm not that knowledgable about what I can do. I need to create a new site for a customer that provides details about online courses, and Ubercart installed for handling registration. Final registration will be done by a phone call after the order has been placed.

Customers will be members of certain organizations and they will be made aware of the site by ads, and I want to prevent or minimize public access from anyone else.

Volunteer in Indonesia, Live for Free

Fellow Drupal-ites,

I run a social impact organizations that helps people find the best place to donate their expertise overseas.

We have a REALLY cool opportunity in Indonesia and are looking for a drupal developer. If you want to donate your expertise while you travel, the hosting organization is willing to cover your travel and living expenses while there.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x