Drupal 6

islcon - September 25, 2007 - 00:15
Project:Aberdeen
Version:5.x-1.7
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community
Description

When might this theme work with Drupal 6?

#1

ahoria - February 11, 2008 - 22:20

+1

#2

chatlumo - February 13, 2008 - 22:12

+1

#3

Fenixoid - February 20, 2008 - 09:00
Priority:normal» critical

+1

on this theme I have a lot of templates... upgraded to drupal6 and R.I.P for my websites :(
Please, update this to drupal6 asap.

#4

psmackey - February 22, 2008 - 19:23
Priority:critical» normal
Assigned to:Anonymous» psmackey

Looking forward to 6.0 support.

#5

pokey - February 23, 2008 - 09:55

I kinda have this working. Needs to be cleaned up.

First created aberdeen.info:

name = Aberdeen
description = theme description
core = 6.x
engine = phptemplate

Then changed line 2 in page.tpl.php to:
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language ?>" xml:lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">

Also changed all occurrences in that file from $sidebar-left to $left and $sidebar-right to $right.

The linksnew function didn't seem to work and I didn't have the time to delve into the code so I changed primary and secondary links to call theme_links and just added a span tag to includes/theme.inc:

$output .= '<li class="'. $class .'"><span>';
$output .= "</span></li>\n";

I tried to put that in template.php as the linksnew function and it doesn't seem to get called. I'd appreciate it if someone could tell me why that might not have worked. I might just not "get" the Drupal 6 hooks, I thought the phpengine would register that for me.

#6

Fenixoid - February 26, 2008 - 21:31

Any progress with 6.x support?

#7

psmackey - April 26, 2008 - 22:27
Assigned to:psmackey» Anonymous

#8

rubeuspotter - May 16, 2008 - 15:24

Hello everyone,

I'm working in a website that, until now, was developed over Drupal 5.7 and with Aberdeen theme. When Drupal 6.2 was launched I decided to upgrade my site, but I was waiting to have Aberdeen theme available for Drupal 6, looking at this thread often.

Finally, reading grahl's post (post #5 of this thread), the following website http://wtanaka.com/drupal/convert-theme-6 and this post http://drupal.org/node/132442 I decided to start updating the Aberdeen theme to Drupal 6.2.

The attached file is what I have got. As grahl sais, it seems that it works but it's not perfect. I think it has two important problems:

- The problem with primary links. I changed 'linksnew' (in page.tpl.php) for 'links' and, at least, the primary links appear, but in a completely different style.

- The Aberdeen liquid shows all regions in a different place, just one over the next, I mean, header block over the left sidebar, this over the primary links, this over the content, and so on.

Despite a hard work, I haven't been able to fix this two things. If any of you can help me to have Aberdeen theme prefect for Drupal 6 I will be very happy.

Thank you very much.

EDIT:

After reding a lot of information finally I've fixed the primary-links problem without changing include/theme.inc file, just changing the theme files.

This is what I've don:
In page.tpl.php I've changed

<?php print theme('linksnew', $primary_links, array('class' => 'links
primary-links'
)) ?>

into this:

<?php print theme('links', $primary_links, array('class' => 'links
primary-links'
)) ?>

and in template.php I've changed

function phptemplate_linksnew($links, $attributes = array('class' =>
'links')) {
...code...
}

into this:

function phptemplate_links($links, $attributes = array('class' =>
'links')) {
...code...
}

I've cleared the cache and the menu is shown in its correct style.

I've attached the new version. It seems that this Aberdeen works OK in Drupal 6.x but the liquid theme :-S. I hope any of you could help me with that.

EDIT 2:

Finally, I've found out how to fix the Abedeen-liquid problem. It was so easy that I feel a bit stupid ;-D. The change consists on add this line "base theme = aberdeen" in aberdee-liquid.info, so aberdeen-liquid inherits all styles from aberdeen.

I attach the files of Aberdeen for Drupal 6.x. I think it works very well.

AttachmentSize
aberdeen-6.x.zip 64.04 KB

#9

xeik - July 3, 2008 - 02:03

Thanks rubeuspotter !!!!!! works nice!

#10

jackbravo - July 22, 2008 - 18:09

Works great!

Thank you very much. Jut a few gotchas.
The menus didn't seem to activate (the active class wasn't being used). This lines solved the issue (put them around line 105 on template.php):

<?php
if (isset($link['href']) && ($link['href'] == $_GET['q'] || ($link['href'] == '<front>' && drupal_is_front_page()))) {
   
$class .= ' active';
}
?>

Also, the search box, when enabled, appears with a label that misplaces it on the page. Adding this on template.php also solved that one (You need to clear the cache for this changes to make effect):

<?php
/**
* Implementation of hook_theme.
*
* Register custom theme functions.
*/
function aberdeen_theme() {
  return array(
   
'search_theme_form' => array(
     
'arguments' => array('form' => NULL),
    ),
  );
}

function
aberdeen_search_theme_form($form) {
 
$output = '<div id="search" class="container-inline">';
 
$form['search_theme_form']['#title'] = '';
 
$output .= drupal_render($form);
 
$output .= '</div>';

  return
$output;
}
?>

#11

varkenshand - November 30, 2008 - 13:38

Quite happy with the result, too. I had been using a modified Aberdeen liquid on a Drupal 5 site and got it working in a 6 environment last week, thanx to this post. www.johnmartyn.info.
The modifications in #10 above did not work for me, though.

#12

will_in_wi - January 6, 2009 - 16:52
Category:feature request» task
Status:active» reviewed & tested by the community

Works here.

#13

jcnventura - January 16, 2009 - 12:24

Does someone want to take over maintainership of this theme?

If so, please post a follow-up to #303013: Is Aberdeen still being maintained? Offering to maintain it.

João

#14

Nigel_B - September 9, 2009 - 01:22

Hi rubespotter.

Great work on this theme. We had a site in Drupal 5 that was using Aberdeen, and our ISP managed to erase the files for us, so we restarted, only this time in D6. Of course, Aberdeen wasn't available till you did it, and we now have it working pretty much as we wanted.

Except for the colour scheme. Would it be possible for you to indicate where I need to make CSS changes to lose the blue border and background, and substitute our own colour? I'd be very grateful for the assistance.

Thanks very much,

Nigel

 
 

Drupal is a registered trademark of Dries Buytaert.