Drupal is up and running but how do I ...?

first list element themed differently

I want to obtain in a page a list of nodes like this...

**************************
******* first **************
**************************
______________________________________

------------- 2 ---------
----------- 3 -----------
------------ 4 ----------
------------ 5 ----------
---------- n ------------

the newest in the list is themed differently. Is there a way to obtain this without hard-coding modules and without using PHPsnippets? Better using theme-like solution!
Thanks!

How do I appropriately resubmit questions to these forums?

I have a few questions that I've asked that haven't gotten a response, which is totally understandable, but I need to figure out solutions to the problems ASAP. I was just curious if it's considered OK for me to resubmit these questions, since they are now long-since buried. I'm hesitant to, because I know sometimes forums have sensitive stantards of appropriateness (often a good thing!), and I'm not yet familiar enough with Drupal's forums to know in this case.

Also, if resubmitting wouldn't be a good idea, or if it yields no results, what's the next step in a difficult problem?

How to launch RSS feed within my website?

is it possible to launch a rss feed's link within my website instead of the original website?
For example: NHCR feed:

1. NHCR battles cold front in northern Pakistan
2. Egypt allows more time for UNHCR to interview detained Sudanese

When clicked on the above link, my website will become NHCR website which I don't want that to happen. Is there an easy way to work around this problem?

Thanks

trantt

How do I made all columns the same width in calendar month-view?

The problem that I would like help solving is to make the columns in the month-view of the calendar the same width. It just doesn't look very good to have such dramatically different widths depending upon whether or not there is an event scheduled for that day of the week. I have tried modifying the css to no avail. I have gone in search of where the table is created. I have looked in both event.module and event.theme but I can't find it in either of them

I have noticed that others have wanted to do this as well, but I have yet to see an answer.

New Forms in 4.7 and conversions

In 4.6 I have a view 'data' that the user fils in. in validate I check it and convert it to a new 'unix' format that 'unix' format is stored in the database.

After loading this unix format is used to build the view.

// simplified example
function clubmember_form(&$node, &$error) {
  $output .= form_textfield(t('Birthdate'), 'bdate', $node->bdate, 60, 255, t('The member\'s birthdate (dd-mm-yyyy).'));
return $output;
}

function clubmember_validate(&$node) {
  if (!$node->bdate && $node->birthdate)
  {    
	// make sure 'bdate' is set correct when form is created on edit
  	$node->bdate = format_date($node->birthdate, 'custom', CLUBMEMBER_DATE_FORMAT);
  }
  
  if ($node->bdate)
  {
    $date = $node->bdate;
    if ((_clubmember_parsedate($date) != -1) && (strtotime($date) != -1)) {
      $node->birthdate = strtotime($date);
    }
    else {
      form_set_error('bdate', t('You have to specify a valid date.'));
      return;
    }
  }
}

function theme_clubmember_view($node, $teaser) {
  $output .= '<br />';
  if($node->birthdate) {
    $output .= '<div class="birthdate"><strong>'.t('Birthday: ').'</strong>'.format_date($node->birthdate, 'custom', CLUBMEMBER_DATE_FORMAT).' <span class="hideprint">('._clubmember_calculate_age($node->birthdate).' '.t("year").')</span></div>';
  }
}

I have a problem now in 4.7

When creating a new node the hooks are called after clicking 'preview'

what does this error mean? - warning: Cannot modify header information - headers already sent by (output started at...

I've come across this error on a few occasions when the work I did on my local apache/drupal setup went to the live server IIS/drupal (don't ask!)...

Can anybody tell me why this error comes up? Is it related to incorrect php syntax ? or something else?

Thanks!

Pages

Subscribe with RSS Subscribe to RSS - Post installation