Feedback on a simple, accessible theme for my website

Hi there,

I've just finished retheming Drupal 4.7b2 for my personal website, alexhansford.com

The website is validates to XHTML1.1 and is WAI WCAG 2.0 compliant (if I can edit the 'read more' links)

My website is a simple blog with a few articles on web development, running and as a resource for people on my foundation degree. I've also added a short url service (using phpFaber TinyLink), although it's mostly for my own use!

MySQL Server error!

Hi Every1,
I just got my hands on to Drupal and i am stuck with this now... when i try creating the database using phpmyadmin through the cpanel, i get this message!!

MySQL said:
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '<?php
// $Id: database.mysql.inc,v 1.47 2005-12-10 19:26:47 dr

Could anyone help me out with this??
Thanks in Advance.......
Nonlinear

Create snippet for taxonomy block

I have a taxonomy category "Author" and many terms ("Dickens", "Shakespeare", "Milton", etc, etc).

When viewing a node belonging to a term ("Shakespeare") from this specific category ... I want to list all other nodes belonging to that term in a block. How can I do this?

Stumped converting 4.6 node form to 4.7

I have been playing with this for hours and have been unable to convert a simple node form from 4.6 to 4.7.

My original unaltered hook_form() looks like this:

function case_form(&$node) {
  $output = ''; 

  if (function_exists('taxonomy_node_form')) { 
    $output .= implode('', taxonomy_node_form('case', $node)); 
  } 

  $output .= case_type($node);

  return $output; 
} 

This calls custom callback and theme functions, which have been updated to 4.7:


function case_type($node) {
$servicetypes = array();
$servicetypes['0'] = '-- choose --';
$result = db_query("SELECT st.* FROM servicetype st ORDER BY st.servicetypeid");
while($row = db_fetch_array($result)) {
$servicetypes[$row['servicetypeid']] = $row['servicetype'];
}

$form['servicetype'] = array('#type' => 'fieldset', '#title' => t('Select Service Type'), '#tree' => TRUE);
$form['servicetype']['servicetypeid'] = array(
'#type' => 'select',
'#title' => t('Service'),
'#default_value' => $node->servicetypeid,
'#options' => $servicetypes,
'#required' => true);
$form['submit'] = array('#type' => 'submit', '#value' => t('Submit'));

$form['#method'] = 'post';
$form['#action'] = url('node/add/case');

return drupal_get_form('case_type', $form);
}

function theme_case_type($form) {
$output = '';
$output = '

';

Taxonomy categories not showing up on content creation pages

I've been working with 4.6 for several months, and I have just switched to 4.7.

The UI for content creation has changed, and either the category selection menu is no longer showing up, or it has moved somewhere I can't find it.

  • The taxonomy module is enabled, and I have created categories.
  • I'm working with 4.7, MySQL, Apache, Linux

Help?

User profile: birthdate question

Hi,

I'd like to restrict the years shown when creating a date field for my user profile - currently it shows 1900 - 2050 in the year field. Obviously anything after 2006 make sense for a birthdate (even 2006 is a bit silly). Any suggestions?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x