Can't connect to the host via fireftp- please help....

Hello,
I wonder if someone could help me please to start....
I try to connect via fireftp to the host: www.newtonintranet.dreamhosters.com
I typed login and password I created the account name, but it can't establish a connection. what might be the problem?

PHP error on admin/config/media/image-styles/edit: Premature end of script headers: index.php

Getting a pretty generic 500 error when trying to add or edit image styles. Occurring on same server in both alpha-7 and beta-3. The beta-3 install is clean, new database, no modules added. PHP appears to be configured with all the requirements:

http://new.manoutoftime.org/phpinfo.php

Far as I have found so far, this error does not occur on any other page.

How do I add static content to specific content type?

Hey guys,

How do I add a static image to a specific content type?

The optimal situation for this usage is being able to have a content type that only consists of an image that I predefined. So that the user can only "create content" and then press "submit" without adding anything himself. Basically just posting a picture that I already defined.

Thanks plenty in advance!

Expose table via views api in secondary database

I expose a table via the views_api with the following code:

<?php
function vih_course_short_views_data() {
    // Define the base group of this table. Fields that don't
    // have a group defined will go into this field by default.
    $data['kortekurser']['table']['group'] = t('Korte kurser');
    $data['kortekurser']['table']['base'] = array(
        'field' => 'date',
        'title' => t('Korte kurser'),
        'help' => t('Korte kurser'));
    $data['kortekurser']['id'] = array(
        'title' => t('Id'),
        'help' => t('Id for the course'),
        'field' => array(
            'handler' => 'views_handler_field'),
            'argument' => array('handler' => 'views_handler_argument_numeric'),
            'filter' => array('handler' => 'views_handler_filter_numeric'),
            'sort' => array('handler' => 'views_handler_sort_numeric')
        );
    $data['kortekurser']['navn'] = array(
        'title' => t('Name'),
        'help' => t('Name of the course'),
        'field' => array(
            'handler' => 'views_handler_field'),
            'argument' => array('handler' => 'views_handler_argument_string'),
            'filter' => array('handler' => 'views_handler_filter_string'),
            'sort' => array('handler' => 'views_handler_sort_string')
        );
    return $data;
}

Drupal 7: Comment picture path

I'm working on a website to be ready for Drupal 7 upon final release, and stumped on something. I'm doing theming on the comment.tpl.php file, and specifically need the file path of the user/author's picture on their comment to do some advanced theming (the $picture variable prints out a bunch of unnecessary HTML, so can't use it).

I followed this tutorial http://www.zites.net/en/drupal-7-theming-and-image-path to learn how to pull the path in D7. When I print_r on the $node variable and get...

stdClass Object
(
    [field_thumbnail] => Array
        (
            [und] => Array
                (
                    [0] => Array
                        (

                            [uri] => public://thumbnail/my_image.jpg

                        )

                )

        )

===============

<?php
     $path = image_style_url('thumbnail', $node->field_thumbnail['und'][0]['uri']);
     print $path;
?>

Sure enough, using the PHP code above returns that filepath just fine, according to tutorial. However, I then try the same code on $comment...

stdClass Object
(

    [picture] => stdClass Object
        (

            [uri] => public://pictures/author_image.jpg

        )
=========================

<?php
  $path = image_style_url('thumbnail', $comment->picture['uri']);
  print $path;
?>

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x