Template.php functions in drupal 6

hi,

is there any detalied documentation
template.php

which is helpful for advanced customistation of themes

thanks

sherif

How to translate menus and categories?

I didnt really get it working even with localization client, what am i doing wrong.

I want the navigation "pictures" in german "bilder" and french etc etc how do i manage to do that?

Cannot recover from fatal error after installing a module

I loaded a module called gallery2 into my site and after refreshing the administer page and viewing gallery2 listed as a module my entire site started showing this error:

"Fatal error: Only variables can be passed by reference in /var/virtual/dslate/ihatemen.com/html/drupal/includes/menu.inc on line 1185"

Noob question, GHOP participant

Hi,

When installing drupal 6 beta 3 on godaddy when i went to the install.php file it gave me an error stating the in one of the include (unicode.inc) files on line 306 it was missing a ']'. The exact code:

$table['''] = "'";M/

I changed that to $table[''] = "'"; //notice the lack of 3 apostrophes
and it worked, so the purpose of this post was to points out that this may be some bug (i doubt it).

Chained Select/Dropdown using aJax & jQuery using Taxonomy

Can any one use this:

'drupal_get_form',
'page arguments' => array('module_someform'),
'access callback' => TRUE
);

$items['module/get_taxonomy_tree/%/%'] = array(
'page callback' => 'drupal_get_form',
'page arguments' => array('module_get_taxonomy_tree', 3, 4),
'access callback' => TRUE,
'type' => MENU_CALLBACK
);

return $items;

}

function module_get_taxonomy_tree($form_state = array(), $vid, $pid) {

header('Content-Type: application/xml; charset="utf-8"');
echo("<?xml version=\"1.0\" encoding=\"utf-8\"?" . ">\n");
echo("\n");

$parent_taxonomy = taxonomy_get_tree($vid, $pid, -1, 1);
echo("\t- - - \n");
foreach ($parent_taxonomy as $key => $value) {
echo("\ttid . "' value='" . htmlentities($parent_taxonomy[$key]->name) . "'>" . htmlentities($parent_taxonomy[$key]->description) . "\n");
}

echo("\n");

exit();
}

function module_someform() {

drupal_add_js(drupal_get_path('module', 'module') . '/select-taxonomies.js');

$form['category'] = array(
'#type' => 'select',
'#title' => t('Category'),
'#options' => array(),

Main Page

I know this is a beginner question, but how do I change the main page. For the life of me I've searched and cannot figure out how to do this.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x