User Image in Comments

Hopefully someone can help me debug this issue.

I set up a test site (http://drupaltest.simonives.info/drupal-6.0) to try out Drupal 6.x and the template I wanted to use before I made my site live. All went well during the install and configuration.

Drupal 6.x on HostGator during PHP5 migration

Drupal 6.x runs well on HostGator, but there are a few challenges due to HostGator's migration to PHP5.

HostGator's PHP5 Migration

Two weeks ago, HostGator announced, "All shared (gatorXX.hostgator.com and reseller) servers will be changed to PHP5 and MySQL5 by default, starting on March 8th." See their forum message for details.

Drupal 6 and other applications can start using PHP5 immediately.

.htaccess

Modify Drupal's .htaccess file to override the PHP4 default. Add this line early in .htaccess:
AddHandler application/x-httpd-php5 .php

For example, I added the line after the comment at the top of .htaccess:

#
# Apache/PHP/Drupal settings:
#
AddHandler application/x-httpd-php5 .php

Cron

HostGator does not allow wget or Lynx, so use PHP to replace wget as suggested by mooffie in this thread. Create a file in your public_html directory called getcron.php:

echo "2 + 2 = ". 2 + 2;
file_get_contents('http://example.com/cron.php');

Test the script by entering www.yoursite.com/getcron.php into your browser. You should see the answer 4 displayed. Now click "Status Report" on the your site's admin page. You should see something like this:

pages with limited access

We're recreating a site using drupal 6.1 and are looking to have it classified into a few sections.

General stock: beer, wine, accessories...

Trade & Suppliers: inventory, product updates,

About us: history, contact page.

General stock & Trade and Suppliers pages should NOT be accessible to the average user. This should require a pre-approved login to view, and only those under "suppliers" should be able to access those pages.

Ubuntu's new Brainstrom website built on Drupal

Read about Ubuntu's brainstorm website over at /. and being an Ubuntu user I had to check it out. Once there I noticed that you had to register to use the website so when I visited the registration page I saw a very familiar design: http://brainstorm.ubuntu.com/user/register

Ubuntu brainstorm is similar to Dell's Idea storm the aim being to let the community members submit their ideas on how to make the OS better and then other members vote the idea up or down similar to the way it is done on Digg.com

How to theme a form in Drupal 6.x?

I have a set of modules for survey data entry and lab data upload (+parsing) that work fine in Drupal 5.x, with the exception of a very specific issue (I cannot replace form elements during hook_validate and still be able to have the replaced elements render properly). The bug I just described motivated me to migrate to Drupal 6.x, with its form_state['rebuild'] trigger, which seemed just the ticket.

Unfortunately, the survey form is huge and unwieldy, unless themed into a more compact layout. I wrote a hook (theme_cortisol_form) to handle the output of the node creation form (cortisol_form), updated the parameters to everything, fixed all glitches noted by the Coder module, and still I cannot get the theme handler to be fed the form itself. In Drupal 5.x, this was as simple as

...
$form['#theme'] = 'survey_form';
return($form);

And the appropriate magic ensued in theme_survey_form. Alas, even after registering it using

function cortisol_theme() {
$themes = array(
'survey_form' => array(
'arguments' => array('form'),
'function' => 'theme_survey_form',
),
);
return( $themes );
}

It still never gets a copy of the form. By default (I modified some of the core includes in 6.0 to look at this), it just gets theme_node_form (or some variant of same), never the actual theme I specify.

Bespoke PHP pages (Is Drupal for Me?)

Hi
I’m looking at the options for a site I’m making. I have been trying out Joomla, but after reading about Drupal I want to give it a go too. Just want to know if it can do what I need.
Basically, I only want a CMS to provide a framework to allow logins and comments and such, rather than to manage content, as the site will be quite small. I also wish to offer downloads, both free and paid for. So far so good I think.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x